diff --git a/android-scanner/build.gradle b/android-scanner/build.gradle index 2721505..101a632 100644 --- a/android-scanner/build.gradle +++ b/android-scanner/build.gradle @@ -24,8 +24,13 @@ android { versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" + + // Enabling multidex support. + multiDexEnabled true } + + buildTypes { debug { debuggable true @@ -37,9 +42,17 @@ android { } } +configurations.all { + resolutionStrategy.dependencySubstitution { + substitute module('org.glassfish.hk2.external:javax.inject:2.4.0-b34') with module('javax.inject:javax.inject:1') + } +} dependencies { - compile fileTree(dir: 'libs', include: ['*.jar']) +// compile fileTree(dir: 'libs', include: ['*.jar']) + + compile project(':meerkat-common') + compile project(':scanner-api-common') compile 'com.android.support:appcompat-v7:25.0.1' // compile 'com.android.support.constraint:constraint-layout:1.0.0-beta3' @@ -48,13 +61,13 @@ dependencies { // Google protobufs compile 'com.google.protobuf:protobuf-java:3.+' // Retrofit - compile 'com.squareup.retrofit2:retrofit:2.1.0' - compile 'com.squareup.retrofit2:converter-protobuf:2.2.0' +// compile 'com.squareup.retrofit2:retrofit:2.1.0' +// compile 'com.squareup.retrofit2:converter-protobuf:2.2.0' testCompile 'junit:junit:4.12' - androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { - exclude group: 'com.android.support', module: 'support-annotations' - }) +// androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { +// exclude group: 'com.android.support', module: 'support-annotations' +// }) } diff --git a/android-scanner/src/main/java/RestClient/APIService.java b/android-scanner/src/main/java/RestClient/APIService.java deleted file mode 100644 index 70f47e1..0000000 --- a/android-scanner/src/main/java/RestClient/APIService.java +++ /dev/null @@ -1,17 +0,0 @@ -package RestClient; - -import com.google.protobuf.BoolValue; - -import meerkat.protobuf.PollingStation; -import static meerkat.rest.Constants.MEDIATYPE_PROTOBUF; - -import retrofit2.Call; -import retrofit2.http.Body; -import retrofit2.http.POST; - -public interface APIService { - - @POST("/scan") - Call sendScan(@Body PollingStation.ScannedData post); -// Call sendScan(@Body PollingStation.ScannedData post); -} diff --git a/android-scanner/src/main/java/RestClient/ApiUtils.java b/android-scanner/src/main/java/RestClient/ApiUtils.java deleted file mode 100644 index 0a163c5..0000000 --- a/android-scanner/src/main/java/RestClient/ApiUtils.java +++ /dev/null @@ -1,16 +0,0 @@ -package RestClient; - -public class ApiUtils { - - private ApiUtils() {} - private static final String ADDRESS = "http://192.168.43.79"; - private static final String SUB_ADDRESS = ""; - private static final int PORT = 8080; - -// public static final String BASE_URL = "http://jsonplaceholder.typicode.com/"; - public static final String BASE_URL = ADDRESS + ":" + PORT + SUB_ADDRESS; - public static APIService getAPIService() { - - return RetrofitClient.getClient(BASE_URL).create(APIService.class); - } -} \ No newline at end of file diff --git a/android-scanner/src/main/java/RestClient/RetrofitClient.java b/android-scanner/src/main/java/RestClient/RetrofitClient.java deleted file mode 100644 index e945772..0000000 --- a/android-scanner/src/main/java/RestClient/RetrofitClient.java +++ /dev/null @@ -1,19 +0,0 @@ -package RestClient; - -import retrofit2.Retrofit; -import retrofit2.converter.protobuf.ProtoConverterFactory; - -public class RetrofitClient { - - private static Retrofit retrofit = null; - - public static Retrofit getClient(String baseUrl) { - if (retrofit==null) { - retrofit = new Retrofit.Builder() - .baseUrl(baseUrl) - .addConverterFactory(ProtoConverterFactory.create()) - .build(); - } - return retrofit; - } -} \ No newline at end of file diff --git a/android-scanner/src/main/java/com/meerkat/laura/fakescannerapp/MainActivity.java b/android-scanner/src/main/java/com/meerkat/laura/fakescannerapp/MainActivity.java index dd00987..ec403c3 100644 --- a/android-scanner/src/main/java/com/meerkat/laura/fakescannerapp/MainActivity.java +++ b/android-scanner/src/main/java/com/meerkat/laura/fakescannerapp/MainActivity.java @@ -1,51 +1,33 @@ 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.support.v7.app.AppCompatActivity; 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.pollingstation.ScannerClientAPI; import meerkat.protobuf.PollingStation; -import retrofit2.Call; -import retrofit2.Callback; -import retrofit2.Response; public class MainActivity extends AppCompatActivity implements View.OnClickListener { + // TODO: Make this configurable + private static final String PSC_ADDRESS = "http://127.0.0.1/"; + private static final String PSC_SUB_ADDRESS = ""; + private static final String PSC_PATH = "/"; + private static final int PSC_PORT = 8880; + private Button scanBtn; private TextView formatTxt, contentTxt, responseTxt; - - private APIService mAPIService; + ScannerClientAPI scannerClientAPI; @Override protected void onCreate(Bundle savedInstanceState) { @@ -57,7 +39,7 @@ public class MainActivity extends AppCompatActivity implements View.OnClickListe contentTxt = (TextView)findViewById(R.id.scan_content); responseTxt = (TextView)findViewById(R.id.server_response); - mAPIService = ApiUtils.getAPIService(); + scannerClientAPI = new ScannerClientAPI(PSC_ADDRESS, PSC_SUB_ADDRESS, PSC_PORT, PSC_PATH); scanBtn.setOnClickListener(this); } @@ -96,24 +78,11 @@ public void sendPost(String scanContent) { // .setChannel(ByteString.copyFrom(body)) // .build(); - mAPIService.sendScan(scannedData).enqueue(new Callback() { - @Override - public void onResponse(Call call, Response response) { - - if(response.isSuccessful()) { - showResponse("response="+response.body().getValue()); - Log.i("MainActivity", "post submitted to API."); - } else { - showResponse("Error HTTP code="+response.code()); - Log.i("MainActivity", "post submitted to API but respnse with http error code."); - } - } - - @Override - public void onFailure(Call call, Throwable t) { - Log.e("MainActivity", "Unable to submit post to API."); - } - }); + if (scannerClientAPI.sendScan(scannedData)) { + Log.i("MainActivity", "post submitted to API."); + } else { + Log.e("MainActivity", "Unable to submit post to API."); + } } catch (InvalidProtocolBufferException e) { e.printStackTrace(); } diff --git a/android-scanner/src/main/java/meerkat/pollingstation/PollingStationConstants.java b/android-scanner/src/main/java/meerkat/pollingstation/PollingStationConstants.java deleted file mode 100644 index e55f749..0000000 --- a/android-scanner/src/main/java/meerkat/pollingstation/PollingStationConstants.java +++ /dev/null @@ -1,10 +0,0 @@ -package meerkat.pollingstation; - -public interface PollingStationConstants { - - // Relative addresses for Scanner operations - - public static final String POLLING_STATION_WEB_SCANNER_SCAN_PATH = "/scan"; - public static final String POLLING_STATION_WEB_SCANNER_ERROR_PATH = "/error"; - -} diff --git a/android-scanner/src/main/java/meerkat/protobuf/BallotQuestionUIElementOuterClass.java b/android-scanner/src/main/java/meerkat/protobuf/BallotQuestionUIElementOuterClass.java deleted file mode 100644 index a7006c1..0000000 --- a/android-scanner/src/main/java/meerkat/protobuf/BallotQuestionUIElementOuterClass.java +++ /dev/null @@ -1,5073 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: meerkat/BallotQuestionUIElement.proto - -package meerkat.protobuf; - -public final class BallotQuestionUIElementOuterClass { - private BallotQuestionUIElementOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - *
-   * Enumeration that represents the available types of questions/answers that can be
-   * 
- * - * Protobuf enum {@code meerkat.ValueType} - */ - public enum ValueType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * TEXT_TYPE = 0; - */ - TEXT_TYPE(0), - /** - * AUDIO_TYPE = 1; - */ - AUDIO_TYPE(1), - /** - * IMAGE_TYPE = 2; - */ - IMAGE_TYPE(2), - UNRECOGNIZED(-1), - ; - - /** - * TEXT_TYPE = 0; - */ - public static final int TEXT_TYPE_VALUE = 0; - /** - * AUDIO_TYPE = 1; - */ - public static final int AUDIO_TYPE_VALUE = 1; - /** - * IMAGE_TYPE = 2; - */ - public static final int IMAGE_TYPE_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValueType valueOf(int value) { - return forNumber(value); - } - - public static ValueType forNumber(int value) { - switch (value) { - case 0: return TEXT_TYPE; - case 1: return AUDIO_TYPE; - case 2: return IMAGE_TYPE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ValueType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ValueType findValueByNumber(int number) { - return ValueType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final ValueType[] VALUES = values(); - - public static ValueType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ValueType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:meerkat.ValueType) - } - - public interface UIAnswerOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.UIAnswer) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes answer = 1; - */ - com.google.protobuf.ByteString getAnswer(); - - /** - * string description = 2; - */ - java.lang.String getDescription(); - /** - * string description = 2; - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - } - /** - *
-   * Message that represent single answer for given question
-   * 
- * - * Protobuf type {@code meerkat.UIAnswer} - */ - public static final class UIAnswer extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.UIAnswer) - UIAnswerOrBuilder { - // Use UIAnswer.newBuilder() to construct. - private UIAnswer(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UIAnswer() { - answer_ = com.google.protobuf.ByteString.EMPTY; - description_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private UIAnswer( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - - answer_ = input.readBytes(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_UIAnswer_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_UIAnswer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer.class, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer.Builder.class); - } - - public static final int ANSWER_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString answer_; - /** - * bytes answer = 1; - */ - public com.google.protobuf.ByteString getAnswer() { - return answer_; - } - - public static final int DESCRIPTION_FIELD_NUMBER = 2; - private volatile java.lang.Object description_; - /** - * string description = 2; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - * string description = 2; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!answer_.isEmpty()) { - output.writeBytes(1, answer_); - } - if (!getDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!answer_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, answer_); - } - if (!getDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer)) { - return super.equals(obj); - } - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer other = (meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer) obj; - - boolean result = true; - result = result && getAnswer() - .equals(other.getAnswer()); - result = result && getDescription() - .equals(other.getDescription()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ANSWER_FIELD_NUMBER; - hash = (53 * hash) + getAnswer().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Message that represent single answer for given question
-     * 
- * - * Protobuf type {@code meerkat.UIAnswer} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:meerkat.UIAnswer) - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_UIAnswer_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_UIAnswer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer.class, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer.Builder.class); - } - - // Construct using meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - answer_ = com.google.protobuf.ByteString.EMPTY; - - description_ = ""; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_UIAnswer_descriptor; - } - - public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer getDefaultInstanceForType() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer.getDefaultInstance(); - } - - public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer build() { - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer buildPartial() { - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer result = new meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer(this); - result.answer_ = answer_; - result.description_ = description_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer) { - return mergeFrom((meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer other) { - if (other == meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer.getDefaultInstance()) return this; - if (other.getAnswer() != com.google.protobuf.ByteString.EMPTY) { - setAnswer(other.getAnswer()); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString answer_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes answer = 1; - */ - public com.google.protobuf.ByteString getAnswer() { - return answer_; - } - /** - * bytes answer = 1; - */ - public Builder setAnswer(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - answer_ = value; - onChanged(); - return this; - } - /** - * bytes answer = 1; - */ - public Builder clearAnswer() { - - answer_ = getDefaultInstance().getAnswer(); - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * string description = 2; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string description = 2; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string description = 2; - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - * string description = 2; - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * string description = 2; - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.UIAnswer) - } - - // @@protoc_insertion_point(class_scope:meerkat.UIAnswer) - private static final meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer(); - } - - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public UIAnswer parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UIAnswer(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ListOfAnswersOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.ListOfAnswers) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .meerkat.UIAnswer answers = 1; - */ - java.util.List - getAnswersList(); - /** - * repeated .meerkat.UIAnswer answers = 1; - */ - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer getAnswers(int index); - /** - * repeated .meerkat.UIAnswer answers = 1; - */ - int getAnswersCount(); - /** - * repeated .meerkat.UIAnswer answers = 1; - */ - java.util.List - getAnswersOrBuilderList(); - /** - * repeated .meerkat.UIAnswer answers = 1; - */ - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswerOrBuilder getAnswersOrBuilder( - int index); - } - /** - *
-   * Message object which is number of bytes
-   * 
- * - * Protobuf type {@code meerkat.ListOfAnswers} - */ - public static final class ListOfAnswers extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.ListOfAnswers) - ListOfAnswersOrBuilder { - // Use ListOfAnswers.newBuilder() to construct. - private ListOfAnswers(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListOfAnswers() { - answers_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private ListOfAnswers( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - answers_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - answers_.add( - input.readMessage(meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - answers_ = java.util.Collections.unmodifiableList(answers_); - } - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_ListOfAnswers_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_ListOfAnswers_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers.class, meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers.Builder.class); - } - - public static final int ANSWERS_FIELD_NUMBER = 1; - private java.util.List answers_; - /** - * repeated .meerkat.UIAnswer answers = 1; - */ - public java.util.List getAnswersList() { - return answers_; - } - /** - * repeated .meerkat.UIAnswer answers = 1; - */ - public java.util.List - getAnswersOrBuilderList() { - return answers_; - } - /** - * repeated .meerkat.UIAnswer answers = 1; - */ - public int getAnswersCount() { - return answers_.size(); - } - /** - * repeated .meerkat.UIAnswer answers = 1; - */ - public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer getAnswers(int index) { - return answers_.get(index); - } - /** - * repeated .meerkat.UIAnswer answers = 1; - */ - public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswerOrBuilder getAnswersOrBuilder( - int index) { - return answers_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < answers_.size(); i++) { - output.writeMessage(1, answers_.get(i)); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < answers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, answers_.get(i)); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers)) { - return super.equals(obj); - } - meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers other = (meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers) obj; - - boolean result = true; - result = result && getAnswersList() - .equals(other.getAnswersList()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getAnswersCount() > 0) { - hash = (37 * hash) + ANSWERS_FIELD_NUMBER; - hash = (53 * hash) + getAnswersList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Message object which is number of bytes
-     * 
- * - * Protobuf type {@code meerkat.ListOfAnswers} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:meerkat.ListOfAnswers) - meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_ListOfAnswers_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_ListOfAnswers_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers.class, meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers.Builder.class); - } - - // Construct using meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getAnswersFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (answersBuilder_ == null) { - answers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - answersBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_ListOfAnswers_descriptor; - } - - public meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers getDefaultInstanceForType() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers.getDefaultInstance(); - } - - public meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers build() { - meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers buildPartial() { - meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers result = new meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers(this); - int from_bitField0_ = bitField0_; - if (answersBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - answers_ = java.util.Collections.unmodifiableList(answers_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.answers_ = answers_; - } else { - result.answers_ = answersBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers) { - return mergeFrom((meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers other) { - if (other == meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers.getDefaultInstance()) return this; - if (answersBuilder_ == null) { - if (!other.answers_.isEmpty()) { - if (answers_.isEmpty()) { - answers_ = other.answers_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAnswersIsMutable(); - answers_.addAll(other.answers_); - } - onChanged(); - } - } else { - if (!other.answers_.isEmpty()) { - if (answersBuilder_.isEmpty()) { - answersBuilder_.dispose(); - answersBuilder_ = null; - answers_ = other.answers_; - bitField0_ = (bitField0_ & ~0x00000001); - answersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAnswersFieldBuilder() : null; - } else { - answersBuilder_.addAllMessages(other.answers_); - } - } - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List answers_ = - java.util.Collections.emptyList(); - private void ensureAnswersIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - answers_ = new java.util.ArrayList(answers_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer.Builder, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswerOrBuilder> answersBuilder_; - - /** - * repeated .meerkat.UIAnswer answers = 1; - */ - public java.util.List getAnswersList() { - if (answersBuilder_ == null) { - return java.util.Collections.unmodifiableList(answers_); - } else { - return answersBuilder_.getMessageList(); - } - } - /** - * repeated .meerkat.UIAnswer answers = 1; - */ - public int getAnswersCount() { - if (answersBuilder_ == null) { - return answers_.size(); - } else { - return answersBuilder_.getCount(); - } - } - /** - * repeated .meerkat.UIAnswer answers = 1; - */ - public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer getAnswers(int index) { - if (answersBuilder_ == null) { - return answers_.get(index); - } else { - return answersBuilder_.getMessage(index); - } - } - /** - * repeated .meerkat.UIAnswer answers = 1; - */ - public Builder setAnswers( - int index, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer value) { - if (answersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAnswersIsMutable(); - answers_.set(index, value); - onChanged(); - } else { - answersBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .meerkat.UIAnswer answers = 1; - */ - public Builder setAnswers( - int index, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer.Builder builderForValue) { - if (answersBuilder_ == null) { - ensureAnswersIsMutable(); - answers_.set(index, builderForValue.build()); - onChanged(); - } else { - answersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .meerkat.UIAnswer answers = 1; - */ - public Builder addAnswers(meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer value) { - if (answersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAnswersIsMutable(); - answers_.add(value); - onChanged(); - } else { - answersBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .meerkat.UIAnswer answers = 1; - */ - public Builder addAnswers( - int index, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer value) { - if (answersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAnswersIsMutable(); - answers_.add(index, value); - onChanged(); - } else { - answersBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .meerkat.UIAnswer answers = 1; - */ - public Builder addAnswers( - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer.Builder builderForValue) { - if (answersBuilder_ == null) { - ensureAnswersIsMutable(); - answers_.add(builderForValue.build()); - onChanged(); - } else { - answersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .meerkat.UIAnswer answers = 1; - */ - public Builder addAnswers( - int index, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer.Builder builderForValue) { - if (answersBuilder_ == null) { - ensureAnswersIsMutable(); - answers_.add(index, builderForValue.build()); - onChanged(); - } else { - answersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .meerkat.UIAnswer answers = 1; - */ - public Builder addAllAnswers( - java.lang.Iterable values) { - if (answersBuilder_ == null) { - ensureAnswersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, answers_); - onChanged(); - } else { - answersBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .meerkat.UIAnswer answers = 1; - */ - public Builder clearAnswers() { - if (answersBuilder_ == null) { - answers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - answersBuilder_.clear(); - } - return this; - } - /** - * repeated .meerkat.UIAnswer answers = 1; - */ - public Builder removeAnswers(int index) { - if (answersBuilder_ == null) { - ensureAnswersIsMutable(); - answers_.remove(index); - onChanged(); - } else { - answersBuilder_.remove(index); - } - return this; - } - /** - * repeated .meerkat.UIAnswer answers = 1; - */ - public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer.Builder getAnswersBuilder( - int index) { - return getAnswersFieldBuilder().getBuilder(index); - } - /** - * repeated .meerkat.UIAnswer answers = 1; - */ - public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswerOrBuilder getAnswersOrBuilder( - int index) { - if (answersBuilder_ == null) { - return answers_.get(index); } else { - return answersBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .meerkat.UIAnswer answers = 1; - */ - public java.util.List - getAnswersOrBuilderList() { - if (answersBuilder_ != null) { - return answersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(answers_); - } - } - /** - * repeated .meerkat.UIAnswer answers = 1; - */ - public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer.Builder addAnswersBuilder() { - return getAnswersFieldBuilder().addBuilder( - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer.getDefaultInstance()); - } - /** - * repeated .meerkat.UIAnswer answers = 1; - */ - public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer.Builder addAnswersBuilder( - int index) { - return getAnswersFieldBuilder().addBuilder( - index, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer.getDefaultInstance()); - } - /** - * repeated .meerkat.UIAnswer answers = 1; - */ - public java.util.List - getAnswersBuilderList() { - return getAnswersFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer.Builder, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswerOrBuilder> - getAnswersFieldBuilder() { - if (answersBuilder_ == null) { - answersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer.Builder, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswerOrBuilder>( - answers_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - answers_ = null; - } - return answersBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.ListOfAnswers) - } - - // @@protoc_insertion_point(class_scope:meerkat.ListOfAnswers) - private static final meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers(); - } - - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public ListOfAnswers parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListOfAnswers(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface UIAnswersOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.UIAnswers) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 AnswersType = 1; - */ - int getAnswersType(); - - /** - * .meerkat.ListOfAnswers answers = 2; - */ - boolean hasAnswers(); - /** - * .meerkat.ListOfAnswers answers = 2; - */ - meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers getAnswers(); - /** - * .meerkat.ListOfAnswers answers = 2; - */ - meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswersOrBuilder getAnswersOrBuilder(); - } - /** - *
-   * Message object which contains the type of the answers and their data in bytes
-   * 
- * - * Protobuf type {@code meerkat.UIAnswers} - */ - public static final class UIAnswers extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.UIAnswers) - UIAnswersOrBuilder { - // Use UIAnswers.newBuilder() to construct. - private UIAnswers(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UIAnswers() { - answersType_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private UIAnswers( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - answersType_ = input.readInt32(); - break; - } - case 18: { - meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers.Builder subBuilder = null; - if (answers_ != null) { - subBuilder = answers_.toBuilder(); - } - answers_ = input.readMessage(meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(answers_); - answers_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_UIAnswers_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_UIAnswers_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers.class, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers.Builder.class); - } - - public static final int ANSWERSTYPE_FIELD_NUMBER = 1; - private int answersType_; - /** - * int32 AnswersType = 1; - */ - public int getAnswersType() { - return answersType_; - } - - public static final int ANSWERS_FIELD_NUMBER = 2; - private meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers answers_; - /** - * .meerkat.ListOfAnswers answers = 2; - */ - public boolean hasAnswers() { - return answers_ != null; - } - /** - * .meerkat.ListOfAnswers answers = 2; - */ - public meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers getAnswers() { - return answers_ == null ? meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers.getDefaultInstance() : answers_; - } - /** - * .meerkat.ListOfAnswers answers = 2; - */ - public meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswersOrBuilder getAnswersOrBuilder() { - return getAnswers(); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (answersType_ != 0) { - output.writeInt32(1, answersType_); - } - if (answers_ != null) { - output.writeMessage(2, getAnswers()); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (answersType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, answersType_); - } - if (answers_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getAnswers()); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers)) { - return super.equals(obj); - } - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers other = (meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers) obj; - - boolean result = true; - result = result && (getAnswersType() - == other.getAnswersType()); - result = result && (hasAnswers() == other.hasAnswers()); - if (hasAnswers()) { - result = result && getAnswers() - .equals(other.getAnswers()); - } - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ANSWERSTYPE_FIELD_NUMBER; - hash = (53 * hash) + getAnswersType(); - if (hasAnswers()) { - hash = (37 * hash) + ANSWERS_FIELD_NUMBER; - hash = (53 * hash) + getAnswers().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Message object which contains the type of the answers and their data in bytes
-     * 
- * - * Protobuf type {@code meerkat.UIAnswers} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:meerkat.UIAnswers) - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_UIAnswers_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_UIAnswers_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers.class, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers.Builder.class); - } - - // Construct using meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - answersType_ = 0; - - if (answersBuilder_ == null) { - answers_ = null; - } else { - answers_ = null; - answersBuilder_ = null; - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_UIAnswers_descriptor; - } - - public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers getDefaultInstanceForType() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers.getDefaultInstance(); - } - - public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers build() { - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers buildPartial() { - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers result = new meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers(this); - result.answersType_ = answersType_; - if (answersBuilder_ == null) { - result.answers_ = answers_; - } else { - result.answers_ = answersBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers) { - return mergeFrom((meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers other) { - if (other == meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers.getDefaultInstance()) return this; - if (other.getAnswersType() != 0) { - setAnswersType(other.getAnswersType()); - } - if (other.hasAnswers()) { - mergeAnswers(other.getAnswers()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int answersType_ ; - /** - * int32 AnswersType = 1; - */ - public int getAnswersType() { - return answersType_; - } - /** - * int32 AnswersType = 1; - */ - public Builder setAnswersType(int value) { - - answersType_ = value; - onChanged(); - return this; - } - /** - * int32 AnswersType = 1; - */ - public Builder clearAnswersType() { - - answersType_ = 0; - onChanged(); - return this; - } - - private meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers answers_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers, meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers.Builder, meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswersOrBuilder> answersBuilder_; - /** - * .meerkat.ListOfAnswers answers = 2; - */ - public boolean hasAnswers() { - return answersBuilder_ != null || answers_ != null; - } - /** - * .meerkat.ListOfAnswers answers = 2; - */ - public meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers getAnswers() { - if (answersBuilder_ == null) { - return answers_ == null ? meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers.getDefaultInstance() : answers_; - } else { - return answersBuilder_.getMessage(); - } - } - /** - * .meerkat.ListOfAnswers answers = 2; - */ - public Builder setAnswers(meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers value) { - if (answersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - answers_ = value; - onChanged(); - } else { - answersBuilder_.setMessage(value); - } - - return this; - } - /** - * .meerkat.ListOfAnswers answers = 2; - */ - public Builder setAnswers( - meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers.Builder builderForValue) { - if (answersBuilder_ == null) { - answers_ = builderForValue.build(); - onChanged(); - } else { - answersBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .meerkat.ListOfAnswers answers = 2; - */ - public Builder mergeAnswers(meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers value) { - if (answersBuilder_ == null) { - if (answers_ != null) { - answers_ = - meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers.newBuilder(answers_).mergeFrom(value).buildPartial(); - } else { - answers_ = value; - } - onChanged(); - } else { - answersBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .meerkat.ListOfAnswers answers = 2; - */ - public Builder clearAnswers() { - if (answersBuilder_ == null) { - answers_ = null; - onChanged(); - } else { - answers_ = null; - answersBuilder_ = null; - } - - return this; - } - /** - * .meerkat.ListOfAnswers answers = 2; - */ - public meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers.Builder getAnswersBuilder() { - - onChanged(); - return getAnswersFieldBuilder().getBuilder(); - } - /** - * .meerkat.ListOfAnswers answers = 2; - */ - public meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswersOrBuilder getAnswersOrBuilder() { - if (answersBuilder_ != null) { - return answersBuilder_.getMessageOrBuilder(); - } else { - return answers_ == null ? - meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers.getDefaultInstance() : answers_; - } - } - /** - * .meerkat.ListOfAnswers answers = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers, meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers.Builder, meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswersOrBuilder> - getAnswersFieldBuilder() { - if (answersBuilder_ == null) { - answersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers, meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers.Builder, meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswersOrBuilder>( - getAnswers(), - getParentForChildren(), - isClean()); - answers_ = null; - } - return answersBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.UIAnswers) - } - - // @@protoc_insertion_point(class_scope:meerkat.UIAnswers) - private static final meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers(); - } - - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public UIAnswers parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UIAnswers(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface QuestionOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.Question) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes question = 1; - */ - com.google.protobuf.ByteString getQuestion(); - } - /** - *
-   * Message Question are bytes
-   * 
- * - * Protobuf type {@code meerkat.Question} - */ - public static final class Question extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.Question) - QuestionOrBuilder { - // Use Question.newBuilder() to construct. - private Question(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Question() { - question_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private Question( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - - question_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_Question_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_Question_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BallotQuestionUIElementOuterClass.Question.class, meerkat.protobuf.BallotQuestionUIElementOuterClass.Question.Builder.class); - } - - public static final int QUESTION_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString question_; - /** - * bytes question = 1; - */ - public com.google.protobuf.ByteString getQuestion() { - return question_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!question_.isEmpty()) { - output.writeBytes(1, question_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!question_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, question_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.BallotQuestionUIElementOuterClass.Question)) { - return super.equals(obj); - } - meerkat.protobuf.BallotQuestionUIElementOuterClass.Question other = (meerkat.protobuf.BallotQuestionUIElementOuterClass.Question) obj; - - boolean result = true; - result = result && getQuestion() - .equals(other.getQuestion()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + QUESTION_FIELD_NUMBER; - hash = (53 * hash) + getQuestion().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.Question parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.Question parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.Question parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.Question parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.Question parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.Question parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.Question parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.Question parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.Question parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.Question parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.BallotQuestionUIElementOuterClass.Question prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Message Question are bytes
-     * 
- * - * Protobuf type {@code meerkat.Question} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:meerkat.Question) - meerkat.protobuf.BallotQuestionUIElementOuterClass.QuestionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_Question_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_Question_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BallotQuestionUIElementOuterClass.Question.class, meerkat.protobuf.BallotQuestionUIElementOuterClass.Question.Builder.class); - } - - // Construct using meerkat.protobuf.BallotQuestionUIElementOuterClass.Question.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - question_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_Question_descriptor; - } - - public meerkat.protobuf.BallotQuestionUIElementOuterClass.Question getDefaultInstanceForType() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.Question.getDefaultInstance(); - } - - public meerkat.protobuf.BallotQuestionUIElementOuterClass.Question build() { - meerkat.protobuf.BallotQuestionUIElementOuterClass.Question result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.BallotQuestionUIElementOuterClass.Question buildPartial() { - meerkat.protobuf.BallotQuestionUIElementOuterClass.Question result = new meerkat.protobuf.BallotQuestionUIElementOuterClass.Question(this); - result.question_ = question_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.BallotQuestionUIElementOuterClass.Question) { - return mergeFrom((meerkat.protobuf.BallotQuestionUIElementOuterClass.Question)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.BallotQuestionUIElementOuterClass.Question other) { - if (other == meerkat.protobuf.BallotQuestionUIElementOuterClass.Question.getDefaultInstance()) return this; - if (other.getQuestion() != com.google.protobuf.ByteString.EMPTY) { - setQuestion(other.getQuestion()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.BallotQuestionUIElementOuterClass.Question parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.BallotQuestionUIElementOuterClass.Question) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString question_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes question = 1; - */ - public com.google.protobuf.ByteString getQuestion() { - return question_; - } - /** - * bytes question = 1; - */ - public Builder setQuestion(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - question_ = value; - onChanged(); - return this; - } - /** - * bytes question = 1; - */ - public Builder clearQuestion() { - - question_ = getDefaultInstance().getQuestion(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.Question) - } - - // @@protoc_insertion_point(class_scope:meerkat.Question) - private static final meerkat.protobuf.BallotQuestionUIElementOuterClass.Question DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.BallotQuestionUIElementOuterClass.Question(); - } - - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.Question getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public Question parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Question(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public meerkat.protobuf.BallotQuestionUIElementOuterClass.Question getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface UIQuestionOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.UIQuestion) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 QuestionType = 1; - */ - int getQuestionType(); - - /** - * .meerkat.Question question = 2; - */ - boolean hasQuestion(); - /** - * .meerkat.Question question = 2; - */ - meerkat.protobuf.BallotQuestionUIElementOuterClass.Question getQuestion(); - /** - * .meerkat.Question question = 2; - */ - meerkat.protobuf.BallotQuestionUIElementOuterClass.QuestionOrBuilder getQuestionOrBuilder(); - } - /** - *
-   * Message object which contains the question and its type
-   * 
- * - * Protobuf type {@code meerkat.UIQuestion} - */ - public static final class UIQuestion extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.UIQuestion) - UIQuestionOrBuilder { - // Use UIQuestion.newBuilder() to construct. - private UIQuestion(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UIQuestion() { - questionType_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private UIQuestion( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - questionType_ = input.readInt32(); - break; - } - case 18: { - meerkat.protobuf.BallotQuestionUIElementOuterClass.Question.Builder subBuilder = null; - if (question_ != null) { - subBuilder = question_.toBuilder(); - } - question_ = input.readMessage(meerkat.protobuf.BallotQuestionUIElementOuterClass.Question.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(question_); - question_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_UIQuestion_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_UIQuestion_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion.class, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion.Builder.class); - } - - public static final int QUESTIONTYPE_FIELD_NUMBER = 1; - private int questionType_; - /** - * int32 QuestionType = 1; - */ - public int getQuestionType() { - return questionType_; - } - - public static final int QUESTION_FIELD_NUMBER = 2; - private meerkat.protobuf.BallotQuestionUIElementOuterClass.Question question_; - /** - * .meerkat.Question question = 2; - */ - public boolean hasQuestion() { - return question_ != null; - } - /** - * .meerkat.Question question = 2; - */ - public meerkat.protobuf.BallotQuestionUIElementOuterClass.Question getQuestion() { - return question_ == null ? meerkat.protobuf.BallotQuestionUIElementOuterClass.Question.getDefaultInstance() : question_; - } - /** - * .meerkat.Question question = 2; - */ - public meerkat.protobuf.BallotQuestionUIElementOuterClass.QuestionOrBuilder getQuestionOrBuilder() { - return getQuestion(); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (questionType_ != 0) { - output.writeInt32(1, questionType_); - } - if (question_ != null) { - output.writeMessage(2, getQuestion()); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (questionType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, questionType_); - } - if (question_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getQuestion()); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion)) { - return super.equals(obj); - } - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion other = (meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion) obj; - - boolean result = true; - result = result && (getQuestionType() - == other.getQuestionType()); - result = result && (hasQuestion() == other.hasQuestion()); - if (hasQuestion()) { - result = result && getQuestion() - .equals(other.getQuestion()); - } - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + QUESTIONTYPE_FIELD_NUMBER; - hash = (53 * hash) + getQuestionType(); - if (hasQuestion()) { - hash = (37 * hash) + QUESTION_FIELD_NUMBER; - hash = (53 * hash) + getQuestion().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Message object which contains the question and its type
-     * 
- * - * Protobuf type {@code meerkat.UIQuestion} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:meerkat.UIQuestion) - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_UIQuestion_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_UIQuestion_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion.class, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion.Builder.class); - } - - // Construct using meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - questionType_ = 0; - - if (questionBuilder_ == null) { - question_ = null; - } else { - question_ = null; - questionBuilder_ = null; - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_UIQuestion_descriptor; - } - - public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion getDefaultInstanceForType() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion.getDefaultInstance(); - } - - public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion build() { - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion buildPartial() { - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion result = new meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion(this); - result.questionType_ = questionType_; - if (questionBuilder_ == null) { - result.question_ = question_; - } else { - result.question_ = questionBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion) { - return mergeFrom((meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion other) { - if (other == meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion.getDefaultInstance()) return this; - if (other.getQuestionType() != 0) { - setQuestionType(other.getQuestionType()); - } - if (other.hasQuestion()) { - mergeQuestion(other.getQuestion()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int questionType_ ; - /** - * int32 QuestionType = 1; - */ - public int getQuestionType() { - return questionType_; - } - /** - * int32 QuestionType = 1; - */ - public Builder setQuestionType(int value) { - - questionType_ = value; - onChanged(); - return this; - } - /** - * int32 QuestionType = 1; - */ - public Builder clearQuestionType() { - - questionType_ = 0; - onChanged(); - return this; - } - - private meerkat.protobuf.BallotQuestionUIElementOuterClass.Question question_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.BallotQuestionUIElementOuterClass.Question, meerkat.protobuf.BallotQuestionUIElementOuterClass.Question.Builder, meerkat.protobuf.BallotQuestionUIElementOuterClass.QuestionOrBuilder> questionBuilder_; - /** - * .meerkat.Question question = 2; - */ - public boolean hasQuestion() { - return questionBuilder_ != null || question_ != null; - } - /** - * .meerkat.Question question = 2; - */ - public meerkat.protobuf.BallotQuestionUIElementOuterClass.Question getQuestion() { - if (questionBuilder_ == null) { - return question_ == null ? meerkat.protobuf.BallotQuestionUIElementOuterClass.Question.getDefaultInstance() : question_; - } else { - return questionBuilder_.getMessage(); - } - } - /** - * .meerkat.Question question = 2; - */ - public Builder setQuestion(meerkat.protobuf.BallotQuestionUIElementOuterClass.Question value) { - if (questionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - question_ = value; - onChanged(); - } else { - questionBuilder_.setMessage(value); - } - - return this; - } - /** - * .meerkat.Question question = 2; - */ - public Builder setQuestion( - meerkat.protobuf.BallotQuestionUIElementOuterClass.Question.Builder builderForValue) { - if (questionBuilder_ == null) { - question_ = builderForValue.build(); - onChanged(); - } else { - questionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .meerkat.Question question = 2; - */ - public Builder mergeQuestion(meerkat.protobuf.BallotQuestionUIElementOuterClass.Question value) { - if (questionBuilder_ == null) { - if (question_ != null) { - question_ = - meerkat.protobuf.BallotQuestionUIElementOuterClass.Question.newBuilder(question_).mergeFrom(value).buildPartial(); - } else { - question_ = value; - } - onChanged(); - } else { - questionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .meerkat.Question question = 2; - */ - public Builder clearQuestion() { - if (questionBuilder_ == null) { - question_ = null; - onChanged(); - } else { - question_ = null; - questionBuilder_ = null; - } - - return this; - } - /** - * .meerkat.Question question = 2; - */ - public meerkat.protobuf.BallotQuestionUIElementOuterClass.Question.Builder getQuestionBuilder() { - - onChanged(); - return getQuestionFieldBuilder().getBuilder(); - } - /** - * .meerkat.Question question = 2; - */ - public meerkat.protobuf.BallotQuestionUIElementOuterClass.QuestionOrBuilder getQuestionOrBuilder() { - if (questionBuilder_ != null) { - return questionBuilder_.getMessageOrBuilder(); - } else { - return question_ == null ? - meerkat.protobuf.BallotQuestionUIElementOuterClass.Question.getDefaultInstance() : question_; - } - } - /** - * .meerkat.Question question = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.BallotQuestionUIElementOuterClass.Question, meerkat.protobuf.BallotQuestionUIElementOuterClass.Question.Builder, meerkat.protobuf.BallotQuestionUIElementOuterClass.QuestionOrBuilder> - getQuestionFieldBuilder() { - if (questionBuilder_ == null) { - questionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.BallotQuestionUIElementOuterClass.Question, meerkat.protobuf.BallotQuestionUIElementOuterClass.Question.Builder, meerkat.protobuf.BallotQuestionUIElementOuterClass.QuestionOrBuilder>( - getQuestion(), - getParentForChildren(), - isClean()); - question_ = null; - } - return questionBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.UIQuestion) - } - - // @@protoc_insertion_point(class_scope:meerkat.UIQuestion) - private static final meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion(); - } - - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public UIQuestion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UIQuestion(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BallotQuestionUIElementOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.BallotQuestionUIElement) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Message object which contains all the potential answers for given question
-     * 
- * - * .meerkat.UIAnswers answers = 1; - */ - boolean hasAnswers(); - /** - *
-     * Message object which contains all the potential answers for given question
-     * 
- * - * .meerkat.UIAnswers answers = 1; - */ - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers getAnswers(); - /** - *
-     * Message object which contains all the potential answers for given question
-     * 
- * - * .meerkat.UIAnswers answers = 1; - */ - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswersOrBuilder getAnswersOrBuilder(); - - /** - *
-     * Should those answers locations should be randomized before shown to the voter ?
-     * 
- * - * bool RandomizeListOrder = 2; - */ - boolean getRandomizeListOrder(); - - /** - *
-     * Message object which contains the question itself
-     * 
- * - * .meerkat.UIQuestion question = 3; - */ - boolean hasQuestion(); - /** - *
-     * Message object which contains the question itself
-     * 
- * - * .meerkat.UIQuestion question = 3; - */ - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion getQuestion(); - /** - *
-     * Message object which contains the question itself
-     * 
- * - * .meerkat.UIQuestion question = 3; - */ - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestionOrBuilder getQuestionOrBuilder(); - } - /** - * Protobuf type {@code meerkat.BallotQuestionUIElement} - */ - public static final class BallotQuestionUIElement extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.BallotQuestionUIElement) - BallotQuestionUIElementOrBuilder { - // Use BallotQuestionUIElement.newBuilder() to construct. - private BallotQuestionUIElement(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BallotQuestionUIElement() { - randomizeListOrder_ = false; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private BallotQuestionUIElement( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers.Builder subBuilder = null; - if (answers_ != null) { - subBuilder = answers_.toBuilder(); - } - answers_ = input.readMessage(meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(answers_); - answers_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - randomizeListOrder_ = input.readBool(); - break; - } - case 26: { - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion.Builder subBuilder = null; - if (question_ != null) { - subBuilder = question_.toBuilder(); - } - question_ = input.readMessage(meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(question_); - question_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_BallotQuestionUIElement_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_BallotQuestionUIElement_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement.class, meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement.Builder.class); - } - - public static final int ANSWERS_FIELD_NUMBER = 1; - private meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers answers_; - /** - *
-     * Message object which contains all the potential answers for given question
-     * 
- * - * .meerkat.UIAnswers answers = 1; - */ - public boolean hasAnswers() { - return answers_ != null; - } - /** - *
-     * Message object which contains all the potential answers for given question
-     * 
- * - * .meerkat.UIAnswers answers = 1; - */ - public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers getAnswers() { - return answers_ == null ? meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers.getDefaultInstance() : answers_; - } - /** - *
-     * Message object which contains all the potential answers for given question
-     * 
- * - * .meerkat.UIAnswers answers = 1; - */ - public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswersOrBuilder getAnswersOrBuilder() { - return getAnswers(); - } - - public static final int RANDOMIZELISTORDER_FIELD_NUMBER = 2; - private boolean randomizeListOrder_; - /** - *
-     * Should those answers locations should be randomized before shown to the voter ?
-     * 
- * - * bool RandomizeListOrder = 2; - */ - public boolean getRandomizeListOrder() { - return randomizeListOrder_; - } - - public static final int QUESTION_FIELD_NUMBER = 3; - private meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion question_; - /** - *
-     * Message object which contains the question itself
-     * 
- * - * .meerkat.UIQuestion question = 3; - */ - public boolean hasQuestion() { - return question_ != null; - } - /** - *
-     * Message object which contains the question itself
-     * 
- * - * .meerkat.UIQuestion question = 3; - */ - public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion getQuestion() { - return question_ == null ? meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion.getDefaultInstance() : question_; - } - /** - *
-     * Message object which contains the question itself
-     * 
- * - * .meerkat.UIQuestion question = 3; - */ - public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestionOrBuilder getQuestionOrBuilder() { - return getQuestion(); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (answers_ != null) { - output.writeMessage(1, getAnswers()); - } - if (randomizeListOrder_ != false) { - output.writeBool(2, randomizeListOrder_); - } - if (question_ != null) { - output.writeMessage(3, getQuestion()); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (answers_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAnswers()); - } - if (randomizeListOrder_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, randomizeListOrder_); - } - if (question_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getQuestion()); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement)) { - return super.equals(obj); - } - meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement other = (meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement) obj; - - boolean result = true; - result = result && (hasAnswers() == other.hasAnswers()); - if (hasAnswers()) { - result = result && getAnswers() - .equals(other.getAnswers()); - } - result = result && (getRandomizeListOrder() - == other.getRandomizeListOrder()); - result = result && (hasQuestion() == other.hasQuestion()); - if (hasQuestion()) { - result = result && getQuestion() - .equals(other.getQuestion()); - } - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasAnswers()) { - hash = (37 * hash) + ANSWERS_FIELD_NUMBER; - hash = (53 * hash) + getAnswers().hashCode(); - } - hash = (37 * hash) + RANDOMIZELISTORDER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRandomizeListOrder()); - if (hasQuestion()) { - hash = (37 * hash) + QUESTION_FIELD_NUMBER; - hash = (53 * hash) + getQuestion().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code meerkat.BallotQuestionUIElement} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:meerkat.BallotQuestionUIElement) - meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElementOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_BallotQuestionUIElement_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_BallotQuestionUIElement_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement.class, meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement.Builder.class); - } - - // Construct using meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - if (answersBuilder_ == null) { - answers_ = null; - } else { - answers_ = null; - answersBuilder_ = null; - } - randomizeListOrder_ = false; - - if (questionBuilder_ == null) { - question_ = null; - } else { - question_ = null; - questionBuilder_ = null; - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_BallotQuestionUIElement_descriptor; - } - - public meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement getDefaultInstanceForType() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement.getDefaultInstance(); - } - - public meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement build() { - meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement buildPartial() { - meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement result = new meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement(this); - if (answersBuilder_ == null) { - result.answers_ = answers_; - } else { - result.answers_ = answersBuilder_.build(); - } - result.randomizeListOrder_ = randomizeListOrder_; - if (questionBuilder_ == null) { - result.question_ = question_; - } else { - result.question_ = questionBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement) { - return mergeFrom((meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement other) { - if (other == meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement.getDefaultInstance()) return this; - if (other.hasAnswers()) { - mergeAnswers(other.getAnswers()); - } - if (other.getRandomizeListOrder() != false) { - setRandomizeListOrder(other.getRandomizeListOrder()); - } - if (other.hasQuestion()) { - mergeQuestion(other.getQuestion()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers answers_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers.Builder, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswersOrBuilder> answersBuilder_; - /** - *
-       * Message object which contains all the potential answers for given question
-       * 
- * - * .meerkat.UIAnswers answers = 1; - */ - public boolean hasAnswers() { - return answersBuilder_ != null || answers_ != null; - } - /** - *
-       * Message object which contains all the potential answers for given question
-       * 
- * - * .meerkat.UIAnswers answers = 1; - */ - public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers getAnswers() { - if (answersBuilder_ == null) { - return answers_ == null ? meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers.getDefaultInstance() : answers_; - } else { - return answersBuilder_.getMessage(); - } - } - /** - *
-       * Message object which contains all the potential answers for given question
-       * 
- * - * .meerkat.UIAnswers answers = 1; - */ - public Builder setAnswers(meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers value) { - if (answersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - answers_ = value; - onChanged(); - } else { - answersBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Message object which contains all the potential answers for given question
-       * 
- * - * .meerkat.UIAnswers answers = 1; - */ - public Builder setAnswers( - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers.Builder builderForValue) { - if (answersBuilder_ == null) { - answers_ = builderForValue.build(); - onChanged(); - } else { - answersBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Message object which contains all the potential answers for given question
-       * 
- * - * .meerkat.UIAnswers answers = 1; - */ - public Builder mergeAnswers(meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers value) { - if (answersBuilder_ == null) { - if (answers_ != null) { - answers_ = - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers.newBuilder(answers_).mergeFrom(value).buildPartial(); - } else { - answers_ = value; - } - onChanged(); - } else { - answersBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Message object which contains all the potential answers for given question
-       * 
- * - * .meerkat.UIAnswers answers = 1; - */ - public Builder clearAnswers() { - if (answersBuilder_ == null) { - answers_ = null; - onChanged(); - } else { - answers_ = null; - answersBuilder_ = null; - } - - return this; - } - /** - *
-       * Message object which contains all the potential answers for given question
-       * 
- * - * .meerkat.UIAnswers answers = 1; - */ - public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers.Builder getAnswersBuilder() { - - onChanged(); - return getAnswersFieldBuilder().getBuilder(); - } - /** - *
-       * Message object which contains all the potential answers for given question
-       * 
- * - * .meerkat.UIAnswers answers = 1; - */ - public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswersOrBuilder getAnswersOrBuilder() { - if (answersBuilder_ != null) { - return answersBuilder_.getMessageOrBuilder(); - } else { - return answers_ == null ? - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers.getDefaultInstance() : answers_; - } - } - /** - *
-       * Message object which contains all the potential answers for given question
-       * 
- * - * .meerkat.UIAnswers answers = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers.Builder, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswersOrBuilder> - getAnswersFieldBuilder() { - if (answersBuilder_ == null) { - answersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers.Builder, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswersOrBuilder>( - getAnswers(), - getParentForChildren(), - isClean()); - answers_ = null; - } - return answersBuilder_; - } - - private boolean randomizeListOrder_ ; - /** - *
-       * Should those answers locations should be randomized before shown to the voter ?
-       * 
- * - * bool RandomizeListOrder = 2; - */ - public boolean getRandomizeListOrder() { - return randomizeListOrder_; - } - /** - *
-       * Should those answers locations should be randomized before shown to the voter ?
-       * 
- * - * bool RandomizeListOrder = 2; - */ - public Builder setRandomizeListOrder(boolean value) { - - randomizeListOrder_ = value; - onChanged(); - return this; - } - /** - *
-       * Should those answers locations should be randomized before shown to the voter ?
-       * 
- * - * bool RandomizeListOrder = 2; - */ - public Builder clearRandomizeListOrder() { - - randomizeListOrder_ = false; - onChanged(); - return this; - } - - private meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion question_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion.Builder, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestionOrBuilder> questionBuilder_; - /** - *
-       * Message object which contains the question itself
-       * 
- * - * .meerkat.UIQuestion question = 3; - */ - public boolean hasQuestion() { - return questionBuilder_ != null || question_ != null; - } - /** - *
-       * Message object which contains the question itself
-       * 
- * - * .meerkat.UIQuestion question = 3; - */ - public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion getQuestion() { - if (questionBuilder_ == null) { - return question_ == null ? meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion.getDefaultInstance() : question_; - } else { - return questionBuilder_.getMessage(); - } - } - /** - *
-       * Message object which contains the question itself
-       * 
- * - * .meerkat.UIQuestion question = 3; - */ - public Builder setQuestion(meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion value) { - if (questionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - question_ = value; - onChanged(); - } else { - questionBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Message object which contains the question itself
-       * 
- * - * .meerkat.UIQuestion question = 3; - */ - public Builder setQuestion( - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion.Builder builderForValue) { - if (questionBuilder_ == null) { - question_ = builderForValue.build(); - onChanged(); - } else { - questionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Message object which contains the question itself
-       * 
- * - * .meerkat.UIQuestion question = 3; - */ - public Builder mergeQuestion(meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion value) { - if (questionBuilder_ == null) { - if (question_ != null) { - question_ = - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion.newBuilder(question_).mergeFrom(value).buildPartial(); - } else { - question_ = value; - } - onChanged(); - } else { - questionBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Message object which contains the question itself
-       * 
- * - * .meerkat.UIQuestion question = 3; - */ - public Builder clearQuestion() { - if (questionBuilder_ == null) { - question_ = null; - onChanged(); - } else { - question_ = null; - questionBuilder_ = null; - } - - return this; - } - /** - *
-       * Message object which contains the question itself
-       * 
- * - * .meerkat.UIQuestion question = 3; - */ - public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion.Builder getQuestionBuilder() { - - onChanged(); - return getQuestionFieldBuilder().getBuilder(); - } - /** - *
-       * Message object which contains the question itself
-       * 
- * - * .meerkat.UIQuestion question = 3; - */ - public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestionOrBuilder getQuestionOrBuilder() { - if (questionBuilder_ != null) { - return questionBuilder_.getMessageOrBuilder(); - } else { - return question_ == null ? - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion.getDefaultInstance() : question_; - } - } - /** - *
-       * Message object which contains the question itself
-       * 
- * - * .meerkat.UIQuestion question = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion.Builder, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestionOrBuilder> - getQuestionFieldBuilder() { - if (questionBuilder_ == null) { - questionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion.Builder, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestionOrBuilder>( - getQuestion(), - getParentForChildren(), - isClean()); - question_ = null; - } - return questionBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.BallotQuestionUIElement) - } - - // @@protoc_insertion_point(class_scope:meerkat.BallotQuestionUIElement) - private static final meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement(); - } - - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public BallotQuestionUIElement parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BallotQuestionUIElement(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BallotQuestionsUIElementsOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.BallotQuestionsUIElements) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * for easy storing all wanted questions
-     * 
- * - * repeated .meerkat.BallotQuestionUIElement questions = 1; - */ - java.util.List - getQuestionsList(); - /** - *
-     * for easy storing all wanted questions
-     * 
- * - * repeated .meerkat.BallotQuestionUIElement questions = 1; - */ - meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement getQuestions(int index); - /** - *
-     * for easy storing all wanted questions
-     * 
- * - * repeated .meerkat.BallotQuestionUIElement questions = 1; - */ - int getQuestionsCount(); - /** - *
-     * for easy storing all wanted questions
-     * 
- * - * repeated .meerkat.BallotQuestionUIElement questions = 1; - */ - java.util.List - getQuestionsOrBuilderList(); - /** - *
-     * for easy storing all wanted questions
-     * 
- * - * repeated .meerkat.BallotQuestionUIElement questions = 1; - */ - meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElementOrBuilder getQuestionsOrBuilder( - int index); - } - /** - * Protobuf type {@code meerkat.BallotQuestionsUIElements} - */ - public static final class BallotQuestionsUIElements extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.BallotQuestionsUIElements) - BallotQuestionsUIElementsOrBuilder { - // Use BallotQuestionsUIElements.newBuilder() to construct. - private BallotQuestionsUIElements(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BallotQuestionsUIElements() { - questions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private BallotQuestionsUIElements( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - questions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - questions_.add( - input.readMessage(meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - questions_ = java.util.Collections.unmodifiableList(questions_); - } - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_BallotQuestionsUIElements_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_BallotQuestionsUIElements_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements.class, meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements.Builder.class); - } - - public static final int QUESTIONS_FIELD_NUMBER = 1; - private java.util.List questions_; - /** - *
-     * for easy storing all wanted questions
-     * 
- * - * repeated .meerkat.BallotQuestionUIElement questions = 1; - */ - public java.util.List getQuestionsList() { - return questions_; - } - /** - *
-     * for easy storing all wanted questions
-     * 
- * - * repeated .meerkat.BallotQuestionUIElement questions = 1; - */ - public java.util.List - getQuestionsOrBuilderList() { - return questions_; - } - /** - *
-     * for easy storing all wanted questions
-     * 
- * - * repeated .meerkat.BallotQuestionUIElement questions = 1; - */ - public int getQuestionsCount() { - return questions_.size(); - } - /** - *
-     * for easy storing all wanted questions
-     * 
- * - * repeated .meerkat.BallotQuestionUIElement questions = 1; - */ - public meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement getQuestions(int index) { - return questions_.get(index); - } - /** - *
-     * for easy storing all wanted questions
-     * 
- * - * repeated .meerkat.BallotQuestionUIElement questions = 1; - */ - public meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElementOrBuilder getQuestionsOrBuilder( - int index) { - return questions_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < questions_.size(); i++) { - output.writeMessage(1, questions_.get(i)); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < questions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, questions_.get(i)); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements)) { - return super.equals(obj); - } - meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements other = (meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements) obj; - - boolean result = true; - result = result && getQuestionsList() - .equals(other.getQuestionsList()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getQuestionsCount() > 0) { - hash = (37 * hash) + QUESTIONS_FIELD_NUMBER; - hash = (53 * hash) + getQuestionsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code meerkat.BallotQuestionsUIElements} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:meerkat.BallotQuestionsUIElements) - meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElementsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_BallotQuestionsUIElements_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_BallotQuestionsUIElements_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements.class, meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements.Builder.class); - } - - // Construct using meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getQuestionsFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (questionsBuilder_ == null) { - questions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - questionsBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_BallotQuestionsUIElements_descriptor; - } - - public meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements getDefaultInstanceForType() { - return meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements.getDefaultInstance(); - } - - public meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements build() { - meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements buildPartial() { - meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements result = new meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements(this); - int from_bitField0_ = bitField0_; - if (questionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - questions_ = java.util.Collections.unmodifiableList(questions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.questions_ = questions_; - } else { - result.questions_ = questionsBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements) { - return mergeFrom((meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements other) { - if (other == meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements.getDefaultInstance()) return this; - if (questionsBuilder_ == null) { - if (!other.questions_.isEmpty()) { - if (questions_.isEmpty()) { - questions_ = other.questions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureQuestionsIsMutable(); - questions_.addAll(other.questions_); - } - onChanged(); - } - } else { - if (!other.questions_.isEmpty()) { - if (questionsBuilder_.isEmpty()) { - questionsBuilder_.dispose(); - questionsBuilder_ = null; - questions_ = other.questions_; - bitField0_ = (bitField0_ & ~0x00000001); - questionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getQuestionsFieldBuilder() : null; - } else { - questionsBuilder_.addAllMessages(other.questions_); - } - } - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List questions_ = - java.util.Collections.emptyList(); - private void ensureQuestionsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - questions_ = new java.util.ArrayList(questions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement, meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement.Builder, meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElementOrBuilder> questionsBuilder_; - - /** - *
-       * for easy storing all wanted questions
-       * 
- * - * repeated .meerkat.BallotQuestionUIElement questions = 1; - */ - public java.util.List getQuestionsList() { - if (questionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(questions_); - } else { - return questionsBuilder_.getMessageList(); - } - } - /** - *
-       * for easy storing all wanted questions
-       * 
- * - * repeated .meerkat.BallotQuestionUIElement questions = 1; - */ - public int getQuestionsCount() { - if (questionsBuilder_ == null) { - return questions_.size(); - } else { - return questionsBuilder_.getCount(); - } - } - /** - *
-       * for easy storing all wanted questions
-       * 
- * - * repeated .meerkat.BallotQuestionUIElement questions = 1; - */ - public meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement getQuestions(int index) { - if (questionsBuilder_ == null) { - return questions_.get(index); - } else { - return questionsBuilder_.getMessage(index); - } - } - /** - *
-       * for easy storing all wanted questions
-       * 
- * - * repeated .meerkat.BallotQuestionUIElement questions = 1; - */ - public Builder setQuestions( - int index, meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement value) { - if (questionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureQuestionsIsMutable(); - questions_.set(index, value); - onChanged(); - } else { - questionsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * for easy storing all wanted questions
-       * 
- * - * repeated .meerkat.BallotQuestionUIElement questions = 1; - */ - public Builder setQuestions( - int index, meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement.Builder builderForValue) { - if (questionsBuilder_ == null) { - ensureQuestionsIsMutable(); - questions_.set(index, builderForValue.build()); - onChanged(); - } else { - questionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * for easy storing all wanted questions
-       * 
- * - * repeated .meerkat.BallotQuestionUIElement questions = 1; - */ - public Builder addQuestions(meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement value) { - if (questionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureQuestionsIsMutable(); - questions_.add(value); - onChanged(); - } else { - questionsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * for easy storing all wanted questions
-       * 
- * - * repeated .meerkat.BallotQuestionUIElement questions = 1; - */ - public Builder addQuestions( - int index, meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement value) { - if (questionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureQuestionsIsMutable(); - questions_.add(index, value); - onChanged(); - } else { - questionsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * for easy storing all wanted questions
-       * 
- * - * repeated .meerkat.BallotQuestionUIElement questions = 1; - */ - public Builder addQuestions( - meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement.Builder builderForValue) { - if (questionsBuilder_ == null) { - ensureQuestionsIsMutable(); - questions_.add(builderForValue.build()); - onChanged(); - } else { - questionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * for easy storing all wanted questions
-       * 
- * - * repeated .meerkat.BallotQuestionUIElement questions = 1; - */ - public Builder addQuestions( - int index, meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement.Builder builderForValue) { - if (questionsBuilder_ == null) { - ensureQuestionsIsMutable(); - questions_.add(index, builderForValue.build()); - onChanged(); - } else { - questionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * for easy storing all wanted questions
-       * 
- * - * repeated .meerkat.BallotQuestionUIElement questions = 1; - */ - public Builder addAllQuestions( - java.lang.Iterable values) { - if (questionsBuilder_ == null) { - ensureQuestionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, questions_); - onChanged(); - } else { - questionsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * for easy storing all wanted questions
-       * 
- * - * repeated .meerkat.BallotQuestionUIElement questions = 1; - */ - public Builder clearQuestions() { - if (questionsBuilder_ == null) { - questions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - questionsBuilder_.clear(); - } - return this; - } - /** - *
-       * for easy storing all wanted questions
-       * 
- * - * repeated .meerkat.BallotQuestionUIElement questions = 1; - */ - public Builder removeQuestions(int index) { - if (questionsBuilder_ == null) { - ensureQuestionsIsMutable(); - questions_.remove(index); - onChanged(); - } else { - questionsBuilder_.remove(index); - } - return this; - } - /** - *
-       * for easy storing all wanted questions
-       * 
- * - * repeated .meerkat.BallotQuestionUIElement questions = 1; - */ - public meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement.Builder getQuestionsBuilder( - int index) { - return getQuestionsFieldBuilder().getBuilder(index); - } - /** - *
-       * for easy storing all wanted questions
-       * 
- * - * repeated .meerkat.BallotQuestionUIElement questions = 1; - */ - public meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElementOrBuilder getQuestionsOrBuilder( - int index) { - if (questionsBuilder_ == null) { - return questions_.get(index); } else { - return questionsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * for easy storing all wanted questions
-       * 
- * - * repeated .meerkat.BallotQuestionUIElement questions = 1; - */ - public java.util.List - getQuestionsOrBuilderList() { - if (questionsBuilder_ != null) { - return questionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(questions_); - } - } - /** - *
-       * for easy storing all wanted questions
-       * 
- * - * repeated .meerkat.BallotQuestionUIElement questions = 1; - */ - public meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement.Builder addQuestionsBuilder() { - return getQuestionsFieldBuilder().addBuilder( - meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement.getDefaultInstance()); - } - /** - *
-       * for easy storing all wanted questions
-       * 
- * - * repeated .meerkat.BallotQuestionUIElement questions = 1; - */ - public meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement.Builder addQuestionsBuilder( - int index) { - return getQuestionsFieldBuilder().addBuilder( - index, meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement.getDefaultInstance()); - } - /** - *
-       * for easy storing all wanted questions
-       * 
- * - * repeated .meerkat.BallotQuestionUIElement questions = 1; - */ - public java.util.List - getQuestionsBuilderList() { - return getQuestionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement, meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement.Builder, meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElementOrBuilder> - getQuestionsFieldBuilder() { - if (questionsBuilder_ == null) { - questionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement, meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement.Builder, meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElementOrBuilder>( - questions_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - questions_ = null; - } - return questionsBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.BallotQuestionsUIElements) - } - - // @@protoc_insertion_point(class_scope:meerkat.BallotQuestionsUIElements) - private static final meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements(); - } - - public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public BallotQuestionsUIElements parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BallotQuestionsUIElements(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_UIAnswer_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_UIAnswer_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_ListOfAnswers_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_ListOfAnswers_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_UIAnswers_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_UIAnswers_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_Question_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_Question_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_UIQuestion_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_UIQuestion_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_BallotQuestionUIElement_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_BallotQuestionUIElement_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_BallotQuestionsUIElements_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_BallotQuestionsUIElements_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n%meerkat/BallotQuestionUIElement.proto\022" + - "\007meerkat\"/\n\010UIAnswer\022\016\n\006answer\030\001 \001(\014\022\023\n\013" + - "description\030\002 \001(\t\"3\n\rListOfAnswers\022\"\n\007an" + - "swers\030\001 \003(\0132\021.meerkat.UIAnswer\"I\n\tUIAnsw" + - "ers\022\023\n\013AnswersType\030\001 \001(\005\022\'\n\007answers\030\002 \001(" + - "\0132\026.meerkat.ListOfAnswers\"\034\n\010Question\022\020\n" + - "\010question\030\001 \001(\014\"G\n\nUIQuestion\022\024\n\014Questio" + - "nType\030\001 \001(\005\022#\n\010question\030\002 \001(\0132\021.meerkat." + - "Question\"\201\001\n\027BallotQuestionUIElement\022#\n\007" + - "answers\030\001 \001(\0132\022.meerkat.UIAnswers\022\032\n\022Ran", - "domizeListOrder\030\002 \001(\010\022%\n\010question\030\003 \001(\0132" + - "\023.meerkat.UIQuestion\"P\n\031BallotQuestionsU" + - "IElements\0223\n\tquestions\030\001 \003(\0132 .meerkat.B" + - "allotQuestionUIElement*:\n\tValueType\022\r\n\tT" + - "EXT_TYPE\020\000\022\016\n\nAUDIO_TYPE\020\001\022\016\n\nIMAGE_TYPE" + - "\020\002B\022\n\020meerkat.protobufb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_meerkat_UIAnswer_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_meerkat_UIAnswer_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_UIAnswer_descriptor, - new java.lang.String[] { "Answer", "Description", }); - internal_static_meerkat_ListOfAnswers_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_meerkat_ListOfAnswers_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_ListOfAnswers_descriptor, - new java.lang.String[] { "Answers", }); - internal_static_meerkat_UIAnswers_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_meerkat_UIAnswers_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_UIAnswers_descriptor, - new java.lang.String[] { "AnswersType", "Answers", }); - internal_static_meerkat_Question_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_meerkat_Question_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_Question_descriptor, - new java.lang.String[] { "Question", }); - internal_static_meerkat_UIQuestion_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_meerkat_UIQuestion_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_UIQuestion_descriptor, - new java.lang.String[] { "QuestionType", "Question", }); - internal_static_meerkat_BallotQuestionUIElement_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_meerkat_BallotQuestionUIElement_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_BallotQuestionUIElement_descriptor, - new java.lang.String[] { "Answers", "RandomizeListOrder", "Question", }); - internal_static_meerkat_BallotQuestionsUIElements_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_meerkat_BallotQuestionsUIElements_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_BallotQuestionsUIElements_descriptor, - new java.lang.String[] { "Questions", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/android-scanner/src/main/java/meerkat/protobuf/BulletinBoardAPI.java b/android-scanner/src/main/java/meerkat/protobuf/BulletinBoardAPI.java deleted file mode 100644 index d26e3a0..0000000 --- a/android-scanner/src/main/java/meerkat/protobuf/BulletinBoardAPI.java +++ /dev/null @@ -1,14679 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: meerkat/BulletinBoardAPI.proto - -package meerkat.protobuf; - -public final class BulletinBoardAPI { - private BulletinBoardAPI() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code meerkat.FilterType} - */ - public enum FilterType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * Match exact message ID
-     * 
- * - * MSG_ID = 0; - */ - MSG_ID(0), - /** - *
-     * Match exact entry number in database (chronological)
-     * 
- * - * EXACT_ENTRY = 1; - */ - EXACT_ENTRY(1), - /** - *
-     * Find all entries in database up to specified entry number (chronological)
-     * 
- * - * MAX_ENTRY = 2; - */ - MAX_ENTRY(2), - /** - *
-     * Find all entries in database starting from specified entry number (chronological)
-     * 
- * - * MIN_ENTRY = 3; - */ - MIN_ENTRY(3), - /** - *
-     * Find all entries in database that correspond to specific signature (signer)
-     * 
- * - * SIGNER_ID = 4; - */ - SIGNER_ID(4), - /** - *
-     * Find all entries in database that have a specific tag
-     * 
- * - * TAG = 5; - */ - TAG(5), - /** - *
-     * Find all entries in database that occurred on or after a given timestamp
-     * 
- * - * AFTER_TIME = 6; - */ - AFTER_TIME(6), - /** - *
-     * Find all entries in database that occurred on or before a given timestamp
-     * 
- * - * BEFORE_TIME = 7; - */ - BEFORE_TIME(7), - /** - *
-     * NOTE: The MAX_MESSAGES filter must remain the last filter type
-     *       This is because the condition it specifies in an SQL statement must come last in the statement
-     *       Keeping it last here allows for easily sorting the filters and keeping the code general
-     * 
- * - * MAX_MESSAGES = 8; - */ - MAX_MESSAGES(8), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Match exact message ID
-     * 
- * - * MSG_ID = 0; - */ - public static final int MSG_ID_VALUE = 0; - /** - *
-     * Match exact entry number in database (chronological)
-     * 
- * - * EXACT_ENTRY = 1; - */ - public static final int EXACT_ENTRY_VALUE = 1; - /** - *
-     * Find all entries in database up to specified entry number (chronological)
-     * 
- * - * MAX_ENTRY = 2; - */ - public static final int MAX_ENTRY_VALUE = 2; - /** - *
-     * Find all entries in database starting from specified entry number (chronological)
-     * 
- * - * MIN_ENTRY = 3; - */ - public static final int MIN_ENTRY_VALUE = 3; - /** - *
-     * Find all entries in database that correspond to specific signature (signer)
-     * 
- * - * SIGNER_ID = 4; - */ - public static final int SIGNER_ID_VALUE = 4; - /** - *
-     * Find all entries in database that have a specific tag
-     * 
- * - * TAG = 5; - */ - public static final int TAG_VALUE = 5; - /** - *
-     * Find all entries in database that occurred on or after a given timestamp
-     * 
- * - * AFTER_TIME = 6; - */ - public static final int AFTER_TIME_VALUE = 6; - /** - *
-     * Find all entries in database that occurred on or before a given timestamp
-     * 
- * - * BEFORE_TIME = 7; - */ - public static final int BEFORE_TIME_VALUE = 7; - /** - *
-     * NOTE: The MAX_MESSAGES filter must remain the last filter type
-     *       This is because the condition it specifies in an SQL statement must come last in the statement
-     *       Keeping it last here allows for easily sorting the filters and keeping the code general
-     * 
- * - * MAX_MESSAGES = 8; - */ - public static final int MAX_MESSAGES_VALUE = 8; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static FilterType valueOf(int value) { - return forNumber(value); - } - - public static FilterType forNumber(int value) { - switch (value) { - case 0: return MSG_ID; - case 1: return EXACT_ENTRY; - case 2: return MAX_ENTRY; - case 3: return MIN_ENTRY; - case 4: return SIGNER_ID; - case 5: return TAG; - case 6: return AFTER_TIME; - case 7: return BEFORE_TIME; - case 8: return MAX_MESSAGES; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - FilterType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public FilterType findValueByNumber(int number) { - return FilterType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return meerkat.protobuf.BulletinBoardAPI.getDescriptor().getEnumTypes().get(0); - } - - private static final FilterType[] VALUES = values(); - - public static FilterType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private FilterType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:meerkat.FilterType) - } - - public interface BoolMsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.BoolMsg) - com.google.protobuf.MessageOrBuilder { - - /** - * bool value = 1; - */ - boolean getValue(); - } - /** - * Protobuf type {@code meerkat.BoolMsg} - */ - public static final class BoolMsg extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.BoolMsg) - BoolMsgOrBuilder { - // Use BoolMsg.newBuilder() to construct. - private BoolMsg(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BoolMsg() { - value_ = false; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private BoolMsg( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - value_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BoolMsg_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BoolMsg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BulletinBoardAPI.BoolMsg.class, meerkat.protobuf.BulletinBoardAPI.BoolMsg.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private boolean value_; - /** - * bool value = 1; - */ - public boolean getValue() { - return value_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (value_ != false) { - output.writeBool(1, value_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (value_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, value_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.BulletinBoardAPI.BoolMsg)) { - return super.equals(obj); - } - meerkat.protobuf.BulletinBoardAPI.BoolMsg other = (meerkat.protobuf.BulletinBoardAPI.BoolMsg) obj; - - boolean result = true; - result = result && (getValue() - == other.getValue()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValue()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.BulletinBoardAPI.BoolMsg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BulletinBoardAPI.BoolMsg parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.BoolMsg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BulletinBoardAPI.BoolMsg parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.BoolMsg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.BoolMsg parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.BoolMsg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.BoolMsg parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.BoolMsg parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.BoolMsg parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.BulletinBoardAPI.BoolMsg prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code meerkat.BoolMsg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:meerkat.BoolMsg) - meerkat.protobuf.BulletinBoardAPI.BoolMsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BoolMsg_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BoolMsg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BulletinBoardAPI.BoolMsg.class, meerkat.protobuf.BulletinBoardAPI.BoolMsg.Builder.class); - } - - // Construct using meerkat.protobuf.BulletinBoardAPI.BoolMsg.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - value_ = false; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BoolMsg_descriptor; - } - - public meerkat.protobuf.BulletinBoardAPI.BoolMsg getDefaultInstanceForType() { - return meerkat.protobuf.BulletinBoardAPI.BoolMsg.getDefaultInstance(); - } - - public meerkat.protobuf.BulletinBoardAPI.BoolMsg build() { - meerkat.protobuf.BulletinBoardAPI.BoolMsg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.BulletinBoardAPI.BoolMsg buildPartial() { - meerkat.protobuf.BulletinBoardAPI.BoolMsg result = new meerkat.protobuf.BulletinBoardAPI.BoolMsg(this); - result.value_ = value_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.BulletinBoardAPI.BoolMsg) { - return mergeFrom((meerkat.protobuf.BulletinBoardAPI.BoolMsg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.BulletinBoardAPI.BoolMsg other) { - if (other == meerkat.protobuf.BulletinBoardAPI.BoolMsg.getDefaultInstance()) return this; - if (other.getValue() != false) { - setValue(other.getValue()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.BulletinBoardAPI.BoolMsg parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.BulletinBoardAPI.BoolMsg) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean value_ ; - /** - * bool value = 1; - */ - public boolean getValue() { - return value_; - } - /** - * bool value = 1; - */ - public Builder setValue(boolean value) { - - value_ = value; - onChanged(); - return this; - } - /** - * bool value = 1; - */ - public Builder clearValue() { - - value_ = false; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.BoolMsg) - } - - // @@protoc_insertion_point(class_scope:meerkat.BoolMsg) - private static final meerkat.protobuf.BulletinBoardAPI.BoolMsg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.BulletinBoardAPI.BoolMsg(); - } - - public static meerkat.protobuf.BulletinBoardAPI.BoolMsg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public BoolMsg parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BoolMsg(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public meerkat.protobuf.BulletinBoardAPI.BoolMsg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface IntMsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.IntMsg) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 value = 1; - */ - int getValue(); - } - /** - * Protobuf type {@code meerkat.IntMsg} - */ - public static final class IntMsg extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.IntMsg) - IntMsgOrBuilder { - // Use IntMsg.newBuilder() to construct. - private IntMsg(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private IntMsg() { - value_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private IntMsg( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - value_ = input.readInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_IntMsg_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_IntMsg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BulletinBoardAPI.IntMsg.class, meerkat.protobuf.BulletinBoardAPI.IntMsg.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private int value_; - /** - * int32 value = 1; - */ - public int getValue() { - return value_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (value_ != 0) { - output.writeInt32(1, value_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (value_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, value_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.BulletinBoardAPI.IntMsg)) { - return super.equals(obj); - } - meerkat.protobuf.BulletinBoardAPI.IntMsg other = (meerkat.protobuf.BulletinBoardAPI.IntMsg) obj; - - boolean result = true; - result = result && (getValue() - == other.getValue()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.BulletinBoardAPI.IntMsg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BulletinBoardAPI.IntMsg parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.IntMsg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BulletinBoardAPI.IntMsg parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.IntMsg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.IntMsg parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.IntMsg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.IntMsg parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.IntMsg parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.IntMsg parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.BulletinBoardAPI.IntMsg prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code meerkat.IntMsg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:meerkat.IntMsg) - meerkat.protobuf.BulletinBoardAPI.IntMsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_IntMsg_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_IntMsg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BulletinBoardAPI.IntMsg.class, meerkat.protobuf.BulletinBoardAPI.IntMsg.Builder.class); - } - - // Construct using meerkat.protobuf.BulletinBoardAPI.IntMsg.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - value_ = 0; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_IntMsg_descriptor; - } - - public meerkat.protobuf.BulletinBoardAPI.IntMsg getDefaultInstanceForType() { - return meerkat.protobuf.BulletinBoardAPI.IntMsg.getDefaultInstance(); - } - - public meerkat.protobuf.BulletinBoardAPI.IntMsg build() { - meerkat.protobuf.BulletinBoardAPI.IntMsg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.BulletinBoardAPI.IntMsg buildPartial() { - meerkat.protobuf.BulletinBoardAPI.IntMsg result = new meerkat.protobuf.BulletinBoardAPI.IntMsg(this); - result.value_ = value_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.BulletinBoardAPI.IntMsg) { - return mergeFrom((meerkat.protobuf.BulletinBoardAPI.IntMsg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.BulletinBoardAPI.IntMsg other) { - if (other == meerkat.protobuf.BulletinBoardAPI.IntMsg.getDefaultInstance()) return this; - if (other.getValue() != 0) { - setValue(other.getValue()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.BulletinBoardAPI.IntMsg parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.BulletinBoardAPI.IntMsg) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int value_ ; - /** - * int32 value = 1; - */ - public int getValue() { - return value_; - } - /** - * int32 value = 1; - */ - public Builder setValue(int value) { - - value_ = value; - onChanged(); - return this; - } - /** - * int32 value = 1; - */ - public Builder clearValue() { - - value_ = 0; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.IntMsg) - } - - // @@protoc_insertion_point(class_scope:meerkat.IntMsg) - private static final meerkat.protobuf.BulletinBoardAPI.IntMsg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.BulletinBoardAPI.IntMsg(); - } - - public static meerkat.protobuf.BulletinBoardAPI.IntMsg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public IntMsg parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IntMsg(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public meerkat.protobuf.BulletinBoardAPI.IntMsg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MessageIDOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.MessageID) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The ID of a message for unique retrieval.
-     * Note that it is assumed that this ID is a function of the message itself.
-     * 
- * - * bytes ID = 1; - */ - com.google.protobuf.ByteString getID(); - } - /** - * Protobuf type {@code meerkat.MessageID} - */ - public static final class MessageID extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.MessageID) - MessageIDOrBuilder { - // Use MessageID.newBuilder() to construct. - private MessageID(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MessageID() { - iD_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private MessageID( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - - iD_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_MessageID_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_MessageID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BulletinBoardAPI.MessageID.class, meerkat.protobuf.BulletinBoardAPI.MessageID.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString iD_; - /** - *
-     * The ID of a message for unique retrieval.
-     * Note that it is assumed that this ID is a function of the message itself.
-     * 
- * - * bytes ID = 1; - */ - public com.google.protobuf.ByteString getID() { - return iD_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!iD_.isEmpty()) { - output.writeBytes(1, iD_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!iD_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, iD_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.BulletinBoardAPI.MessageID)) { - return super.equals(obj); - } - meerkat.protobuf.BulletinBoardAPI.MessageID other = (meerkat.protobuf.BulletinBoardAPI.MessageID) obj; - - boolean result = true; - result = result && getID() - .equals(other.getID()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getID().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.BulletinBoardAPI.MessageID parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BulletinBoardAPI.MessageID parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.MessageID parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BulletinBoardAPI.MessageID parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.MessageID parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.MessageID parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.MessageID parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.MessageID parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.MessageID parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.MessageID parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.BulletinBoardAPI.MessageID prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code meerkat.MessageID} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:meerkat.MessageID) - meerkat.protobuf.BulletinBoardAPI.MessageIDOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_MessageID_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_MessageID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BulletinBoardAPI.MessageID.class, meerkat.protobuf.BulletinBoardAPI.MessageID.Builder.class); - } - - // Construct using meerkat.protobuf.BulletinBoardAPI.MessageID.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - iD_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_MessageID_descriptor; - } - - public meerkat.protobuf.BulletinBoardAPI.MessageID getDefaultInstanceForType() { - return meerkat.protobuf.BulletinBoardAPI.MessageID.getDefaultInstance(); - } - - public meerkat.protobuf.BulletinBoardAPI.MessageID build() { - meerkat.protobuf.BulletinBoardAPI.MessageID result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.BulletinBoardAPI.MessageID buildPartial() { - meerkat.protobuf.BulletinBoardAPI.MessageID result = new meerkat.protobuf.BulletinBoardAPI.MessageID(this); - result.iD_ = iD_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.BulletinBoardAPI.MessageID) { - return mergeFrom((meerkat.protobuf.BulletinBoardAPI.MessageID)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.BulletinBoardAPI.MessageID other) { - if (other == meerkat.protobuf.BulletinBoardAPI.MessageID.getDefaultInstance()) return this; - if (other.getID() != com.google.protobuf.ByteString.EMPTY) { - setID(other.getID()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.BulletinBoardAPI.MessageID parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.BulletinBoardAPI.MessageID) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString iD_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       * The ID of a message for unique retrieval.
-       * Note that it is assumed that this ID is a function of the message itself.
-       * 
- * - * bytes ID = 1; - */ - public com.google.protobuf.ByteString getID() { - return iD_; - } - /** - *
-       * The ID of a message for unique retrieval.
-       * Note that it is assumed that this ID is a function of the message itself.
-       * 
- * - * bytes ID = 1; - */ - public Builder setID(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - iD_ = value; - onChanged(); - return this; - } - /** - *
-       * The ID of a message for unique retrieval.
-       * Note that it is assumed that this ID is a function of the message itself.
-       * 
- * - * bytes ID = 1; - */ - public Builder clearID() { - - iD_ = getDefaultInstance().getID(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.MessageID) - } - - // @@protoc_insertion_point(class_scope:meerkat.MessageID) - private static final meerkat.protobuf.BulletinBoardAPI.MessageID DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.BulletinBoardAPI.MessageID(); - } - - public static meerkat.protobuf.BulletinBoardAPI.MessageID getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public MessageID parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MessageID(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public meerkat.protobuf.BulletinBoardAPI.MessageID getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface UnsignedBulletinBoardMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.UnsignedBulletinBoardMessage) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Optional tags describing message; Used for message retrieval
-     * 
- * - * repeated string tag = 1; - */ - java.util.List - getTagList(); - /** - *
-     * Optional tags describing message; Used for message retrieval
-     * 
- * - * repeated string tag = 1; - */ - int getTagCount(); - /** - *
-     * Optional tags describing message; Used for message retrieval
-     * 
- * - * repeated string tag = 1; - */ - java.lang.String getTag(int index); - /** - *
-     * Optional tags describing message; Used for message retrieval
-     * 
- * - * repeated string tag = 1; - */ - com.google.protobuf.ByteString - getTagBytes(int index); - - /** - *
-     * Timestamp of the message (as defined by client)
-     * 
- * - * .google.protobuf.Timestamp timestamp = 2; - */ - boolean hasTimestamp(); - /** - *
-     * Timestamp of the message (as defined by client)
-     * 
- * - * .google.protobuf.Timestamp timestamp = 2; - */ - com.google.protobuf.Timestamp getTimestamp(); - /** - *
-     * Timestamp of the message (as defined by client)
-     * 
- * - * .google.protobuf.Timestamp timestamp = 2; - */ - com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder(); - - /** - *
-     * A unique message identifier
-     * 
- * - * bytes msgId = 3; - */ - com.google.protobuf.ByteString getMsgId(); - - /** - *
-     * The actual content of the message
-     * 
- * - * bytes data = 4; - */ - com.google.protobuf.ByteString getData(); - - public meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage.DataTypeCase getDataTypeCase(); - } - /** - * Protobuf type {@code meerkat.UnsignedBulletinBoardMessage} - */ - public static final class UnsignedBulletinBoardMessage extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.UnsignedBulletinBoardMessage) - UnsignedBulletinBoardMessageOrBuilder { - // Use UnsignedBulletinBoardMessage.newBuilder() to construct. - private UnsignedBulletinBoardMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UnsignedBulletinBoardMessage() { - tag_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private UnsignedBulletinBoardMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - tag_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - tag_.add(s); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (timestamp_ != null) { - subBuilder = timestamp_.toBuilder(); - } - timestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timestamp_); - timestamp_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - dataTypeCase_ = 3; - dataType_ = input.readBytes(); - break; - } - case 34: { - dataTypeCase_ = 4; - dataType_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - tag_ = tag_.getUnmodifiableView(); - } - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_UnsignedBulletinBoardMessage_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_UnsignedBulletinBoardMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage.class, meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage.Builder.class); - } - - private int bitField0_; - private int dataTypeCase_ = 0; - private java.lang.Object dataType_; - public enum DataTypeCase - implements com.google.protobuf.Internal.EnumLite { - MSGID(3), - DATA(4), - DATATYPE_NOT_SET(0); - private final int value; - private DataTypeCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static DataTypeCase valueOf(int value) { - return forNumber(value); - } - - public static DataTypeCase forNumber(int value) { - switch (value) { - case 3: return MSGID; - case 4: return DATA; - case 0: return DATATYPE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public DataTypeCase - getDataTypeCase() { - return DataTypeCase.forNumber( - dataTypeCase_); - } - - public static final int TAG_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList tag_; - /** - *
-     * Optional tags describing message; Used for message retrieval
-     * 
- * - * repeated string tag = 1; - */ - public com.google.protobuf.ProtocolStringList - getTagList() { - return tag_; - } - /** - *
-     * Optional tags describing message; Used for message retrieval
-     * 
- * - * repeated string tag = 1; - */ - public int getTagCount() { - return tag_.size(); - } - /** - *
-     * Optional tags describing message; Used for message retrieval
-     * 
- * - * repeated string tag = 1; - */ - public java.lang.String getTag(int index) { - return tag_.get(index); - } - /** - *
-     * Optional tags describing message; Used for message retrieval
-     * 
- * - * repeated string tag = 1; - */ - public com.google.protobuf.ByteString - getTagBytes(int index) { - return tag_.getByteString(index); - } - - public static final int TIMESTAMP_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp timestamp_; - /** - *
-     * Timestamp of the message (as defined by client)
-     * 
- * - * .google.protobuf.Timestamp timestamp = 2; - */ - public boolean hasTimestamp() { - return timestamp_ != null; - } - /** - *
-     * Timestamp of the message (as defined by client)
-     * 
- * - * .google.protobuf.Timestamp timestamp = 2; - */ - public com.google.protobuf.Timestamp getTimestamp() { - return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; - } - /** - *
-     * Timestamp of the message (as defined by client)
-     * 
- * - * .google.protobuf.Timestamp timestamp = 2; - */ - public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { - return getTimestamp(); - } - - public static final int MSGID_FIELD_NUMBER = 3; - /** - *
-     * A unique message identifier
-     * 
- * - * bytes msgId = 3; - */ - public com.google.protobuf.ByteString getMsgId() { - if (dataTypeCase_ == 3) { - return (com.google.protobuf.ByteString) dataType_; - } - return com.google.protobuf.ByteString.EMPTY; - } - - public static final int DATA_FIELD_NUMBER = 4; - /** - *
-     * The actual content of the message
-     * 
- * - * bytes data = 4; - */ - public com.google.protobuf.ByteString getData() { - if (dataTypeCase_ == 4) { - return (com.google.protobuf.ByteString) dataType_; - } - return com.google.protobuf.ByteString.EMPTY; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < tag_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tag_.getRaw(i)); - } - if (timestamp_ != null) { - output.writeMessage(2, getTimestamp()); - } - if (dataTypeCase_ == 3) { - output.writeBytes( - 3, (com.google.protobuf.ByteString)((com.google.protobuf.ByteString) dataType_)); - } - if (dataTypeCase_ == 4) { - output.writeBytes( - 4, (com.google.protobuf.ByteString)((com.google.protobuf.ByteString) dataType_)); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < tag_.size(); i++) { - dataSize += computeStringSizeNoTag(tag_.getRaw(i)); - } - size += dataSize; - size += 1 * getTagList().size(); - } - if (timestamp_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTimestamp()); - } - if (dataTypeCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 3, (com.google.protobuf.ByteString)((com.google.protobuf.ByteString) dataType_)); - } - if (dataTypeCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 4, (com.google.protobuf.ByteString)((com.google.protobuf.ByteString) dataType_)); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage)) { - return super.equals(obj); - } - meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage other = (meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage) obj; - - boolean result = true; - result = result && getTagList() - .equals(other.getTagList()); - result = result && (hasTimestamp() == other.hasTimestamp()); - if (hasTimestamp()) { - result = result && getTimestamp() - .equals(other.getTimestamp()); - } - result = result && getDataTypeCase().equals( - other.getDataTypeCase()); - if (!result) return false; - switch (dataTypeCase_) { - case 3: - result = result && getMsgId() - .equals(other.getMsgId()); - break; - case 4: - result = result && getData() - .equals(other.getData()); - break; - case 0: - default: - } - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTagCount() > 0) { - hash = (37 * hash) + TAG_FIELD_NUMBER; - hash = (53 * hash) + getTagList().hashCode(); - } - if (hasTimestamp()) { - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + getTimestamp().hashCode(); - } - switch (dataTypeCase_) { - case 3: - hash = (37 * hash) + MSGID_FIELD_NUMBER; - hash = (53 * hash) + getMsgId().hashCode(); - break; - case 4: - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code meerkat.UnsignedBulletinBoardMessage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:meerkat.UnsignedBulletinBoardMessage) - meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_UnsignedBulletinBoardMessage_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_UnsignedBulletinBoardMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage.class, meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage.Builder.class); - } - - // Construct using meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - tag_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (timestampBuilder_ == null) { - timestamp_ = null; - } else { - timestamp_ = null; - timestampBuilder_ = null; - } - dataTypeCase_ = 0; - dataType_ = null; - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_UnsignedBulletinBoardMessage_descriptor; - } - - public meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage getDefaultInstanceForType() { - return meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage.getDefaultInstance(); - } - - public meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage build() { - meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage buildPartial() { - meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage result = new meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - tag_ = tag_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.tag_ = tag_; - if (timestampBuilder_ == null) { - result.timestamp_ = timestamp_; - } else { - result.timestamp_ = timestampBuilder_.build(); - } - if (dataTypeCase_ == 3) { - result.dataType_ = dataType_; - } - if (dataTypeCase_ == 4) { - result.dataType_ = dataType_; - } - result.bitField0_ = to_bitField0_; - result.dataTypeCase_ = dataTypeCase_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage) { - return mergeFrom((meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage other) { - if (other == meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage.getDefaultInstance()) return this; - if (!other.tag_.isEmpty()) { - if (tag_.isEmpty()) { - tag_ = other.tag_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTagIsMutable(); - tag_.addAll(other.tag_); - } - onChanged(); - } - if (other.hasTimestamp()) { - mergeTimestamp(other.getTimestamp()); - } - switch (other.getDataTypeCase()) { - case MSGID: { - setMsgId(other.getMsgId()); - break; - } - case DATA: { - setData(other.getData()); - break; - } - case DATATYPE_NOT_SET: { - break; - } - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int dataTypeCase_ = 0; - private java.lang.Object dataType_; - public DataTypeCase - getDataTypeCase() { - return DataTypeCase.forNumber( - dataTypeCase_); - } - - public Builder clearDataType() { - dataTypeCase_ = 0; - dataType_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.LazyStringList tag_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureTagIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - tag_ = new com.google.protobuf.LazyStringArrayList(tag_); - bitField0_ |= 0x00000001; - } - } - /** - *
-       * Optional tags describing message; Used for message retrieval
-       * 
- * - * repeated string tag = 1; - */ - public com.google.protobuf.ProtocolStringList - getTagList() { - return tag_.getUnmodifiableView(); - } - /** - *
-       * Optional tags describing message; Used for message retrieval
-       * 
- * - * repeated string tag = 1; - */ - public int getTagCount() { - return tag_.size(); - } - /** - *
-       * Optional tags describing message; Used for message retrieval
-       * 
- * - * repeated string tag = 1; - */ - public java.lang.String getTag(int index) { - return tag_.get(index); - } - /** - *
-       * Optional tags describing message; Used for message retrieval
-       * 
- * - * repeated string tag = 1; - */ - public com.google.protobuf.ByteString - getTagBytes(int index) { - return tag_.getByteString(index); - } - /** - *
-       * Optional tags describing message; Used for message retrieval
-       * 
- * - * repeated string tag = 1; - */ - public Builder setTag( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagIsMutable(); - tag_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * Optional tags describing message; Used for message retrieval
-       * 
- * - * repeated string tag = 1; - */ - public Builder addTag( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagIsMutable(); - tag_.add(value); - onChanged(); - return this; - } - /** - *
-       * Optional tags describing message; Used for message retrieval
-       * 
- * - * repeated string tag = 1; - */ - public Builder addAllTag( - java.lang.Iterable values) { - ensureTagIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tag_); - onChanged(); - return this; - } - /** - *
-       * Optional tags describing message; Used for message retrieval
-       * 
- * - * repeated string tag = 1; - */ - public Builder clearTag() { - tag_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * Optional tags describing message; Used for message retrieval
-       * 
- * - * repeated string tag = 1; - */ - public Builder addTagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTagIsMutable(); - tag_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp timestamp_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_; - /** - *
-       * Timestamp of the message (as defined by client)
-       * 
- * - * .google.protobuf.Timestamp timestamp = 2; - */ - public boolean hasTimestamp() { - return timestampBuilder_ != null || timestamp_ != null; - } - /** - *
-       * Timestamp of the message (as defined by client)
-       * 
- * - * .google.protobuf.Timestamp timestamp = 2; - */ - public com.google.protobuf.Timestamp getTimestamp() { - if (timestampBuilder_ == null) { - return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; - } else { - return timestampBuilder_.getMessage(); - } - } - /** - *
-       * Timestamp of the message (as defined by client)
-       * 
- * - * .google.protobuf.Timestamp timestamp = 2; - */ - public Builder setTimestamp(com.google.protobuf.Timestamp value) { - if (timestampBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - timestamp_ = value; - onChanged(); - } else { - timestampBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Timestamp of the message (as defined by client)
-       * 
- * - * .google.protobuf.Timestamp timestamp = 2; - */ - public Builder setTimestamp( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (timestampBuilder_ == null) { - timestamp_ = builderForValue.build(); - onChanged(); - } else { - timestampBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Timestamp of the message (as defined by client)
-       * 
- * - * .google.protobuf.Timestamp timestamp = 2; - */ - public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { - if (timestampBuilder_ == null) { - if (timestamp_ != null) { - timestamp_ = - com.google.protobuf.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial(); - } else { - timestamp_ = value; - } - onChanged(); - } else { - timestampBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Timestamp of the message (as defined by client)
-       * 
- * - * .google.protobuf.Timestamp timestamp = 2; - */ - public Builder clearTimestamp() { - if (timestampBuilder_ == null) { - timestamp_ = null; - onChanged(); - } else { - timestamp_ = null; - timestampBuilder_ = null; - } - - return this; - } - /** - *
-       * Timestamp of the message (as defined by client)
-       * 
- * - * .google.protobuf.Timestamp timestamp = 2; - */ - public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { - - onChanged(); - return getTimestampFieldBuilder().getBuilder(); - } - /** - *
-       * Timestamp of the message (as defined by client)
-       * 
- * - * .google.protobuf.Timestamp timestamp = 2; - */ - public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { - if (timestampBuilder_ != null) { - return timestampBuilder_.getMessageOrBuilder(); - } else { - return timestamp_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; - } - } - /** - *
-       * Timestamp of the message (as defined by client)
-       * 
- * - * .google.protobuf.Timestamp timestamp = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getTimestampFieldBuilder() { - if (timestampBuilder_ == null) { - timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getTimestamp(), - getParentForChildren(), - isClean()); - timestamp_ = null; - } - return timestampBuilder_; - } - - /** - *
-       * A unique message identifier
-       * 
- * - * bytes msgId = 3; - */ - public com.google.protobuf.ByteString getMsgId() { - if (dataTypeCase_ == 3) { - return (com.google.protobuf.ByteString) dataType_; - } - return com.google.protobuf.ByteString.EMPTY; - } - /** - *
-       * A unique message identifier
-       * 
- * - * bytes msgId = 3; - */ - public Builder setMsgId(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - dataTypeCase_ = 3; - dataType_ = value; - onChanged(); - return this; - } - /** - *
-       * A unique message identifier
-       * 
- * - * bytes msgId = 3; - */ - public Builder clearMsgId() { - if (dataTypeCase_ == 3) { - dataTypeCase_ = 0; - dataType_ = null; - onChanged(); - } - return this; - } - - /** - *
-       * The actual content of the message
-       * 
- * - * bytes data = 4; - */ - public com.google.protobuf.ByteString getData() { - if (dataTypeCase_ == 4) { - return (com.google.protobuf.ByteString) dataType_; - } - return com.google.protobuf.ByteString.EMPTY; - } - /** - *
-       * The actual content of the message
-       * 
- * - * bytes data = 4; - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - dataTypeCase_ = 4; - dataType_ = value; - onChanged(); - return this; - } - /** - *
-       * The actual content of the message
-       * 
- * - * bytes data = 4; - */ - public Builder clearData() { - if (dataTypeCase_ == 4) { - dataTypeCase_ = 0; - dataType_ = null; - onChanged(); - } - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.UnsignedBulletinBoardMessage) - } - - // @@protoc_insertion_point(class_scope:meerkat.UnsignedBulletinBoardMessage) - private static final meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage(); - } - - public static meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public UnsignedBulletinBoardMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UnsignedBulletinBoardMessage(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BulletinBoardMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.BulletinBoardMessage) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Serial entry number of message in database
-     * 
- * - * int64 entryNum = 1; - */ - long getEntryNum(); - - /** - *
-     * Unsigned raw data of message
-     * 
- * - * .meerkat.UnsignedBulletinBoardMessage msg = 2; - */ - boolean hasMsg(); - /** - *
-     * Unsigned raw data of message
-     * 
- * - * .meerkat.UnsignedBulletinBoardMessage msg = 2; - */ - meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage getMsg(); - /** - *
-     * Unsigned raw data of message
-     * 
- * - * .meerkat.UnsignedBulletinBoardMessage msg = 2; - */ - meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessageOrBuilder getMsgOrBuilder(); - - /** - *
-     * Signature of message (and tags), excluding the entry number.
-     * 
- * - * repeated .meerkat.Signature sig = 3; - */ - java.util.List - getSigList(); - /** - *
-     * Signature of message (and tags), excluding the entry number.
-     * 
- * - * repeated .meerkat.Signature sig = 3; - */ - meerkat.protobuf.Crypto.Signature getSig(int index); - /** - *
-     * Signature of message (and tags), excluding the entry number.
-     * 
- * - * repeated .meerkat.Signature sig = 3; - */ - int getSigCount(); - /** - *
-     * Signature of message (and tags), excluding the entry number.
-     * 
- * - * repeated .meerkat.Signature sig = 3; - */ - java.util.List - getSigOrBuilderList(); - /** - *
-     * Signature of message (and tags), excluding the entry number.
-     * 
- * - * repeated .meerkat.Signature sig = 3; - */ - meerkat.protobuf.Crypto.SignatureOrBuilder getSigOrBuilder( - int index); - } - /** - * Protobuf type {@code meerkat.BulletinBoardMessage} - */ - public static final class BulletinBoardMessage extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.BulletinBoardMessage) - BulletinBoardMessageOrBuilder { - // Use BulletinBoardMessage.newBuilder() to construct. - private BulletinBoardMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BulletinBoardMessage() { - entryNum_ = 0L; - sig_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private BulletinBoardMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - entryNum_ = input.readInt64(); - break; - } - case 18: { - meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage.Builder subBuilder = null; - if (msg_ != null) { - subBuilder = msg_.toBuilder(); - } - msg_ = input.readMessage(meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(msg_); - msg_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - sig_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - sig_.add( - input.readMessage(meerkat.protobuf.Crypto.Signature.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - sig_ = java.util.Collections.unmodifiableList(sig_); - } - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BulletinBoardMessage_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BulletinBoardMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage.class, meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage.Builder.class); - } - - private int bitField0_; - public static final int ENTRYNUM_FIELD_NUMBER = 1; - private long entryNum_; - /** - *
-     * Serial entry number of message in database
-     * 
- * - * int64 entryNum = 1; - */ - public long getEntryNum() { - return entryNum_; - } - - public static final int MSG_FIELD_NUMBER = 2; - private meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage msg_; - /** - *
-     * Unsigned raw data of message
-     * 
- * - * .meerkat.UnsignedBulletinBoardMessage msg = 2; - */ - public boolean hasMsg() { - return msg_ != null; - } - /** - *
-     * Unsigned raw data of message
-     * 
- * - * .meerkat.UnsignedBulletinBoardMessage msg = 2; - */ - public meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage getMsg() { - return msg_ == null ? meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage.getDefaultInstance() : msg_; - } - /** - *
-     * Unsigned raw data of message
-     * 
- * - * .meerkat.UnsignedBulletinBoardMessage msg = 2; - */ - public meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessageOrBuilder getMsgOrBuilder() { - return getMsg(); - } - - public static final int SIG_FIELD_NUMBER = 3; - private java.util.List sig_; - /** - *
-     * Signature of message (and tags), excluding the entry number.
-     * 
- * - * repeated .meerkat.Signature sig = 3; - */ - public java.util.List getSigList() { - return sig_; - } - /** - *
-     * Signature of message (and tags), excluding the entry number.
-     * 
- * - * repeated .meerkat.Signature sig = 3; - */ - public java.util.List - getSigOrBuilderList() { - return sig_; - } - /** - *
-     * Signature of message (and tags), excluding the entry number.
-     * 
- * - * repeated .meerkat.Signature sig = 3; - */ - public int getSigCount() { - return sig_.size(); - } - /** - *
-     * Signature of message (and tags), excluding the entry number.
-     * 
- * - * repeated .meerkat.Signature sig = 3; - */ - public meerkat.protobuf.Crypto.Signature getSig(int index) { - return sig_.get(index); - } - /** - *
-     * Signature of message (and tags), excluding the entry number.
-     * 
- * - * repeated .meerkat.Signature sig = 3; - */ - public meerkat.protobuf.Crypto.SignatureOrBuilder getSigOrBuilder( - int index) { - return sig_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (entryNum_ != 0L) { - output.writeInt64(1, entryNum_); - } - if (msg_ != null) { - output.writeMessage(2, getMsg()); - } - for (int i = 0; i < sig_.size(); i++) { - output.writeMessage(3, sig_.get(i)); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (entryNum_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, entryNum_); - } - if (msg_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMsg()); - } - for (int i = 0; i < sig_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, sig_.get(i)); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage)) { - return super.equals(obj); - } - meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage other = (meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage) obj; - - boolean result = true; - result = result && (getEntryNum() - == other.getEntryNum()); - result = result && (hasMsg() == other.hasMsg()); - if (hasMsg()) { - result = result && getMsg() - .equals(other.getMsg()); - } - result = result && getSigList() - .equals(other.getSigList()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ENTRYNUM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getEntryNum()); - if (hasMsg()) { - hash = (37 * hash) + MSG_FIELD_NUMBER; - hash = (53 * hash) + getMsg().hashCode(); - } - if (getSigCount() > 0) { - hash = (37 * hash) + SIG_FIELD_NUMBER; - hash = (53 * hash) + getSigList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code meerkat.BulletinBoardMessage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:meerkat.BulletinBoardMessage) - meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BulletinBoardMessage_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BulletinBoardMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage.class, meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage.Builder.class); - } - - // Construct using meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getSigFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - entryNum_ = 0L; - - if (msgBuilder_ == null) { - msg_ = null; - } else { - msg_ = null; - msgBuilder_ = null; - } - if (sigBuilder_ == null) { - sig_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - sigBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BulletinBoardMessage_descriptor; - } - - public meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage getDefaultInstanceForType() { - return meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage.getDefaultInstance(); - } - - public meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage build() { - meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage buildPartial() { - meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage result = new meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.entryNum_ = entryNum_; - if (msgBuilder_ == null) { - result.msg_ = msg_; - } else { - result.msg_ = msgBuilder_.build(); - } - if (sigBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004)) { - sig_ = java.util.Collections.unmodifiableList(sig_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.sig_ = sig_; - } else { - result.sig_ = sigBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage) { - return mergeFrom((meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage other) { - if (other == meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage.getDefaultInstance()) return this; - if (other.getEntryNum() != 0L) { - setEntryNum(other.getEntryNum()); - } - if (other.hasMsg()) { - mergeMsg(other.getMsg()); - } - if (sigBuilder_ == null) { - if (!other.sig_.isEmpty()) { - if (sig_.isEmpty()) { - sig_ = other.sig_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureSigIsMutable(); - sig_.addAll(other.sig_); - } - onChanged(); - } - } else { - if (!other.sig_.isEmpty()) { - if (sigBuilder_.isEmpty()) { - sigBuilder_.dispose(); - sigBuilder_ = null; - sig_ = other.sig_; - bitField0_ = (bitField0_ & ~0x00000004); - sigBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSigFieldBuilder() : null; - } else { - sigBuilder_.addAllMessages(other.sig_); - } - } - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long entryNum_ ; - /** - *
-       * Serial entry number of message in database
-       * 
- * - * int64 entryNum = 1; - */ - public long getEntryNum() { - return entryNum_; - } - /** - *
-       * Serial entry number of message in database
-       * 
- * - * int64 entryNum = 1; - */ - public Builder setEntryNum(long value) { - - entryNum_ = value; - onChanged(); - return this; - } - /** - *
-       * Serial entry number of message in database
-       * 
- * - * int64 entryNum = 1; - */ - public Builder clearEntryNum() { - - entryNum_ = 0L; - onChanged(); - return this; - } - - private meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage msg_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage, meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage.Builder, meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessageOrBuilder> msgBuilder_; - /** - *
-       * Unsigned raw data of message
-       * 
- * - * .meerkat.UnsignedBulletinBoardMessage msg = 2; - */ - public boolean hasMsg() { - return msgBuilder_ != null || msg_ != null; - } - /** - *
-       * Unsigned raw data of message
-       * 
- * - * .meerkat.UnsignedBulletinBoardMessage msg = 2; - */ - public meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage getMsg() { - if (msgBuilder_ == null) { - return msg_ == null ? meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage.getDefaultInstance() : msg_; - } else { - return msgBuilder_.getMessage(); - } - } - /** - *
-       * Unsigned raw data of message
-       * 
- * - * .meerkat.UnsignedBulletinBoardMessage msg = 2; - */ - public Builder setMsg(meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage value) { - if (msgBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - msg_ = value; - onChanged(); - } else { - msgBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Unsigned raw data of message
-       * 
- * - * .meerkat.UnsignedBulletinBoardMessage msg = 2; - */ - public Builder setMsg( - meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage.Builder builderForValue) { - if (msgBuilder_ == null) { - msg_ = builderForValue.build(); - onChanged(); - } else { - msgBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Unsigned raw data of message
-       * 
- * - * .meerkat.UnsignedBulletinBoardMessage msg = 2; - */ - public Builder mergeMsg(meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage value) { - if (msgBuilder_ == null) { - if (msg_ != null) { - msg_ = - meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage.newBuilder(msg_).mergeFrom(value).buildPartial(); - } else { - msg_ = value; - } - onChanged(); - } else { - msgBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Unsigned raw data of message
-       * 
- * - * .meerkat.UnsignedBulletinBoardMessage msg = 2; - */ - public Builder clearMsg() { - if (msgBuilder_ == null) { - msg_ = null; - onChanged(); - } else { - msg_ = null; - msgBuilder_ = null; - } - - return this; - } - /** - *
-       * Unsigned raw data of message
-       * 
- * - * .meerkat.UnsignedBulletinBoardMessage msg = 2; - */ - public meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage.Builder getMsgBuilder() { - - onChanged(); - return getMsgFieldBuilder().getBuilder(); - } - /** - *
-       * Unsigned raw data of message
-       * 
- * - * .meerkat.UnsignedBulletinBoardMessage msg = 2; - */ - public meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessageOrBuilder getMsgOrBuilder() { - if (msgBuilder_ != null) { - return msgBuilder_.getMessageOrBuilder(); - } else { - return msg_ == null ? - meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage.getDefaultInstance() : msg_; - } - } - /** - *
-       * Unsigned raw data of message
-       * 
- * - * .meerkat.UnsignedBulletinBoardMessage msg = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage, meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage.Builder, meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessageOrBuilder> - getMsgFieldBuilder() { - if (msgBuilder_ == null) { - msgBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage, meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage.Builder, meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessageOrBuilder>( - getMsg(), - getParentForChildren(), - isClean()); - msg_ = null; - } - return msgBuilder_; - } - - private java.util.List sig_ = - java.util.Collections.emptyList(); - private void ensureSigIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { - sig_ = new java.util.ArrayList(sig_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.Crypto.Signature, meerkat.protobuf.Crypto.Signature.Builder, meerkat.protobuf.Crypto.SignatureOrBuilder> sigBuilder_; - - /** - *
-       * Signature of message (and tags), excluding the entry number.
-       * 
- * - * repeated .meerkat.Signature sig = 3; - */ - public java.util.List getSigList() { - if (sigBuilder_ == null) { - return java.util.Collections.unmodifiableList(sig_); - } else { - return sigBuilder_.getMessageList(); - } - } - /** - *
-       * Signature of message (and tags), excluding the entry number.
-       * 
- * - * repeated .meerkat.Signature sig = 3; - */ - public int getSigCount() { - if (sigBuilder_ == null) { - return sig_.size(); - } else { - return sigBuilder_.getCount(); - } - } - /** - *
-       * Signature of message (and tags), excluding the entry number.
-       * 
- * - * repeated .meerkat.Signature sig = 3; - */ - public meerkat.protobuf.Crypto.Signature getSig(int index) { - if (sigBuilder_ == null) { - return sig_.get(index); - } else { - return sigBuilder_.getMessage(index); - } - } - /** - *
-       * Signature of message (and tags), excluding the entry number.
-       * 
- * - * repeated .meerkat.Signature sig = 3; - */ - public Builder setSig( - int index, meerkat.protobuf.Crypto.Signature value) { - if (sigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSigIsMutable(); - sig_.set(index, value); - onChanged(); - } else { - sigBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Signature of message (and tags), excluding the entry number.
-       * 
- * - * repeated .meerkat.Signature sig = 3; - */ - public Builder setSig( - int index, meerkat.protobuf.Crypto.Signature.Builder builderForValue) { - if (sigBuilder_ == null) { - ensureSigIsMutable(); - sig_.set(index, builderForValue.build()); - onChanged(); - } else { - sigBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Signature of message (and tags), excluding the entry number.
-       * 
- * - * repeated .meerkat.Signature sig = 3; - */ - public Builder addSig(meerkat.protobuf.Crypto.Signature value) { - if (sigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSigIsMutable(); - sig_.add(value); - onChanged(); - } else { - sigBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Signature of message (and tags), excluding the entry number.
-       * 
- * - * repeated .meerkat.Signature sig = 3; - */ - public Builder addSig( - int index, meerkat.protobuf.Crypto.Signature value) { - if (sigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSigIsMutable(); - sig_.add(index, value); - onChanged(); - } else { - sigBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Signature of message (and tags), excluding the entry number.
-       * 
- * - * repeated .meerkat.Signature sig = 3; - */ - public Builder addSig( - meerkat.protobuf.Crypto.Signature.Builder builderForValue) { - if (sigBuilder_ == null) { - ensureSigIsMutable(); - sig_.add(builderForValue.build()); - onChanged(); - } else { - sigBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Signature of message (and tags), excluding the entry number.
-       * 
- * - * repeated .meerkat.Signature sig = 3; - */ - public Builder addSig( - int index, meerkat.protobuf.Crypto.Signature.Builder builderForValue) { - if (sigBuilder_ == null) { - ensureSigIsMutable(); - sig_.add(index, builderForValue.build()); - onChanged(); - } else { - sigBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Signature of message (and tags), excluding the entry number.
-       * 
- * - * repeated .meerkat.Signature sig = 3; - */ - public Builder addAllSig( - java.lang.Iterable values) { - if (sigBuilder_ == null) { - ensureSigIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, sig_); - onChanged(); - } else { - sigBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Signature of message (and tags), excluding the entry number.
-       * 
- * - * repeated .meerkat.Signature sig = 3; - */ - public Builder clearSig() { - if (sigBuilder_ == null) { - sig_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - sigBuilder_.clear(); - } - return this; - } - /** - *
-       * Signature of message (and tags), excluding the entry number.
-       * 
- * - * repeated .meerkat.Signature sig = 3; - */ - public Builder removeSig(int index) { - if (sigBuilder_ == null) { - ensureSigIsMutable(); - sig_.remove(index); - onChanged(); - } else { - sigBuilder_.remove(index); - } - return this; - } - /** - *
-       * Signature of message (and tags), excluding the entry number.
-       * 
- * - * repeated .meerkat.Signature sig = 3; - */ - public meerkat.protobuf.Crypto.Signature.Builder getSigBuilder( - int index) { - return getSigFieldBuilder().getBuilder(index); - } - /** - *
-       * Signature of message (and tags), excluding the entry number.
-       * 
- * - * repeated .meerkat.Signature sig = 3; - */ - public meerkat.protobuf.Crypto.SignatureOrBuilder getSigOrBuilder( - int index) { - if (sigBuilder_ == null) { - return sig_.get(index); } else { - return sigBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Signature of message (and tags), excluding the entry number.
-       * 
- * - * repeated .meerkat.Signature sig = 3; - */ - public java.util.List - getSigOrBuilderList() { - if (sigBuilder_ != null) { - return sigBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(sig_); - } - } - /** - *
-       * Signature of message (and tags), excluding the entry number.
-       * 
- * - * repeated .meerkat.Signature sig = 3; - */ - public meerkat.protobuf.Crypto.Signature.Builder addSigBuilder() { - return getSigFieldBuilder().addBuilder( - meerkat.protobuf.Crypto.Signature.getDefaultInstance()); - } - /** - *
-       * Signature of message (and tags), excluding the entry number.
-       * 
- * - * repeated .meerkat.Signature sig = 3; - */ - public meerkat.protobuf.Crypto.Signature.Builder addSigBuilder( - int index) { - return getSigFieldBuilder().addBuilder( - index, meerkat.protobuf.Crypto.Signature.getDefaultInstance()); - } - /** - *
-       * Signature of message (and tags), excluding the entry number.
-       * 
- * - * repeated .meerkat.Signature sig = 3; - */ - public java.util.List - getSigBuilderList() { - return getSigFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.Crypto.Signature, meerkat.protobuf.Crypto.Signature.Builder, meerkat.protobuf.Crypto.SignatureOrBuilder> - getSigFieldBuilder() { - if (sigBuilder_ == null) { - sigBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.Crypto.Signature, meerkat.protobuf.Crypto.Signature.Builder, meerkat.protobuf.Crypto.SignatureOrBuilder>( - sig_, - ((bitField0_ & 0x00000004) == 0x00000004), - getParentForChildren(), - isClean()); - sig_ = null; - } - return sigBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.BulletinBoardMessage) - } - - // @@protoc_insertion_point(class_scope:meerkat.BulletinBoardMessage) - private static final meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage(); - } - - public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public BulletinBoardMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BulletinBoardMessage(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BulletinBoardMessageListOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.BulletinBoardMessageList) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .meerkat.BulletinBoardMessage message = 1; - */ - java.util.List - getMessageList(); - /** - * repeated .meerkat.BulletinBoardMessage message = 1; - */ - meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage getMessage(int index); - /** - * repeated .meerkat.BulletinBoardMessage message = 1; - */ - int getMessageCount(); - /** - * repeated .meerkat.BulletinBoardMessage message = 1; - */ - java.util.List - getMessageOrBuilderList(); - /** - * repeated .meerkat.BulletinBoardMessage message = 1; - */ - meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageOrBuilder getMessageOrBuilder( - int index); - } - /** - * Protobuf type {@code meerkat.BulletinBoardMessageList} - */ - public static final class BulletinBoardMessageList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.BulletinBoardMessageList) - BulletinBoardMessageListOrBuilder { - // Use BulletinBoardMessageList.newBuilder() to construct. - private BulletinBoardMessageList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BulletinBoardMessageList() { - message_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private BulletinBoardMessageList( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - message_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - message_.add( - input.readMessage(meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - message_ = java.util.Collections.unmodifiableList(message_); - } - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BulletinBoardMessageList_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BulletinBoardMessageList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList.class, meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList.Builder.class); - } - - public static final int MESSAGE_FIELD_NUMBER = 1; - private java.util.List message_; - /** - * repeated .meerkat.BulletinBoardMessage message = 1; - */ - public java.util.List getMessageList() { - return message_; - } - /** - * repeated .meerkat.BulletinBoardMessage message = 1; - */ - public java.util.List - getMessageOrBuilderList() { - return message_; - } - /** - * repeated .meerkat.BulletinBoardMessage message = 1; - */ - public int getMessageCount() { - return message_.size(); - } - /** - * repeated .meerkat.BulletinBoardMessage message = 1; - */ - public meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage getMessage(int index) { - return message_.get(index); - } - /** - * repeated .meerkat.BulletinBoardMessage message = 1; - */ - public meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageOrBuilder getMessageOrBuilder( - int index) { - return message_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < message_.size(); i++) { - output.writeMessage(1, message_.get(i)); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < message_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, message_.get(i)); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList)) { - return super.equals(obj); - } - meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList other = (meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList) obj; - - boolean result = true; - result = result && getMessageList() - .equals(other.getMessageList()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getMessageCount() > 0) { - hash = (37 * hash) + MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getMessageList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code meerkat.BulletinBoardMessageList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:meerkat.BulletinBoardMessageList) - meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BulletinBoardMessageList_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BulletinBoardMessageList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList.class, meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList.Builder.class); - } - - // Construct using meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getMessageFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (messageBuilder_ == null) { - message_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - messageBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BulletinBoardMessageList_descriptor; - } - - public meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList getDefaultInstanceForType() { - return meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList.getDefaultInstance(); - } - - public meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList build() { - meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList buildPartial() { - meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList result = new meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList(this); - int from_bitField0_ = bitField0_; - if (messageBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - message_ = java.util.Collections.unmodifiableList(message_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.message_ = message_; - } else { - result.message_ = messageBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList) { - return mergeFrom((meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList other) { - if (other == meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList.getDefaultInstance()) return this; - if (messageBuilder_ == null) { - if (!other.message_.isEmpty()) { - if (message_.isEmpty()) { - message_ = other.message_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureMessageIsMutable(); - message_.addAll(other.message_); - } - onChanged(); - } - } else { - if (!other.message_.isEmpty()) { - if (messageBuilder_.isEmpty()) { - messageBuilder_.dispose(); - messageBuilder_ = null; - message_ = other.message_; - bitField0_ = (bitField0_ & ~0x00000001); - messageBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMessageFieldBuilder() : null; - } else { - messageBuilder_.addAllMessages(other.message_); - } - } - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List message_ = - java.util.Collections.emptyList(); - private void ensureMessageIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - message_ = new java.util.ArrayList(message_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage, meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage.Builder, meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageOrBuilder> messageBuilder_; - - /** - * repeated .meerkat.BulletinBoardMessage message = 1; - */ - public java.util.List getMessageList() { - if (messageBuilder_ == null) { - return java.util.Collections.unmodifiableList(message_); - } else { - return messageBuilder_.getMessageList(); - } - } - /** - * repeated .meerkat.BulletinBoardMessage message = 1; - */ - public int getMessageCount() { - if (messageBuilder_ == null) { - return message_.size(); - } else { - return messageBuilder_.getCount(); - } - } - /** - * repeated .meerkat.BulletinBoardMessage message = 1; - */ - public meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage getMessage(int index) { - if (messageBuilder_ == null) { - return message_.get(index); - } else { - return messageBuilder_.getMessage(index); - } - } - /** - * repeated .meerkat.BulletinBoardMessage message = 1; - */ - public Builder setMessage( - int index, meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage value) { - if (messageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMessageIsMutable(); - message_.set(index, value); - onChanged(); - } else { - messageBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .meerkat.BulletinBoardMessage message = 1; - */ - public Builder setMessage( - int index, meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage.Builder builderForValue) { - if (messageBuilder_ == null) { - ensureMessageIsMutable(); - message_.set(index, builderForValue.build()); - onChanged(); - } else { - messageBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .meerkat.BulletinBoardMessage message = 1; - */ - public Builder addMessage(meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage value) { - if (messageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMessageIsMutable(); - message_.add(value); - onChanged(); - } else { - messageBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .meerkat.BulletinBoardMessage message = 1; - */ - public Builder addMessage( - int index, meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage value) { - if (messageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMessageIsMutable(); - message_.add(index, value); - onChanged(); - } else { - messageBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .meerkat.BulletinBoardMessage message = 1; - */ - public Builder addMessage( - meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage.Builder builderForValue) { - if (messageBuilder_ == null) { - ensureMessageIsMutable(); - message_.add(builderForValue.build()); - onChanged(); - } else { - messageBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .meerkat.BulletinBoardMessage message = 1; - */ - public Builder addMessage( - int index, meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage.Builder builderForValue) { - if (messageBuilder_ == null) { - ensureMessageIsMutable(); - message_.add(index, builderForValue.build()); - onChanged(); - } else { - messageBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .meerkat.BulletinBoardMessage message = 1; - */ - public Builder addAllMessage( - java.lang.Iterable values) { - if (messageBuilder_ == null) { - ensureMessageIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, message_); - onChanged(); - } else { - messageBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .meerkat.BulletinBoardMessage message = 1; - */ - public Builder clearMessage() { - if (messageBuilder_ == null) { - message_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - messageBuilder_.clear(); - } - return this; - } - /** - * repeated .meerkat.BulletinBoardMessage message = 1; - */ - public Builder removeMessage(int index) { - if (messageBuilder_ == null) { - ensureMessageIsMutable(); - message_.remove(index); - onChanged(); - } else { - messageBuilder_.remove(index); - } - return this; - } - /** - * repeated .meerkat.BulletinBoardMessage message = 1; - */ - public meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage.Builder getMessageBuilder( - int index) { - return getMessageFieldBuilder().getBuilder(index); - } - /** - * repeated .meerkat.BulletinBoardMessage message = 1; - */ - public meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageOrBuilder getMessageOrBuilder( - int index) { - if (messageBuilder_ == null) { - return message_.get(index); } else { - return messageBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .meerkat.BulletinBoardMessage message = 1; - */ - public java.util.List - getMessageOrBuilderList() { - if (messageBuilder_ != null) { - return messageBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(message_); - } - } - /** - * repeated .meerkat.BulletinBoardMessage message = 1; - */ - public meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage.Builder addMessageBuilder() { - return getMessageFieldBuilder().addBuilder( - meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage.getDefaultInstance()); - } - /** - * repeated .meerkat.BulletinBoardMessage message = 1; - */ - public meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage.Builder addMessageBuilder( - int index) { - return getMessageFieldBuilder().addBuilder( - index, meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage.getDefaultInstance()); - } - /** - * repeated .meerkat.BulletinBoardMessage message = 1; - */ - public java.util.List - getMessageBuilderList() { - return getMessageFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage, meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage.Builder, meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageOrBuilder> - getMessageFieldBuilder() { - if (messageBuilder_ == null) { - messageBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage, meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage.Builder, meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageOrBuilder>( - message_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - message_ = null; - } - return messageBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.BulletinBoardMessageList) - } - - // @@protoc_insertion_point(class_scope:meerkat.BulletinBoardMessageList) - private static final meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList(); - } - - public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public BulletinBoardMessageList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BulletinBoardMessageList(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MessageFilterOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.MessageFilter) - com.google.protobuf.MessageOrBuilder { - - /** - * .meerkat.FilterType type = 1; - */ - int getTypeValue(); - /** - * .meerkat.FilterType type = 1; - */ - meerkat.protobuf.BulletinBoardAPI.FilterType getType(); - - /** - * bytes id = 2; - */ - com.google.protobuf.ByteString getId(); - - /** - * int64 entry = 3; - */ - long getEntry(); - - /** - * string tag = 4; - */ - java.lang.String getTag(); - /** - * string tag = 4; - */ - com.google.protobuf.ByteString - getTagBytes(); - - /** - * int64 maxMessages = 5; - */ - long getMaxMessages(); - - /** - * .google.protobuf.Timestamp timestamp = 6; - */ - com.google.protobuf.Timestamp getTimestamp(); - /** - * .google.protobuf.Timestamp timestamp = 6; - */ - com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder(); - - public meerkat.protobuf.BulletinBoardAPI.MessageFilter.FilterCase getFilterCase(); - } - /** - * Protobuf type {@code meerkat.MessageFilter} - */ - public static final class MessageFilter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.MessageFilter) - MessageFilterOrBuilder { - // Use MessageFilter.newBuilder() to construct. - private MessageFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MessageFilter() { - type_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private MessageFilter( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 18: { - filterCase_ = 2; - filter_ = input.readBytes(); - break; - } - case 24: { - filterCase_ = 3; - filter_ = input.readInt64(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - filterCase_ = 4; - filter_ = s; - break; - } - case 40: { - filterCase_ = 5; - filter_ = input.readInt64(); - break; - } - case 50: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (filterCase_ == 6) { - subBuilder = ((com.google.protobuf.Timestamp) filter_).toBuilder(); - } - filter_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.protobuf.Timestamp) filter_); - filter_ = subBuilder.buildPartial(); - } - filterCase_ = 6; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_MessageFilter_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_MessageFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BulletinBoardAPI.MessageFilter.class, meerkat.protobuf.BulletinBoardAPI.MessageFilter.Builder.class); - } - - private int filterCase_ = 0; - private java.lang.Object filter_; - public enum FilterCase - implements com.google.protobuf.Internal.EnumLite { - ID(2), - ENTRY(3), - TAG(4), - MAXMESSAGES(5), - TIMESTAMP(6), - FILTER_NOT_SET(0); - private final int value; - private FilterCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static FilterCase valueOf(int value) { - return forNumber(value); - } - - public static FilterCase forNumber(int value) { - switch (value) { - case 2: return ID; - case 3: return ENTRY; - case 4: return TAG; - case 5: return MAXMESSAGES; - case 6: return TIMESTAMP; - case 0: return FILTER_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public FilterCase - getFilterCase() { - return FilterCase.forNumber( - filterCase_); - } - - public static final int TYPE_FIELD_NUMBER = 1; - private int type_; - /** - * .meerkat.FilterType type = 1; - */ - public int getTypeValue() { - return type_; - } - /** - * .meerkat.FilterType type = 1; - */ - public meerkat.protobuf.BulletinBoardAPI.FilterType getType() { - meerkat.protobuf.BulletinBoardAPI.FilterType result = meerkat.protobuf.BulletinBoardAPI.FilterType.valueOf(type_); - return result == null ? meerkat.protobuf.BulletinBoardAPI.FilterType.UNRECOGNIZED : result; - } - - public static final int ID_FIELD_NUMBER = 2; - /** - * bytes id = 2; - */ - public com.google.protobuf.ByteString getId() { - if (filterCase_ == 2) { - return (com.google.protobuf.ByteString) filter_; - } - return com.google.protobuf.ByteString.EMPTY; - } - - public static final int ENTRY_FIELD_NUMBER = 3; - /** - * int64 entry = 3; - */ - public long getEntry() { - if (filterCase_ == 3) { - return (java.lang.Long) filter_; - } - return 0L; - } - - public static final int TAG_FIELD_NUMBER = 4; - /** - * string tag = 4; - */ - public java.lang.String getTag() { - java.lang.Object ref = ""; - if (filterCase_ == 4) { - ref = filter_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (filterCase_ == 4) { - filter_ = s; - } - return s; - } - } - /** - * string tag = 4; - */ - public com.google.protobuf.ByteString - getTagBytes() { - java.lang.Object ref = ""; - if (filterCase_ == 4) { - ref = filter_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (filterCase_ == 4) { - filter_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MAXMESSAGES_FIELD_NUMBER = 5; - /** - * int64 maxMessages = 5; - */ - public long getMaxMessages() { - if (filterCase_ == 5) { - return (java.lang.Long) filter_; - } - return 0L; - } - - public static final int TIMESTAMP_FIELD_NUMBER = 6; - /** - * .google.protobuf.Timestamp timestamp = 6; - */ - public com.google.protobuf.Timestamp getTimestamp() { - if (filterCase_ == 6) { - return (com.google.protobuf.Timestamp) filter_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - /** - * .google.protobuf.Timestamp timestamp = 6; - */ - public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { - if (filterCase_ == 6) { - return (com.google.protobuf.Timestamp) filter_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (type_ != meerkat.protobuf.BulletinBoardAPI.FilterType.MSG_ID.getNumber()) { - output.writeEnum(1, type_); - } - if (filterCase_ == 2) { - output.writeBytes( - 2, (com.google.protobuf.ByteString)((com.google.protobuf.ByteString) filter_)); - } - if (filterCase_ == 3) { - output.writeInt64( - 3, (long)((java.lang.Long) filter_)); - } - if (filterCase_ == 4) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); - } - if (filterCase_ == 5) { - output.writeInt64( - 5, (long)((java.lang.Long) filter_)); - } - if (filterCase_ == 6) { - output.writeMessage(6, (com.google.protobuf.Timestamp) filter_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (type_ != meerkat.protobuf.BulletinBoardAPI.FilterType.MSG_ID.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); - } - if (filterCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 2, (com.google.protobuf.ByteString)((com.google.protobuf.ByteString) filter_)); - } - if (filterCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size( - 3, (long)((java.lang.Long) filter_)); - } - if (filterCase_ == 4) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); - } - if (filterCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size( - 5, (long)((java.lang.Long) filter_)); - } - if (filterCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.google.protobuf.Timestamp) filter_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.BulletinBoardAPI.MessageFilter)) { - return super.equals(obj); - } - meerkat.protobuf.BulletinBoardAPI.MessageFilter other = (meerkat.protobuf.BulletinBoardAPI.MessageFilter) obj; - - boolean result = true; - result = result && type_ == other.type_; - result = result && getFilterCase().equals( - other.getFilterCase()); - if (!result) return false; - switch (filterCase_) { - case 2: - result = result && getId() - .equals(other.getId()); - break; - case 3: - result = result && (getEntry() - == other.getEntry()); - break; - case 4: - result = result && getTag() - .equals(other.getTag()); - break; - case 5: - result = result && (getMaxMessages() - == other.getMaxMessages()); - break; - case 6: - result = result && getTimestamp() - .equals(other.getTimestamp()); - break; - case 0: - default: - } - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - switch (filterCase_) { - case 2: - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - break; - case 3: - hash = (37 * hash) + ENTRY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getEntry()); - break; - case 4: - hash = (37 * hash) + TAG_FIELD_NUMBER; - hash = (53 * hash) + getTag().hashCode(); - break; - case 5: - hash = (37 * hash) + MAXMESSAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxMessages()); - break; - case 6: - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + getTimestamp().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.BulletinBoardAPI.MessageFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BulletinBoardAPI.MessageFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.MessageFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BulletinBoardAPI.MessageFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.MessageFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.MessageFilter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.MessageFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.MessageFilter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.MessageFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.MessageFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.BulletinBoardAPI.MessageFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code meerkat.MessageFilter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:meerkat.MessageFilter) - meerkat.protobuf.BulletinBoardAPI.MessageFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_MessageFilter_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_MessageFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BulletinBoardAPI.MessageFilter.class, meerkat.protobuf.BulletinBoardAPI.MessageFilter.Builder.class); - } - - // Construct using meerkat.protobuf.BulletinBoardAPI.MessageFilter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - type_ = 0; - - filterCase_ = 0; - filter_ = null; - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_MessageFilter_descriptor; - } - - public meerkat.protobuf.BulletinBoardAPI.MessageFilter getDefaultInstanceForType() { - return meerkat.protobuf.BulletinBoardAPI.MessageFilter.getDefaultInstance(); - } - - public meerkat.protobuf.BulletinBoardAPI.MessageFilter build() { - meerkat.protobuf.BulletinBoardAPI.MessageFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.BulletinBoardAPI.MessageFilter buildPartial() { - meerkat.protobuf.BulletinBoardAPI.MessageFilter result = new meerkat.protobuf.BulletinBoardAPI.MessageFilter(this); - result.type_ = type_; - if (filterCase_ == 2) { - result.filter_ = filter_; - } - if (filterCase_ == 3) { - result.filter_ = filter_; - } - if (filterCase_ == 4) { - result.filter_ = filter_; - } - if (filterCase_ == 5) { - result.filter_ = filter_; - } - if (filterCase_ == 6) { - if (timestampBuilder_ == null) { - result.filter_ = filter_; - } else { - result.filter_ = timestampBuilder_.build(); - } - } - result.filterCase_ = filterCase_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.BulletinBoardAPI.MessageFilter) { - return mergeFrom((meerkat.protobuf.BulletinBoardAPI.MessageFilter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.BulletinBoardAPI.MessageFilter other) { - if (other == meerkat.protobuf.BulletinBoardAPI.MessageFilter.getDefaultInstance()) return this; - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - switch (other.getFilterCase()) { - case ID: { - setId(other.getId()); - break; - } - case ENTRY: { - setEntry(other.getEntry()); - break; - } - case TAG: { - filterCase_ = 4; - filter_ = other.filter_; - onChanged(); - break; - } - case MAXMESSAGES: { - setMaxMessages(other.getMaxMessages()); - break; - } - case TIMESTAMP: { - mergeTimestamp(other.getTimestamp()); - break; - } - case FILTER_NOT_SET: { - break; - } - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.BulletinBoardAPI.MessageFilter parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.BulletinBoardAPI.MessageFilter) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int filterCase_ = 0; - private java.lang.Object filter_; - public FilterCase - getFilterCase() { - return FilterCase.forNumber( - filterCase_); - } - - public Builder clearFilter() { - filterCase_ = 0; - filter_ = null; - onChanged(); - return this; - } - - - private int type_ = 0; - /** - * .meerkat.FilterType type = 1; - */ - public int getTypeValue() { - return type_; - } - /** - * .meerkat.FilterType type = 1; - */ - public Builder setTypeValue(int value) { - type_ = value; - onChanged(); - return this; - } - /** - * .meerkat.FilterType type = 1; - */ - public meerkat.protobuf.BulletinBoardAPI.FilterType getType() { - meerkat.protobuf.BulletinBoardAPI.FilterType result = meerkat.protobuf.BulletinBoardAPI.FilterType.valueOf(type_); - return result == null ? meerkat.protobuf.BulletinBoardAPI.FilterType.UNRECOGNIZED : result; - } - /** - * .meerkat.FilterType type = 1; - */ - public Builder setType(meerkat.protobuf.BulletinBoardAPI.FilterType value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .meerkat.FilterType type = 1; - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - - /** - * bytes id = 2; - */ - public com.google.protobuf.ByteString getId() { - if (filterCase_ == 2) { - return (com.google.protobuf.ByteString) filter_; - } - return com.google.protobuf.ByteString.EMPTY; - } - /** - * bytes id = 2; - */ - public Builder setId(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - filterCase_ = 2; - filter_ = value; - onChanged(); - return this; - } - /** - * bytes id = 2; - */ - public Builder clearId() { - if (filterCase_ == 2) { - filterCase_ = 0; - filter_ = null; - onChanged(); - } - return this; - } - - /** - * int64 entry = 3; - */ - public long getEntry() { - if (filterCase_ == 3) { - return (java.lang.Long) filter_; - } - return 0L; - } - /** - * int64 entry = 3; - */ - public Builder setEntry(long value) { - filterCase_ = 3; - filter_ = value; - onChanged(); - return this; - } - /** - * int64 entry = 3; - */ - public Builder clearEntry() { - if (filterCase_ == 3) { - filterCase_ = 0; - filter_ = null; - onChanged(); - } - return this; - } - - /** - * string tag = 4; - */ - public java.lang.String getTag() { - java.lang.Object ref = ""; - if (filterCase_ == 4) { - ref = filter_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (filterCase_ == 4) { - filter_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string tag = 4; - */ - public com.google.protobuf.ByteString - getTagBytes() { - java.lang.Object ref = ""; - if (filterCase_ == 4) { - ref = filter_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (filterCase_ == 4) { - filter_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string tag = 4; - */ - public Builder setTag( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - filterCase_ = 4; - filter_ = value; - onChanged(); - return this; - } - /** - * string tag = 4; - */ - public Builder clearTag() { - if (filterCase_ == 4) { - filterCase_ = 0; - filter_ = null; - onChanged(); - } - return this; - } - /** - * string tag = 4; - */ - public Builder setTagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - filterCase_ = 4; - filter_ = value; - onChanged(); - return this; - } - - /** - * int64 maxMessages = 5; - */ - public long getMaxMessages() { - if (filterCase_ == 5) { - return (java.lang.Long) filter_; - } - return 0L; - } - /** - * int64 maxMessages = 5; - */ - public Builder setMaxMessages(long value) { - filterCase_ = 5; - filter_ = value; - onChanged(); - return this; - } - /** - * int64 maxMessages = 5; - */ - public Builder clearMaxMessages() { - if (filterCase_ == 5) { - filterCase_ = 0; - filter_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_; - /** - * .google.protobuf.Timestamp timestamp = 6; - */ - public com.google.protobuf.Timestamp getTimestamp() { - if (timestampBuilder_ == null) { - if (filterCase_ == 6) { - return (com.google.protobuf.Timestamp) filter_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } else { - if (filterCase_ == 6) { - return timestampBuilder_.getMessage(); - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - } - /** - * .google.protobuf.Timestamp timestamp = 6; - */ - public Builder setTimestamp(com.google.protobuf.Timestamp value) { - if (timestampBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - filter_ = value; - onChanged(); - } else { - timestampBuilder_.setMessage(value); - } - filterCase_ = 6; - return this; - } - /** - * .google.protobuf.Timestamp timestamp = 6; - */ - public Builder setTimestamp( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (timestampBuilder_ == null) { - filter_ = builderForValue.build(); - onChanged(); - } else { - timestampBuilder_.setMessage(builderForValue.build()); - } - filterCase_ = 6; - return this; - } - /** - * .google.protobuf.Timestamp timestamp = 6; - */ - public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { - if (timestampBuilder_ == null) { - if (filterCase_ == 6 && - filter_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - filter_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) filter_) - .mergeFrom(value).buildPartial(); - } else { - filter_ = value; - } - onChanged(); - } else { - if (filterCase_ == 6) { - timestampBuilder_.mergeFrom(value); - } - timestampBuilder_.setMessage(value); - } - filterCase_ = 6; - return this; - } - /** - * .google.protobuf.Timestamp timestamp = 6; - */ - public Builder clearTimestamp() { - if (timestampBuilder_ == null) { - if (filterCase_ == 6) { - filterCase_ = 0; - filter_ = null; - onChanged(); - } - } else { - if (filterCase_ == 6) { - filterCase_ = 0; - filter_ = null; - } - timestampBuilder_.clear(); - } - return this; - } - /** - * .google.protobuf.Timestamp timestamp = 6; - */ - public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { - return getTimestampFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp timestamp = 6; - */ - public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { - if ((filterCase_ == 6) && (timestampBuilder_ != null)) { - return timestampBuilder_.getMessageOrBuilder(); - } else { - if (filterCase_ == 6) { - return (com.google.protobuf.Timestamp) filter_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - } - /** - * .google.protobuf.Timestamp timestamp = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getTimestampFieldBuilder() { - if (timestampBuilder_ == null) { - if (!(filterCase_ == 6)) { - filter_ = com.google.protobuf.Timestamp.getDefaultInstance(); - } - timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - (com.google.protobuf.Timestamp) filter_, - getParentForChildren(), - isClean()); - filter_ = null; - } - filterCase_ = 6; - onChanged();; - return timestampBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.MessageFilter) - } - - // @@protoc_insertion_point(class_scope:meerkat.MessageFilter) - private static final meerkat.protobuf.BulletinBoardAPI.MessageFilter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.BulletinBoardAPI.MessageFilter(); - } - - public static meerkat.protobuf.BulletinBoardAPI.MessageFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public MessageFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MessageFilter(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public meerkat.protobuf.BulletinBoardAPI.MessageFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MessageFilterListOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.MessageFilterList) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Combination of filters.
-     * To be implemented using intersection ("AND") operations.
-     * 
- * - * repeated .meerkat.MessageFilter filter = 1; - */ - java.util.List - getFilterList(); - /** - *
-     * Combination of filters.
-     * To be implemented using intersection ("AND") operations.
-     * 
- * - * repeated .meerkat.MessageFilter filter = 1; - */ - meerkat.protobuf.BulletinBoardAPI.MessageFilter getFilter(int index); - /** - *
-     * Combination of filters.
-     * To be implemented using intersection ("AND") operations.
-     * 
- * - * repeated .meerkat.MessageFilter filter = 1; - */ - int getFilterCount(); - /** - *
-     * Combination of filters.
-     * To be implemented using intersection ("AND") operations.
-     * 
- * - * repeated .meerkat.MessageFilter filter = 1; - */ - java.util.List - getFilterOrBuilderList(); - /** - *
-     * Combination of filters.
-     * To be implemented using intersection ("AND") operations.
-     * 
- * - * repeated .meerkat.MessageFilter filter = 1; - */ - meerkat.protobuf.BulletinBoardAPI.MessageFilterOrBuilder getFilterOrBuilder( - int index); - } - /** - * Protobuf type {@code meerkat.MessageFilterList} - */ - public static final class MessageFilterList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.MessageFilterList) - MessageFilterListOrBuilder { - // Use MessageFilterList.newBuilder() to construct. - private MessageFilterList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MessageFilterList() { - filter_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private MessageFilterList( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - filter_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - filter_.add( - input.readMessage(meerkat.protobuf.BulletinBoardAPI.MessageFilter.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - filter_ = java.util.Collections.unmodifiableList(filter_); - } - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_MessageFilterList_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_MessageFilterList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BulletinBoardAPI.MessageFilterList.class, meerkat.protobuf.BulletinBoardAPI.MessageFilterList.Builder.class); - } - - public static final int FILTER_FIELD_NUMBER = 1; - private java.util.List filter_; - /** - *
-     * Combination of filters.
-     * To be implemented using intersection ("AND") operations.
-     * 
- * - * repeated .meerkat.MessageFilter filter = 1; - */ - public java.util.List getFilterList() { - return filter_; - } - /** - *
-     * Combination of filters.
-     * To be implemented using intersection ("AND") operations.
-     * 
- * - * repeated .meerkat.MessageFilter filter = 1; - */ - public java.util.List - getFilterOrBuilderList() { - return filter_; - } - /** - *
-     * Combination of filters.
-     * To be implemented using intersection ("AND") operations.
-     * 
- * - * repeated .meerkat.MessageFilter filter = 1; - */ - public int getFilterCount() { - return filter_.size(); - } - /** - *
-     * Combination of filters.
-     * To be implemented using intersection ("AND") operations.
-     * 
- * - * repeated .meerkat.MessageFilter filter = 1; - */ - public meerkat.protobuf.BulletinBoardAPI.MessageFilter getFilter(int index) { - return filter_.get(index); - } - /** - *
-     * Combination of filters.
-     * To be implemented using intersection ("AND") operations.
-     * 
- * - * repeated .meerkat.MessageFilter filter = 1; - */ - public meerkat.protobuf.BulletinBoardAPI.MessageFilterOrBuilder getFilterOrBuilder( - int index) { - return filter_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < filter_.size(); i++) { - output.writeMessage(1, filter_.get(i)); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < filter_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, filter_.get(i)); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.BulletinBoardAPI.MessageFilterList)) { - return super.equals(obj); - } - meerkat.protobuf.BulletinBoardAPI.MessageFilterList other = (meerkat.protobuf.BulletinBoardAPI.MessageFilterList) obj; - - boolean result = true; - result = result && getFilterList() - .equals(other.getFilterList()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getFilterCount() > 0) { - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilterList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.BulletinBoardAPI.MessageFilterList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BulletinBoardAPI.MessageFilterList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.MessageFilterList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BulletinBoardAPI.MessageFilterList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.MessageFilterList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.MessageFilterList parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.MessageFilterList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.MessageFilterList parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.MessageFilterList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.MessageFilterList parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.BulletinBoardAPI.MessageFilterList prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code meerkat.MessageFilterList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:meerkat.MessageFilterList) - meerkat.protobuf.BulletinBoardAPI.MessageFilterListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_MessageFilterList_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_MessageFilterList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BulletinBoardAPI.MessageFilterList.class, meerkat.protobuf.BulletinBoardAPI.MessageFilterList.Builder.class); - } - - // Construct using meerkat.protobuf.BulletinBoardAPI.MessageFilterList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getFilterFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (filterBuilder_ == null) { - filter_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - filterBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_MessageFilterList_descriptor; - } - - public meerkat.protobuf.BulletinBoardAPI.MessageFilterList getDefaultInstanceForType() { - return meerkat.protobuf.BulletinBoardAPI.MessageFilterList.getDefaultInstance(); - } - - public meerkat.protobuf.BulletinBoardAPI.MessageFilterList build() { - meerkat.protobuf.BulletinBoardAPI.MessageFilterList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.BulletinBoardAPI.MessageFilterList buildPartial() { - meerkat.protobuf.BulletinBoardAPI.MessageFilterList result = new meerkat.protobuf.BulletinBoardAPI.MessageFilterList(this); - int from_bitField0_ = bitField0_; - if (filterBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - filter_ = java.util.Collections.unmodifiableList(filter_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.filter_ = filter_; - } else { - result.filter_ = filterBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.BulletinBoardAPI.MessageFilterList) { - return mergeFrom((meerkat.protobuf.BulletinBoardAPI.MessageFilterList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.BulletinBoardAPI.MessageFilterList other) { - if (other == meerkat.protobuf.BulletinBoardAPI.MessageFilterList.getDefaultInstance()) return this; - if (filterBuilder_ == null) { - if (!other.filter_.isEmpty()) { - if (filter_.isEmpty()) { - filter_ = other.filter_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureFilterIsMutable(); - filter_.addAll(other.filter_); - } - onChanged(); - } - } else { - if (!other.filter_.isEmpty()) { - if (filterBuilder_.isEmpty()) { - filterBuilder_.dispose(); - filterBuilder_ = null; - filter_ = other.filter_; - bitField0_ = (bitField0_ & ~0x00000001); - filterBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFilterFieldBuilder() : null; - } else { - filterBuilder_.addAllMessages(other.filter_); - } - } - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.BulletinBoardAPI.MessageFilterList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.BulletinBoardAPI.MessageFilterList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List filter_ = - java.util.Collections.emptyList(); - private void ensureFilterIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - filter_ = new java.util.ArrayList(filter_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.BulletinBoardAPI.MessageFilter, meerkat.protobuf.BulletinBoardAPI.MessageFilter.Builder, meerkat.protobuf.BulletinBoardAPI.MessageFilterOrBuilder> filterBuilder_; - - /** - *
-       * Combination of filters.
-       * To be implemented using intersection ("AND") operations.
-       * 
- * - * repeated .meerkat.MessageFilter filter = 1; - */ - public java.util.List getFilterList() { - if (filterBuilder_ == null) { - return java.util.Collections.unmodifiableList(filter_); - } else { - return filterBuilder_.getMessageList(); - } - } - /** - *
-       * Combination of filters.
-       * To be implemented using intersection ("AND") operations.
-       * 
- * - * repeated .meerkat.MessageFilter filter = 1; - */ - public int getFilterCount() { - if (filterBuilder_ == null) { - return filter_.size(); - } else { - return filterBuilder_.getCount(); - } - } - /** - *
-       * Combination of filters.
-       * To be implemented using intersection ("AND") operations.
-       * 
- * - * repeated .meerkat.MessageFilter filter = 1; - */ - public meerkat.protobuf.BulletinBoardAPI.MessageFilter getFilter(int index) { - if (filterBuilder_ == null) { - return filter_.get(index); - } else { - return filterBuilder_.getMessage(index); - } - } - /** - *
-       * Combination of filters.
-       * To be implemented using intersection ("AND") operations.
-       * 
- * - * repeated .meerkat.MessageFilter filter = 1; - */ - public Builder setFilter( - int index, meerkat.protobuf.BulletinBoardAPI.MessageFilter value) { - if (filterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFilterIsMutable(); - filter_.set(index, value); - onChanged(); - } else { - filterBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Combination of filters.
-       * To be implemented using intersection ("AND") operations.
-       * 
- * - * repeated .meerkat.MessageFilter filter = 1; - */ - public Builder setFilter( - int index, meerkat.protobuf.BulletinBoardAPI.MessageFilter.Builder builderForValue) { - if (filterBuilder_ == null) { - ensureFilterIsMutable(); - filter_.set(index, builderForValue.build()); - onChanged(); - } else { - filterBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Combination of filters.
-       * To be implemented using intersection ("AND") operations.
-       * 
- * - * repeated .meerkat.MessageFilter filter = 1; - */ - public Builder addFilter(meerkat.protobuf.BulletinBoardAPI.MessageFilter value) { - if (filterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFilterIsMutable(); - filter_.add(value); - onChanged(); - } else { - filterBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Combination of filters.
-       * To be implemented using intersection ("AND") operations.
-       * 
- * - * repeated .meerkat.MessageFilter filter = 1; - */ - public Builder addFilter( - int index, meerkat.protobuf.BulletinBoardAPI.MessageFilter value) { - if (filterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFilterIsMutable(); - filter_.add(index, value); - onChanged(); - } else { - filterBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Combination of filters.
-       * To be implemented using intersection ("AND") operations.
-       * 
- * - * repeated .meerkat.MessageFilter filter = 1; - */ - public Builder addFilter( - meerkat.protobuf.BulletinBoardAPI.MessageFilter.Builder builderForValue) { - if (filterBuilder_ == null) { - ensureFilterIsMutable(); - filter_.add(builderForValue.build()); - onChanged(); - } else { - filterBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Combination of filters.
-       * To be implemented using intersection ("AND") operations.
-       * 
- * - * repeated .meerkat.MessageFilter filter = 1; - */ - public Builder addFilter( - int index, meerkat.protobuf.BulletinBoardAPI.MessageFilter.Builder builderForValue) { - if (filterBuilder_ == null) { - ensureFilterIsMutable(); - filter_.add(index, builderForValue.build()); - onChanged(); - } else { - filterBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Combination of filters.
-       * To be implemented using intersection ("AND") operations.
-       * 
- * - * repeated .meerkat.MessageFilter filter = 1; - */ - public Builder addAllFilter( - java.lang.Iterable values) { - if (filterBuilder_ == null) { - ensureFilterIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, filter_); - onChanged(); - } else { - filterBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Combination of filters.
-       * To be implemented using intersection ("AND") operations.
-       * 
- * - * repeated .meerkat.MessageFilter filter = 1; - */ - public Builder clearFilter() { - if (filterBuilder_ == null) { - filter_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - filterBuilder_.clear(); - } - return this; - } - /** - *
-       * Combination of filters.
-       * To be implemented using intersection ("AND") operations.
-       * 
- * - * repeated .meerkat.MessageFilter filter = 1; - */ - public Builder removeFilter(int index) { - if (filterBuilder_ == null) { - ensureFilterIsMutable(); - filter_.remove(index); - onChanged(); - } else { - filterBuilder_.remove(index); - } - return this; - } - /** - *
-       * Combination of filters.
-       * To be implemented using intersection ("AND") operations.
-       * 
- * - * repeated .meerkat.MessageFilter filter = 1; - */ - public meerkat.protobuf.BulletinBoardAPI.MessageFilter.Builder getFilterBuilder( - int index) { - return getFilterFieldBuilder().getBuilder(index); - } - /** - *
-       * Combination of filters.
-       * To be implemented using intersection ("AND") operations.
-       * 
- * - * repeated .meerkat.MessageFilter filter = 1; - */ - public meerkat.protobuf.BulletinBoardAPI.MessageFilterOrBuilder getFilterOrBuilder( - int index) { - if (filterBuilder_ == null) { - return filter_.get(index); } else { - return filterBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Combination of filters.
-       * To be implemented using intersection ("AND") operations.
-       * 
- * - * repeated .meerkat.MessageFilter filter = 1; - */ - public java.util.List - getFilterOrBuilderList() { - if (filterBuilder_ != null) { - return filterBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(filter_); - } - } - /** - *
-       * Combination of filters.
-       * To be implemented using intersection ("AND") operations.
-       * 
- * - * repeated .meerkat.MessageFilter filter = 1; - */ - public meerkat.protobuf.BulletinBoardAPI.MessageFilter.Builder addFilterBuilder() { - return getFilterFieldBuilder().addBuilder( - meerkat.protobuf.BulletinBoardAPI.MessageFilter.getDefaultInstance()); - } - /** - *
-       * Combination of filters.
-       * To be implemented using intersection ("AND") operations.
-       * 
- * - * repeated .meerkat.MessageFilter filter = 1; - */ - public meerkat.protobuf.BulletinBoardAPI.MessageFilter.Builder addFilterBuilder( - int index) { - return getFilterFieldBuilder().addBuilder( - index, meerkat.protobuf.BulletinBoardAPI.MessageFilter.getDefaultInstance()); - } - /** - *
-       * Combination of filters.
-       * To be implemented using intersection ("AND") operations.
-       * 
- * - * repeated .meerkat.MessageFilter filter = 1; - */ - public java.util.List - getFilterBuilderList() { - return getFilterFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.BulletinBoardAPI.MessageFilter, meerkat.protobuf.BulletinBoardAPI.MessageFilter.Builder, meerkat.protobuf.BulletinBoardAPI.MessageFilterOrBuilder> - getFilterFieldBuilder() { - if (filterBuilder_ == null) { - filterBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.BulletinBoardAPI.MessageFilter, meerkat.protobuf.BulletinBoardAPI.MessageFilter.Builder, meerkat.protobuf.BulletinBoardAPI.MessageFilterOrBuilder>( - filter_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - filter_ = null; - } - return filterBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.MessageFilterList) - } - - // @@protoc_insertion_point(class_scope:meerkat.MessageFilterList) - private static final meerkat.protobuf.BulletinBoardAPI.MessageFilterList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.BulletinBoardAPI.MessageFilterList(); - } - - public static meerkat.protobuf.BulletinBoardAPI.MessageFilterList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public MessageFilterList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MessageFilterList(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public meerkat.protobuf.BulletinBoardAPI.MessageFilterList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BeginBatchMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.BeginBatchMessage) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Tags for the batch message
-     * 
- * - * repeated string tag = 1; - */ - java.util.List - getTagList(); - /** - *
-     * Tags for the batch message
-     * 
- * - * repeated string tag = 1; - */ - int getTagCount(); - /** - *
-     * Tags for the batch message
-     * 
- * - * repeated string tag = 1; - */ - java.lang.String getTag(int index); - /** - *
-     * Tags for the batch message
-     * 
- * - * repeated string tag = 1; - */ - com.google.protobuf.ByteString - getTagBytes(int index); - } - /** - *
-   * This message is used to start a batch transfer to the Bulletin Board Server
-   * 
- * - * Protobuf type {@code meerkat.BeginBatchMessage} - */ - public static final class BeginBatchMessage extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.BeginBatchMessage) - BeginBatchMessageOrBuilder { - // Use BeginBatchMessage.newBuilder() to construct. - private BeginBatchMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BeginBatchMessage() { - tag_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private BeginBatchMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - tag_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - tag_.add(s); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - tag_ = tag_.getUnmodifiableView(); - } - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BeginBatchMessage_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BeginBatchMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage.class, meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage.Builder.class); - } - - public static final int TAG_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList tag_; - /** - *
-     * Tags for the batch message
-     * 
- * - * repeated string tag = 1; - */ - public com.google.protobuf.ProtocolStringList - getTagList() { - return tag_; - } - /** - *
-     * Tags for the batch message
-     * 
- * - * repeated string tag = 1; - */ - public int getTagCount() { - return tag_.size(); - } - /** - *
-     * Tags for the batch message
-     * 
- * - * repeated string tag = 1; - */ - public java.lang.String getTag(int index) { - return tag_.get(index); - } - /** - *
-     * Tags for the batch message
-     * 
- * - * repeated string tag = 1; - */ - public com.google.protobuf.ByteString - getTagBytes(int index) { - return tag_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < tag_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tag_.getRaw(i)); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < tag_.size(); i++) { - dataSize += computeStringSizeNoTag(tag_.getRaw(i)); - } - size += dataSize; - size += 1 * getTagList().size(); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage)) { - return super.equals(obj); - } - meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage other = (meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage) obj; - - boolean result = true; - result = result && getTagList() - .equals(other.getTagList()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTagCount() > 0) { - hash = (37 * hash) + TAG_FIELD_NUMBER; - hash = (53 * hash) + getTagList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * This message is used to start a batch transfer to the Bulletin Board Server
-     * 
- * - * Protobuf type {@code meerkat.BeginBatchMessage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:meerkat.BeginBatchMessage) - meerkat.protobuf.BulletinBoardAPI.BeginBatchMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BeginBatchMessage_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BeginBatchMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage.class, meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage.Builder.class); - } - - // Construct using meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - tag_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BeginBatchMessage_descriptor; - } - - public meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage getDefaultInstanceForType() { - return meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage.getDefaultInstance(); - } - - public meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage build() { - meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage buildPartial() { - meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage result = new meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - tag_ = tag_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.tag_ = tag_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage) { - return mergeFrom((meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage other) { - if (other == meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage.getDefaultInstance()) return this; - if (!other.tag_.isEmpty()) { - if (tag_.isEmpty()) { - tag_ = other.tag_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTagIsMutable(); - tag_.addAll(other.tag_); - } - onChanged(); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList tag_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureTagIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - tag_ = new com.google.protobuf.LazyStringArrayList(tag_); - bitField0_ |= 0x00000001; - } - } - /** - *
-       * Tags for the batch message
-       * 
- * - * repeated string tag = 1; - */ - public com.google.protobuf.ProtocolStringList - getTagList() { - return tag_.getUnmodifiableView(); - } - /** - *
-       * Tags for the batch message
-       * 
- * - * repeated string tag = 1; - */ - public int getTagCount() { - return tag_.size(); - } - /** - *
-       * Tags for the batch message
-       * 
- * - * repeated string tag = 1; - */ - public java.lang.String getTag(int index) { - return tag_.get(index); - } - /** - *
-       * Tags for the batch message
-       * 
- * - * repeated string tag = 1; - */ - public com.google.protobuf.ByteString - getTagBytes(int index) { - return tag_.getByteString(index); - } - /** - *
-       * Tags for the batch message
-       * 
- * - * repeated string tag = 1; - */ - public Builder setTag( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagIsMutable(); - tag_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * Tags for the batch message
-       * 
- * - * repeated string tag = 1; - */ - public Builder addTag( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagIsMutable(); - tag_.add(value); - onChanged(); - return this; - } - /** - *
-       * Tags for the batch message
-       * 
- * - * repeated string tag = 1; - */ - public Builder addAllTag( - java.lang.Iterable values) { - ensureTagIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tag_); - onChanged(); - return this; - } - /** - *
-       * Tags for the batch message
-       * 
- * - * repeated string tag = 1; - */ - public Builder clearTag() { - tag_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * Tags for the batch message
-       * 
- * - * repeated string tag = 1; - */ - public Builder addTagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTagIsMutable(); - tag_.add(value); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.BeginBatchMessage) - } - - // @@protoc_insertion_point(class_scope:meerkat.BeginBatchMessage) - private static final meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage(); - } - - public static meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public BeginBatchMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BeginBatchMessage(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CloseBatchMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.CloseBatchMessage) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique temporary identifier for the batch
-     * 
- * - * int64 batchId = 1; - */ - long getBatchId(); - - /** - *
-     * Number of messages in the batch
-     * 
- * - * int32 batchLength = 2; - */ - int getBatchLength(); - - /** - *
-     * Timestamp of the batch (as defined by client)
-     * 
- * - * .google.protobuf.Timestamp timestamp = 3; - */ - boolean hasTimestamp(); - /** - *
-     * Timestamp of the batch (as defined by client)
-     * 
- * - * .google.protobuf.Timestamp timestamp = 3; - */ - com.google.protobuf.Timestamp getTimestamp(); - /** - *
-     * Timestamp of the batch (as defined by client)
-     * 
- * - * .google.protobuf.Timestamp timestamp = 3; - */ - com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder(); - - /** - *
-     * Signatures on the (ordered) batch messages
-     * 
- * - * repeated .meerkat.Signature sig = 4; - */ - java.util.List - getSigList(); - /** - *
-     * Signatures on the (ordered) batch messages
-     * 
- * - * repeated .meerkat.Signature sig = 4; - */ - meerkat.protobuf.Crypto.Signature getSig(int index); - /** - *
-     * Signatures on the (ordered) batch messages
-     * 
- * - * repeated .meerkat.Signature sig = 4; - */ - int getSigCount(); - /** - *
-     * Signatures on the (ordered) batch messages
-     * 
- * - * repeated .meerkat.Signature sig = 4; - */ - java.util.List - getSigOrBuilderList(); - /** - *
-     * Signatures on the (ordered) batch messages
-     * 
- * - * repeated .meerkat.Signature sig = 4; - */ - meerkat.protobuf.Crypto.SignatureOrBuilder getSigOrBuilder( - int index); - } - /** - *
-   * This message is used to finalize and sign a batch transfer to the Bulletin Board Server
-   * 
- * - * Protobuf type {@code meerkat.CloseBatchMessage} - */ - public static final class CloseBatchMessage extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.CloseBatchMessage) - CloseBatchMessageOrBuilder { - // Use CloseBatchMessage.newBuilder() to construct. - private CloseBatchMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CloseBatchMessage() { - batchId_ = 0L; - batchLength_ = 0; - sig_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private CloseBatchMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - batchId_ = input.readInt64(); - break; - } - case 16: { - - batchLength_ = input.readInt32(); - break; - } - case 26: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (timestamp_ != null) { - subBuilder = timestamp_.toBuilder(); - } - timestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timestamp_); - timestamp_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - sig_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - sig_.add( - input.readMessage(meerkat.protobuf.Crypto.Signature.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - sig_ = java.util.Collections.unmodifiableList(sig_); - } - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_CloseBatchMessage_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_CloseBatchMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage.class, meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage.Builder.class); - } - - private int bitField0_; - public static final int BATCHID_FIELD_NUMBER = 1; - private long batchId_; - /** - *
-     * Unique temporary identifier for the batch
-     * 
- * - * int64 batchId = 1; - */ - public long getBatchId() { - return batchId_; - } - - public static final int BATCHLENGTH_FIELD_NUMBER = 2; - private int batchLength_; - /** - *
-     * Number of messages in the batch
-     * 
- * - * int32 batchLength = 2; - */ - public int getBatchLength() { - return batchLength_; - } - - public static final int TIMESTAMP_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp timestamp_; - /** - *
-     * Timestamp of the batch (as defined by client)
-     * 
- * - * .google.protobuf.Timestamp timestamp = 3; - */ - public boolean hasTimestamp() { - return timestamp_ != null; - } - /** - *
-     * Timestamp of the batch (as defined by client)
-     * 
- * - * .google.protobuf.Timestamp timestamp = 3; - */ - public com.google.protobuf.Timestamp getTimestamp() { - return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; - } - /** - *
-     * Timestamp of the batch (as defined by client)
-     * 
- * - * .google.protobuf.Timestamp timestamp = 3; - */ - public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { - return getTimestamp(); - } - - public static final int SIG_FIELD_NUMBER = 4; - private java.util.List sig_; - /** - *
-     * Signatures on the (ordered) batch messages
-     * 
- * - * repeated .meerkat.Signature sig = 4; - */ - public java.util.List getSigList() { - return sig_; - } - /** - *
-     * Signatures on the (ordered) batch messages
-     * 
- * - * repeated .meerkat.Signature sig = 4; - */ - public java.util.List - getSigOrBuilderList() { - return sig_; - } - /** - *
-     * Signatures on the (ordered) batch messages
-     * 
- * - * repeated .meerkat.Signature sig = 4; - */ - public int getSigCount() { - return sig_.size(); - } - /** - *
-     * Signatures on the (ordered) batch messages
-     * 
- * - * repeated .meerkat.Signature sig = 4; - */ - public meerkat.protobuf.Crypto.Signature getSig(int index) { - return sig_.get(index); - } - /** - *
-     * Signatures on the (ordered) batch messages
-     * 
- * - * repeated .meerkat.Signature sig = 4; - */ - public meerkat.protobuf.Crypto.SignatureOrBuilder getSigOrBuilder( - int index) { - return sig_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (batchId_ != 0L) { - output.writeInt64(1, batchId_); - } - if (batchLength_ != 0) { - output.writeInt32(2, batchLength_); - } - if (timestamp_ != null) { - output.writeMessage(3, getTimestamp()); - } - for (int i = 0; i < sig_.size(); i++) { - output.writeMessage(4, sig_.get(i)); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (batchId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, batchId_); - } - if (batchLength_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, batchLength_); - } - if (timestamp_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTimestamp()); - } - for (int i = 0; i < sig_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, sig_.get(i)); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage)) { - return super.equals(obj); - } - meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage other = (meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage) obj; - - boolean result = true; - result = result && (getBatchId() - == other.getBatchId()); - result = result && (getBatchLength() - == other.getBatchLength()); - result = result && (hasTimestamp() == other.hasTimestamp()); - if (hasTimestamp()) { - result = result && getTimestamp() - .equals(other.getTimestamp()); - } - result = result && getSigList() - .equals(other.getSigList()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BATCHID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBatchId()); - hash = (37 * hash) + BATCHLENGTH_FIELD_NUMBER; - hash = (53 * hash) + getBatchLength(); - if (hasTimestamp()) { - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + getTimestamp().hashCode(); - } - if (getSigCount() > 0) { - hash = (37 * hash) + SIG_FIELD_NUMBER; - hash = (53 * hash) + getSigList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * This message is used to finalize and sign a batch transfer to the Bulletin Board Server
-     * 
- * - * Protobuf type {@code meerkat.CloseBatchMessage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:meerkat.CloseBatchMessage) - meerkat.protobuf.BulletinBoardAPI.CloseBatchMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_CloseBatchMessage_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_CloseBatchMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage.class, meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage.Builder.class); - } - - // Construct using meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getSigFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - batchId_ = 0L; - - batchLength_ = 0; - - if (timestampBuilder_ == null) { - timestamp_ = null; - } else { - timestamp_ = null; - timestampBuilder_ = null; - } - if (sigBuilder_ == null) { - sig_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - sigBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_CloseBatchMessage_descriptor; - } - - public meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage getDefaultInstanceForType() { - return meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage.getDefaultInstance(); - } - - public meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage build() { - meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage buildPartial() { - meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage result = new meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.batchId_ = batchId_; - result.batchLength_ = batchLength_; - if (timestampBuilder_ == null) { - result.timestamp_ = timestamp_; - } else { - result.timestamp_ = timestampBuilder_.build(); - } - if (sigBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008)) { - sig_ = java.util.Collections.unmodifiableList(sig_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.sig_ = sig_; - } else { - result.sig_ = sigBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage) { - return mergeFrom((meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage other) { - if (other == meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage.getDefaultInstance()) return this; - if (other.getBatchId() != 0L) { - setBatchId(other.getBatchId()); - } - if (other.getBatchLength() != 0) { - setBatchLength(other.getBatchLength()); - } - if (other.hasTimestamp()) { - mergeTimestamp(other.getTimestamp()); - } - if (sigBuilder_ == null) { - if (!other.sig_.isEmpty()) { - if (sig_.isEmpty()) { - sig_ = other.sig_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureSigIsMutable(); - sig_.addAll(other.sig_); - } - onChanged(); - } - } else { - if (!other.sig_.isEmpty()) { - if (sigBuilder_.isEmpty()) { - sigBuilder_.dispose(); - sigBuilder_ = null; - sig_ = other.sig_; - bitField0_ = (bitField0_ & ~0x00000008); - sigBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSigFieldBuilder() : null; - } else { - sigBuilder_.addAllMessages(other.sig_); - } - } - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long batchId_ ; - /** - *
-       * Unique temporary identifier for the batch
-       * 
- * - * int64 batchId = 1; - */ - public long getBatchId() { - return batchId_; - } - /** - *
-       * Unique temporary identifier for the batch
-       * 
- * - * int64 batchId = 1; - */ - public Builder setBatchId(long value) { - - batchId_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique temporary identifier for the batch
-       * 
- * - * int64 batchId = 1; - */ - public Builder clearBatchId() { - - batchId_ = 0L; - onChanged(); - return this; - } - - private int batchLength_ ; - /** - *
-       * Number of messages in the batch
-       * 
- * - * int32 batchLength = 2; - */ - public int getBatchLength() { - return batchLength_; - } - /** - *
-       * Number of messages in the batch
-       * 
- * - * int32 batchLength = 2; - */ - public Builder setBatchLength(int value) { - - batchLength_ = value; - onChanged(); - return this; - } - /** - *
-       * Number of messages in the batch
-       * 
- * - * int32 batchLength = 2; - */ - public Builder clearBatchLength() { - - batchLength_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp timestamp_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_; - /** - *
-       * Timestamp of the batch (as defined by client)
-       * 
- * - * .google.protobuf.Timestamp timestamp = 3; - */ - public boolean hasTimestamp() { - return timestampBuilder_ != null || timestamp_ != null; - } - /** - *
-       * Timestamp of the batch (as defined by client)
-       * 
- * - * .google.protobuf.Timestamp timestamp = 3; - */ - public com.google.protobuf.Timestamp getTimestamp() { - if (timestampBuilder_ == null) { - return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; - } else { - return timestampBuilder_.getMessage(); - } - } - /** - *
-       * Timestamp of the batch (as defined by client)
-       * 
- * - * .google.protobuf.Timestamp timestamp = 3; - */ - public Builder setTimestamp(com.google.protobuf.Timestamp value) { - if (timestampBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - timestamp_ = value; - onChanged(); - } else { - timestampBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Timestamp of the batch (as defined by client)
-       * 
- * - * .google.protobuf.Timestamp timestamp = 3; - */ - public Builder setTimestamp( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (timestampBuilder_ == null) { - timestamp_ = builderForValue.build(); - onChanged(); - } else { - timestampBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Timestamp of the batch (as defined by client)
-       * 
- * - * .google.protobuf.Timestamp timestamp = 3; - */ - public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { - if (timestampBuilder_ == null) { - if (timestamp_ != null) { - timestamp_ = - com.google.protobuf.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial(); - } else { - timestamp_ = value; - } - onChanged(); - } else { - timestampBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Timestamp of the batch (as defined by client)
-       * 
- * - * .google.protobuf.Timestamp timestamp = 3; - */ - public Builder clearTimestamp() { - if (timestampBuilder_ == null) { - timestamp_ = null; - onChanged(); - } else { - timestamp_ = null; - timestampBuilder_ = null; - } - - return this; - } - /** - *
-       * Timestamp of the batch (as defined by client)
-       * 
- * - * .google.protobuf.Timestamp timestamp = 3; - */ - public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { - - onChanged(); - return getTimestampFieldBuilder().getBuilder(); - } - /** - *
-       * Timestamp of the batch (as defined by client)
-       * 
- * - * .google.protobuf.Timestamp timestamp = 3; - */ - public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { - if (timestampBuilder_ != null) { - return timestampBuilder_.getMessageOrBuilder(); - } else { - return timestamp_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; - } - } - /** - *
-       * Timestamp of the batch (as defined by client)
-       * 
- * - * .google.protobuf.Timestamp timestamp = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getTimestampFieldBuilder() { - if (timestampBuilder_ == null) { - timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getTimestamp(), - getParentForChildren(), - isClean()); - timestamp_ = null; - } - return timestampBuilder_; - } - - private java.util.List sig_ = - java.util.Collections.emptyList(); - private void ensureSigIsMutable() { - if (!((bitField0_ & 0x00000008) == 0x00000008)) { - sig_ = new java.util.ArrayList(sig_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.Crypto.Signature, meerkat.protobuf.Crypto.Signature.Builder, meerkat.protobuf.Crypto.SignatureOrBuilder> sigBuilder_; - - /** - *
-       * Signatures on the (ordered) batch messages
-       * 
- * - * repeated .meerkat.Signature sig = 4; - */ - public java.util.List getSigList() { - if (sigBuilder_ == null) { - return java.util.Collections.unmodifiableList(sig_); - } else { - return sigBuilder_.getMessageList(); - } - } - /** - *
-       * Signatures on the (ordered) batch messages
-       * 
- * - * repeated .meerkat.Signature sig = 4; - */ - public int getSigCount() { - if (sigBuilder_ == null) { - return sig_.size(); - } else { - return sigBuilder_.getCount(); - } - } - /** - *
-       * Signatures on the (ordered) batch messages
-       * 
- * - * repeated .meerkat.Signature sig = 4; - */ - public meerkat.protobuf.Crypto.Signature getSig(int index) { - if (sigBuilder_ == null) { - return sig_.get(index); - } else { - return sigBuilder_.getMessage(index); - } - } - /** - *
-       * Signatures on the (ordered) batch messages
-       * 
- * - * repeated .meerkat.Signature sig = 4; - */ - public Builder setSig( - int index, meerkat.protobuf.Crypto.Signature value) { - if (sigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSigIsMutable(); - sig_.set(index, value); - onChanged(); - } else { - sigBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Signatures on the (ordered) batch messages
-       * 
- * - * repeated .meerkat.Signature sig = 4; - */ - public Builder setSig( - int index, meerkat.protobuf.Crypto.Signature.Builder builderForValue) { - if (sigBuilder_ == null) { - ensureSigIsMutable(); - sig_.set(index, builderForValue.build()); - onChanged(); - } else { - sigBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Signatures on the (ordered) batch messages
-       * 
- * - * repeated .meerkat.Signature sig = 4; - */ - public Builder addSig(meerkat.protobuf.Crypto.Signature value) { - if (sigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSigIsMutable(); - sig_.add(value); - onChanged(); - } else { - sigBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Signatures on the (ordered) batch messages
-       * 
- * - * repeated .meerkat.Signature sig = 4; - */ - public Builder addSig( - int index, meerkat.protobuf.Crypto.Signature value) { - if (sigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSigIsMutable(); - sig_.add(index, value); - onChanged(); - } else { - sigBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Signatures on the (ordered) batch messages
-       * 
- * - * repeated .meerkat.Signature sig = 4; - */ - public Builder addSig( - meerkat.protobuf.Crypto.Signature.Builder builderForValue) { - if (sigBuilder_ == null) { - ensureSigIsMutable(); - sig_.add(builderForValue.build()); - onChanged(); - } else { - sigBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Signatures on the (ordered) batch messages
-       * 
- * - * repeated .meerkat.Signature sig = 4; - */ - public Builder addSig( - int index, meerkat.protobuf.Crypto.Signature.Builder builderForValue) { - if (sigBuilder_ == null) { - ensureSigIsMutable(); - sig_.add(index, builderForValue.build()); - onChanged(); - } else { - sigBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Signatures on the (ordered) batch messages
-       * 
- * - * repeated .meerkat.Signature sig = 4; - */ - public Builder addAllSig( - java.lang.Iterable values) { - if (sigBuilder_ == null) { - ensureSigIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, sig_); - onChanged(); - } else { - sigBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Signatures on the (ordered) batch messages
-       * 
- * - * repeated .meerkat.Signature sig = 4; - */ - public Builder clearSig() { - if (sigBuilder_ == null) { - sig_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - sigBuilder_.clear(); - } - return this; - } - /** - *
-       * Signatures on the (ordered) batch messages
-       * 
- * - * repeated .meerkat.Signature sig = 4; - */ - public Builder removeSig(int index) { - if (sigBuilder_ == null) { - ensureSigIsMutable(); - sig_.remove(index); - onChanged(); - } else { - sigBuilder_.remove(index); - } - return this; - } - /** - *
-       * Signatures on the (ordered) batch messages
-       * 
- * - * repeated .meerkat.Signature sig = 4; - */ - public meerkat.protobuf.Crypto.Signature.Builder getSigBuilder( - int index) { - return getSigFieldBuilder().getBuilder(index); - } - /** - *
-       * Signatures on the (ordered) batch messages
-       * 
- * - * repeated .meerkat.Signature sig = 4; - */ - public meerkat.protobuf.Crypto.SignatureOrBuilder getSigOrBuilder( - int index) { - if (sigBuilder_ == null) { - return sig_.get(index); } else { - return sigBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Signatures on the (ordered) batch messages
-       * 
- * - * repeated .meerkat.Signature sig = 4; - */ - public java.util.List - getSigOrBuilderList() { - if (sigBuilder_ != null) { - return sigBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(sig_); - } - } - /** - *
-       * Signatures on the (ordered) batch messages
-       * 
- * - * repeated .meerkat.Signature sig = 4; - */ - public meerkat.protobuf.Crypto.Signature.Builder addSigBuilder() { - return getSigFieldBuilder().addBuilder( - meerkat.protobuf.Crypto.Signature.getDefaultInstance()); - } - /** - *
-       * Signatures on the (ordered) batch messages
-       * 
- * - * repeated .meerkat.Signature sig = 4; - */ - public meerkat.protobuf.Crypto.Signature.Builder addSigBuilder( - int index) { - return getSigFieldBuilder().addBuilder( - index, meerkat.protobuf.Crypto.Signature.getDefaultInstance()); - } - /** - *
-       * Signatures on the (ordered) batch messages
-       * 
- * - * repeated .meerkat.Signature sig = 4; - */ - public java.util.List - getSigBuilderList() { - return getSigFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.Crypto.Signature, meerkat.protobuf.Crypto.Signature.Builder, meerkat.protobuf.Crypto.SignatureOrBuilder> - getSigFieldBuilder() { - if (sigBuilder_ == null) { - sigBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.Crypto.Signature, meerkat.protobuf.Crypto.Signature.Builder, meerkat.protobuf.Crypto.SignatureOrBuilder>( - sig_, - ((bitField0_ & 0x00000008) == 0x00000008), - getParentForChildren(), - isClean()); - sig_ = null; - } - return sigBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.CloseBatchMessage) - } - - // @@protoc_insertion_point(class_scope:meerkat.CloseBatchMessage) - private static final meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage(); - } - - public static meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public CloseBatchMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CloseBatchMessage(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BatchChunkOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.BatchChunk) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes data = 1; - */ - com.google.protobuf.ByteString getData(); - } - /** - *
-   * Container for single chunk of abatch message
-   * 
- * - * Protobuf type {@code meerkat.BatchChunk} - */ - public static final class BatchChunk extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.BatchChunk) - BatchChunkOrBuilder { - // Use BatchChunk.newBuilder() to construct. - private BatchChunk(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BatchChunk() { - data_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private BatchChunk( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - - data_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BatchChunk_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BatchChunk_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BulletinBoardAPI.BatchChunk.class, meerkat.protobuf.BulletinBoardAPI.BatchChunk.Builder.class); - } - - public static final int DATA_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString data_; - /** - * bytes data = 1; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!data_.isEmpty()) { - output.writeBytes(1, data_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, data_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.BulletinBoardAPI.BatchChunk)) { - return super.equals(obj); - } - meerkat.protobuf.BulletinBoardAPI.BatchChunk other = (meerkat.protobuf.BulletinBoardAPI.BatchChunk) obj; - - boolean result = true; - result = result && getData() - .equals(other.getData()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.BulletinBoardAPI.BatchChunk parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BulletinBoardAPI.BatchChunk parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.BatchChunk parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BulletinBoardAPI.BatchChunk parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.BatchChunk parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.BatchChunk parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.BatchChunk parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.BatchChunk parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.BatchChunk parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.BatchChunk parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.BulletinBoardAPI.BatchChunk prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Container for single chunk of abatch message
-     * 
- * - * Protobuf type {@code meerkat.BatchChunk} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:meerkat.BatchChunk) - meerkat.protobuf.BulletinBoardAPI.BatchChunkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BatchChunk_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BatchChunk_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BulletinBoardAPI.BatchChunk.class, meerkat.protobuf.BulletinBoardAPI.BatchChunk.Builder.class); - } - - // Construct using meerkat.protobuf.BulletinBoardAPI.BatchChunk.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - data_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BatchChunk_descriptor; - } - - public meerkat.protobuf.BulletinBoardAPI.BatchChunk getDefaultInstanceForType() { - return meerkat.protobuf.BulletinBoardAPI.BatchChunk.getDefaultInstance(); - } - - public meerkat.protobuf.BulletinBoardAPI.BatchChunk build() { - meerkat.protobuf.BulletinBoardAPI.BatchChunk result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.BulletinBoardAPI.BatchChunk buildPartial() { - meerkat.protobuf.BulletinBoardAPI.BatchChunk result = new meerkat.protobuf.BulletinBoardAPI.BatchChunk(this); - result.data_ = data_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.BulletinBoardAPI.BatchChunk) { - return mergeFrom((meerkat.protobuf.BulletinBoardAPI.BatchChunk)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.BulletinBoardAPI.BatchChunk other) { - if (other == meerkat.protobuf.BulletinBoardAPI.BatchChunk.getDefaultInstance()) return this; - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.BulletinBoardAPI.BatchChunk parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.BulletinBoardAPI.BatchChunk) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes data = 1; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - * bytes data = 1; - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - * bytes data = 1; - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.BatchChunk) - } - - // @@protoc_insertion_point(class_scope:meerkat.BatchChunk) - private static final meerkat.protobuf.BulletinBoardAPI.BatchChunk DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.BulletinBoardAPI.BatchChunk(); - } - - public static meerkat.protobuf.BulletinBoardAPI.BatchChunk getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public BatchChunk parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchChunk(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public meerkat.protobuf.BulletinBoardAPI.BatchChunk getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BatchChunkListOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.BatchChunkList) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .meerkat.BatchChunk data = 1; - */ - java.util.List - getDataList(); - /** - * repeated .meerkat.BatchChunk data = 1; - */ - meerkat.protobuf.BulletinBoardAPI.BatchChunk getData(int index); - /** - * repeated .meerkat.BatchChunk data = 1; - */ - int getDataCount(); - /** - * repeated .meerkat.BatchChunk data = 1; - */ - java.util.List - getDataOrBuilderList(); - /** - * repeated .meerkat.BatchChunk data = 1; - */ - meerkat.protobuf.BulletinBoardAPI.BatchChunkOrBuilder getDataOrBuilder( - int index); - } - /** - *
-   * List of BatchChunk; Only used for testing
-   * 
- * - * Protobuf type {@code meerkat.BatchChunkList} - */ - public static final class BatchChunkList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.BatchChunkList) - BatchChunkListOrBuilder { - // Use BatchChunkList.newBuilder() to construct. - private BatchChunkList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BatchChunkList() { - data_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private BatchChunkList( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - data_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - data_.add( - input.readMessage(meerkat.protobuf.BulletinBoardAPI.BatchChunk.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - data_ = java.util.Collections.unmodifiableList(data_); - } - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BatchChunkList_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BatchChunkList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BulletinBoardAPI.BatchChunkList.class, meerkat.protobuf.BulletinBoardAPI.BatchChunkList.Builder.class); - } - - public static final int DATA_FIELD_NUMBER = 1; - private java.util.List data_; - /** - * repeated .meerkat.BatchChunk data = 1; - */ - public java.util.List getDataList() { - return data_; - } - /** - * repeated .meerkat.BatchChunk data = 1; - */ - public java.util.List - getDataOrBuilderList() { - return data_; - } - /** - * repeated .meerkat.BatchChunk data = 1; - */ - public int getDataCount() { - return data_.size(); - } - /** - * repeated .meerkat.BatchChunk data = 1; - */ - public meerkat.protobuf.BulletinBoardAPI.BatchChunk getData(int index) { - return data_.get(index); - } - /** - * repeated .meerkat.BatchChunk data = 1; - */ - public meerkat.protobuf.BulletinBoardAPI.BatchChunkOrBuilder getDataOrBuilder( - int index) { - return data_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < data_.size(); i++) { - output.writeMessage(1, data_.get(i)); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < data_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, data_.get(i)); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.BulletinBoardAPI.BatchChunkList)) { - return super.equals(obj); - } - meerkat.protobuf.BulletinBoardAPI.BatchChunkList other = (meerkat.protobuf.BulletinBoardAPI.BatchChunkList) obj; - - boolean result = true; - result = result && getDataList() - .equals(other.getDataList()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getDataCount() > 0) { - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getDataList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.BulletinBoardAPI.BatchChunkList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BulletinBoardAPI.BatchChunkList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.BatchChunkList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BulletinBoardAPI.BatchChunkList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.BatchChunkList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.BatchChunkList parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.BatchChunkList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.BatchChunkList parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.BatchChunkList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.BatchChunkList parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.BulletinBoardAPI.BatchChunkList prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * List of BatchChunk; Only used for testing
-     * 
- * - * Protobuf type {@code meerkat.BatchChunkList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:meerkat.BatchChunkList) - meerkat.protobuf.BulletinBoardAPI.BatchChunkListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BatchChunkList_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BatchChunkList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BulletinBoardAPI.BatchChunkList.class, meerkat.protobuf.BulletinBoardAPI.BatchChunkList.Builder.class); - } - - // Construct using meerkat.protobuf.BulletinBoardAPI.BatchChunkList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getDataFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (dataBuilder_ == null) { - data_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - dataBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BatchChunkList_descriptor; - } - - public meerkat.protobuf.BulletinBoardAPI.BatchChunkList getDefaultInstanceForType() { - return meerkat.protobuf.BulletinBoardAPI.BatchChunkList.getDefaultInstance(); - } - - public meerkat.protobuf.BulletinBoardAPI.BatchChunkList build() { - meerkat.protobuf.BulletinBoardAPI.BatchChunkList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.BulletinBoardAPI.BatchChunkList buildPartial() { - meerkat.protobuf.BulletinBoardAPI.BatchChunkList result = new meerkat.protobuf.BulletinBoardAPI.BatchChunkList(this); - int from_bitField0_ = bitField0_; - if (dataBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - data_ = java.util.Collections.unmodifiableList(data_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.data_ = data_; - } else { - result.data_ = dataBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.BulletinBoardAPI.BatchChunkList) { - return mergeFrom((meerkat.protobuf.BulletinBoardAPI.BatchChunkList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.BulletinBoardAPI.BatchChunkList other) { - if (other == meerkat.protobuf.BulletinBoardAPI.BatchChunkList.getDefaultInstance()) return this; - if (dataBuilder_ == null) { - if (!other.data_.isEmpty()) { - if (data_.isEmpty()) { - data_ = other.data_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDataIsMutable(); - data_.addAll(other.data_); - } - onChanged(); - } - } else { - if (!other.data_.isEmpty()) { - if (dataBuilder_.isEmpty()) { - dataBuilder_.dispose(); - dataBuilder_ = null; - data_ = other.data_; - bitField0_ = (bitField0_ & ~0x00000001); - dataBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDataFieldBuilder() : null; - } else { - dataBuilder_.addAllMessages(other.data_); - } - } - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.BulletinBoardAPI.BatchChunkList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.BulletinBoardAPI.BatchChunkList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List data_ = - java.util.Collections.emptyList(); - private void ensureDataIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - data_ = new java.util.ArrayList(data_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.BulletinBoardAPI.BatchChunk, meerkat.protobuf.BulletinBoardAPI.BatchChunk.Builder, meerkat.protobuf.BulletinBoardAPI.BatchChunkOrBuilder> dataBuilder_; - - /** - * repeated .meerkat.BatchChunk data = 1; - */ - public java.util.List getDataList() { - if (dataBuilder_ == null) { - return java.util.Collections.unmodifiableList(data_); - } else { - return dataBuilder_.getMessageList(); - } - } - /** - * repeated .meerkat.BatchChunk data = 1; - */ - public int getDataCount() { - if (dataBuilder_ == null) { - return data_.size(); - } else { - return dataBuilder_.getCount(); - } - } - /** - * repeated .meerkat.BatchChunk data = 1; - */ - public meerkat.protobuf.BulletinBoardAPI.BatchChunk getData(int index) { - if (dataBuilder_ == null) { - return data_.get(index); - } else { - return dataBuilder_.getMessage(index); - } - } - /** - * repeated .meerkat.BatchChunk data = 1; - */ - public Builder setData( - int index, meerkat.protobuf.BulletinBoardAPI.BatchChunk value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataIsMutable(); - data_.set(index, value); - onChanged(); - } else { - dataBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .meerkat.BatchChunk data = 1; - */ - public Builder setData( - int index, meerkat.protobuf.BulletinBoardAPI.BatchChunk.Builder builderForValue) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - data_.set(index, builderForValue.build()); - onChanged(); - } else { - dataBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .meerkat.BatchChunk data = 1; - */ - public Builder addData(meerkat.protobuf.BulletinBoardAPI.BatchChunk value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataIsMutable(); - data_.add(value); - onChanged(); - } else { - dataBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .meerkat.BatchChunk data = 1; - */ - public Builder addData( - int index, meerkat.protobuf.BulletinBoardAPI.BatchChunk value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataIsMutable(); - data_.add(index, value); - onChanged(); - } else { - dataBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .meerkat.BatchChunk data = 1; - */ - public Builder addData( - meerkat.protobuf.BulletinBoardAPI.BatchChunk.Builder builderForValue) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - data_.add(builderForValue.build()); - onChanged(); - } else { - dataBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .meerkat.BatchChunk data = 1; - */ - public Builder addData( - int index, meerkat.protobuf.BulletinBoardAPI.BatchChunk.Builder builderForValue) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - data_.add(index, builderForValue.build()); - onChanged(); - } else { - dataBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .meerkat.BatchChunk data = 1; - */ - public Builder addAllData( - java.lang.Iterable values) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, data_); - onChanged(); - } else { - dataBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .meerkat.BatchChunk data = 1; - */ - public Builder clearData() { - if (dataBuilder_ == null) { - data_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - dataBuilder_.clear(); - } - return this; - } - /** - * repeated .meerkat.BatchChunk data = 1; - */ - public Builder removeData(int index) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - data_.remove(index); - onChanged(); - } else { - dataBuilder_.remove(index); - } - return this; - } - /** - * repeated .meerkat.BatchChunk data = 1; - */ - public meerkat.protobuf.BulletinBoardAPI.BatchChunk.Builder getDataBuilder( - int index) { - return getDataFieldBuilder().getBuilder(index); - } - /** - * repeated .meerkat.BatchChunk data = 1; - */ - public meerkat.protobuf.BulletinBoardAPI.BatchChunkOrBuilder getDataOrBuilder( - int index) { - if (dataBuilder_ == null) { - return data_.get(index); } else { - return dataBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .meerkat.BatchChunk data = 1; - */ - public java.util.List - getDataOrBuilderList() { - if (dataBuilder_ != null) { - return dataBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(data_); - } - } - /** - * repeated .meerkat.BatchChunk data = 1; - */ - public meerkat.protobuf.BulletinBoardAPI.BatchChunk.Builder addDataBuilder() { - return getDataFieldBuilder().addBuilder( - meerkat.protobuf.BulletinBoardAPI.BatchChunk.getDefaultInstance()); - } - /** - * repeated .meerkat.BatchChunk data = 1; - */ - public meerkat.protobuf.BulletinBoardAPI.BatchChunk.Builder addDataBuilder( - int index) { - return getDataFieldBuilder().addBuilder( - index, meerkat.protobuf.BulletinBoardAPI.BatchChunk.getDefaultInstance()); - } - /** - * repeated .meerkat.BatchChunk data = 1; - */ - public java.util.List - getDataBuilderList() { - return getDataFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.BulletinBoardAPI.BatchChunk, meerkat.protobuf.BulletinBoardAPI.BatchChunk.Builder, meerkat.protobuf.BulletinBoardAPI.BatchChunkOrBuilder> - getDataFieldBuilder() { - if (dataBuilder_ == null) { - dataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.BulletinBoardAPI.BatchChunk, meerkat.protobuf.BulletinBoardAPI.BatchChunk.Builder, meerkat.protobuf.BulletinBoardAPI.BatchChunkOrBuilder>( - data_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - data_ = null; - } - return dataBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.BatchChunkList) - } - - // @@protoc_insertion_point(class_scope:meerkat.BatchChunkList) - private static final meerkat.protobuf.BulletinBoardAPI.BatchChunkList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.BulletinBoardAPI.BatchChunkList(); - } - - public static meerkat.protobuf.BulletinBoardAPI.BatchChunkList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public BatchChunkList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchChunkList(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public meerkat.protobuf.BulletinBoardAPI.BatchChunkList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BatchMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.BatchMessage) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique temporary identifier for the batch
-     * 
- * - * int64 batchId = 1; - */ - long getBatchId(); - - /** - *
-     * Location of the message in the batch: starting from 0
-     * 
- * - * int32 serialNum = 2; - */ - int getSerialNum(); - - /** - *
-     * Actual data
-     * 
- * - * .meerkat.BatchChunk data = 3; - */ - boolean hasData(); - /** - *
-     * Actual data
-     * 
- * - * .meerkat.BatchChunk data = 3; - */ - meerkat.protobuf.BulletinBoardAPI.BatchChunk getData(); - /** - *
-     * Actual data
-     * 
- * - * .meerkat.BatchChunk data = 3; - */ - meerkat.protobuf.BulletinBoardAPI.BatchChunkOrBuilder getDataOrBuilder(); - } - /** - *
-   * These messages comprise a batch message
-   * 
- * - * Protobuf type {@code meerkat.BatchMessage} - */ - public static final class BatchMessage extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.BatchMessage) - BatchMessageOrBuilder { - // Use BatchMessage.newBuilder() to construct. - private BatchMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BatchMessage() { - batchId_ = 0L; - serialNum_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private BatchMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - batchId_ = input.readInt64(); - break; - } - case 16: { - - serialNum_ = input.readInt32(); - break; - } - case 26: { - meerkat.protobuf.BulletinBoardAPI.BatchChunk.Builder subBuilder = null; - if (data_ != null) { - subBuilder = data_.toBuilder(); - } - data_ = input.readMessage(meerkat.protobuf.BulletinBoardAPI.BatchChunk.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(data_); - data_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BatchMessage_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BatchMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BulletinBoardAPI.BatchMessage.class, meerkat.protobuf.BulletinBoardAPI.BatchMessage.Builder.class); - } - - public static final int BATCHID_FIELD_NUMBER = 1; - private long batchId_; - /** - *
-     * Unique temporary identifier for the batch
-     * 
- * - * int64 batchId = 1; - */ - public long getBatchId() { - return batchId_; - } - - public static final int SERIALNUM_FIELD_NUMBER = 2; - private int serialNum_; - /** - *
-     * Location of the message in the batch: starting from 0
-     * 
- * - * int32 serialNum = 2; - */ - public int getSerialNum() { - return serialNum_; - } - - public static final int DATA_FIELD_NUMBER = 3; - private meerkat.protobuf.BulletinBoardAPI.BatchChunk data_; - /** - *
-     * Actual data
-     * 
- * - * .meerkat.BatchChunk data = 3; - */ - public boolean hasData() { - return data_ != null; - } - /** - *
-     * Actual data
-     * 
- * - * .meerkat.BatchChunk data = 3; - */ - public meerkat.protobuf.BulletinBoardAPI.BatchChunk getData() { - return data_ == null ? meerkat.protobuf.BulletinBoardAPI.BatchChunk.getDefaultInstance() : data_; - } - /** - *
-     * Actual data
-     * 
- * - * .meerkat.BatchChunk data = 3; - */ - public meerkat.protobuf.BulletinBoardAPI.BatchChunkOrBuilder getDataOrBuilder() { - return getData(); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (batchId_ != 0L) { - output.writeInt64(1, batchId_); - } - if (serialNum_ != 0) { - output.writeInt32(2, serialNum_); - } - if (data_ != null) { - output.writeMessage(3, getData()); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (batchId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, batchId_); - } - if (serialNum_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, serialNum_); - } - if (data_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getData()); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.BulletinBoardAPI.BatchMessage)) { - return super.equals(obj); - } - meerkat.protobuf.BulletinBoardAPI.BatchMessage other = (meerkat.protobuf.BulletinBoardAPI.BatchMessage) obj; - - boolean result = true; - result = result && (getBatchId() - == other.getBatchId()); - result = result && (getSerialNum() - == other.getSerialNum()); - result = result && (hasData() == other.hasData()); - if (hasData()) { - result = result && getData() - .equals(other.getData()); - } - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BATCHID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBatchId()); - hash = (37 * hash) + SERIALNUM_FIELD_NUMBER; - hash = (53 * hash) + getSerialNum(); - if (hasData()) { - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.BulletinBoardAPI.BatchMessage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BulletinBoardAPI.BatchMessage parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.BatchMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BulletinBoardAPI.BatchMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.BatchMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.BatchMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.BatchMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.BatchMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.BatchMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.BatchMessage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.BulletinBoardAPI.BatchMessage prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * These messages comprise a batch message
-     * 
- * - * Protobuf type {@code meerkat.BatchMessage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:meerkat.BatchMessage) - meerkat.protobuf.BulletinBoardAPI.BatchMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BatchMessage_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BatchMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BulletinBoardAPI.BatchMessage.class, meerkat.protobuf.BulletinBoardAPI.BatchMessage.Builder.class); - } - - // Construct using meerkat.protobuf.BulletinBoardAPI.BatchMessage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - batchId_ = 0L; - - serialNum_ = 0; - - if (dataBuilder_ == null) { - data_ = null; - } else { - data_ = null; - dataBuilder_ = null; - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BatchMessage_descriptor; - } - - public meerkat.protobuf.BulletinBoardAPI.BatchMessage getDefaultInstanceForType() { - return meerkat.protobuf.BulletinBoardAPI.BatchMessage.getDefaultInstance(); - } - - public meerkat.protobuf.BulletinBoardAPI.BatchMessage build() { - meerkat.protobuf.BulletinBoardAPI.BatchMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.BulletinBoardAPI.BatchMessage buildPartial() { - meerkat.protobuf.BulletinBoardAPI.BatchMessage result = new meerkat.protobuf.BulletinBoardAPI.BatchMessage(this); - result.batchId_ = batchId_; - result.serialNum_ = serialNum_; - if (dataBuilder_ == null) { - result.data_ = data_; - } else { - result.data_ = dataBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.BulletinBoardAPI.BatchMessage) { - return mergeFrom((meerkat.protobuf.BulletinBoardAPI.BatchMessage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.BulletinBoardAPI.BatchMessage other) { - if (other == meerkat.protobuf.BulletinBoardAPI.BatchMessage.getDefaultInstance()) return this; - if (other.getBatchId() != 0L) { - setBatchId(other.getBatchId()); - } - if (other.getSerialNum() != 0) { - setSerialNum(other.getSerialNum()); - } - if (other.hasData()) { - mergeData(other.getData()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.BulletinBoardAPI.BatchMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.BulletinBoardAPI.BatchMessage) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long batchId_ ; - /** - *
-       * Unique temporary identifier for the batch
-       * 
- * - * int64 batchId = 1; - */ - public long getBatchId() { - return batchId_; - } - /** - *
-       * Unique temporary identifier for the batch
-       * 
- * - * int64 batchId = 1; - */ - public Builder setBatchId(long value) { - - batchId_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique temporary identifier for the batch
-       * 
- * - * int64 batchId = 1; - */ - public Builder clearBatchId() { - - batchId_ = 0L; - onChanged(); - return this; - } - - private int serialNum_ ; - /** - *
-       * Location of the message in the batch: starting from 0
-       * 
- * - * int32 serialNum = 2; - */ - public int getSerialNum() { - return serialNum_; - } - /** - *
-       * Location of the message in the batch: starting from 0
-       * 
- * - * int32 serialNum = 2; - */ - public Builder setSerialNum(int value) { - - serialNum_ = value; - onChanged(); - return this; - } - /** - *
-       * Location of the message in the batch: starting from 0
-       * 
- * - * int32 serialNum = 2; - */ - public Builder clearSerialNum() { - - serialNum_ = 0; - onChanged(); - return this; - } - - private meerkat.protobuf.BulletinBoardAPI.BatchChunk data_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.BulletinBoardAPI.BatchChunk, meerkat.protobuf.BulletinBoardAPI.BatchChunk.Builder, meerkat.protobuf.BulletinBoardAPI.BatchChunkOrBuilder> dataBuilder_; - /** - *
-       * Actual data
-       * 
- * - * .meerkat.BatchChunk data = 3; - */ - public boolean hasData() { - return dataBuilder_ != null || data_ != null; - } - /** - *
-       * Actual data
-       * 
- * - * .meerkat.BatchChunk data = 3; - */ - public meerkat.protobuf.BulletinBoardAPI.BatchChunk getData() { - if (dataBuilder_ == null) { - return data_ == null ? meerkat.protobuf.BulletinBoardAPI.BatchChunk.getDefaultInstance() : data_; - } else { - return dataBuilder_.getMessage(); - } - } - /** - *
-       * Actual data
-       * 
- * - * .meerkat.BatchChunk data = 3; - */ - public Builder setData(meerkat.protobuf.BulletinBoardAPI.BatchChunk value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - data_ = value; - onChanged(); - } else { - dataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Actual data
-       * 
- * - * .meerkat.BatchChunk data = 3; - */ - public Builder setData( - meerkat.protobuf.BulletinBoardAPI.BatchChunk.Builder builderForValue) { - if (dataBuilder_ == null) { - data_ = builderForValue.build(); - onChanged(); - } else { - dataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Actual data
-       * 
- * - * .meerkat.BatchChunk data = 3; - */ - public Builder mergeData(meerkat.protobuf.BulletinBoardAPI.BatchChunk value) { - if (dataBuilder_ == null) { - if (data_ != null) { - data_ = - meerkat.protobuf.BulletinBoardAPI.BatchChunk.newBuilder(data_).mergeFrom(value).buildPartial(); - } else { - data_ = value; - } - onChanged(); - } else { - dataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Actual data
-       * 
- * - * .meerkat.BatchChunk data = 3; - */ - public Builder clearData() { - if (dataBuilder_ == null) { - data_ = null; - onChanged(); - } else { - data_ = null; - dataBuilder_ = null; - } - - return this; - } - /** - *
-       * Actual data
-       * 
- * - * .meerkat.BatchChunk data = 3; - */ - public meerkat.protobuf.BulletinBoardAPI.BatchChunk.Builder getDataBuilder() { - - onChanged(); - return getDataFieldBuilder().getBuilder(); - } - /** - *
-       * Actual data
-       * 
- * - * .meerkat.BatchChunk data = 3; - */ - public meerkat.protobuf.BulletinBoardAPI.BatchChunkOrBuilder getDataOrBuilder() { - if (dataBuilder_ != null) { - return dataBuilder_.getMessageOrBuilder(); - } else { - return data_ == null ? - meerkat.protobuf.BulletinBoardAPI.BatchChunk.getDefaultInstance() : data_; - } - } - /** - *
-       * Actual data
-       * 
- * - * .meerkat.BatchChunk data = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.BulletinBoardAPI.BatchChunk, meerkat.protobuf.BulletinBoardAPI.BatchChunk.Builder, meerkat.protobuf.BulletinBoardAPI.BatchChunkOrBuilder> - getDataFieldBuilder() { - if (dataBuilder_ == null) { - dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.BulletinBoardAPI.BatchChunk, meerkat.protobuf.BulletinBoardAPI.BatchChunk.Builder, meerkat.protobuf.BulletinBoardAPI.BatchChunkOrBuilder>( - getData(), - getParentForChildren(), - isClean()); - data_ = null; - } - return dataBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.BatchMessage) - } - - // @@protoc_insertion_point(class_scope:meerkat.BatchMessage) - private static final meerkat.protobuf.BulletinBoardAPI.BatchMessage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.BulletinBoardAPI.BatchMessage(); - } - - public static meerkat.protobuf.BulletinBoardAPI.BatchMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public BatchMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchMessage(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public meerkat.protobuf.BulletinBoardAPI.BatchMessage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SingleSyncQueryOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.SingleSyncQuery) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Timestamp timeOfSync = 1; - */ - boolean hasTimeOfSync(); - /** - * .google.protobuf.Timestamp timeOfSync = 1; - */ - com.google.protobuf.Timestamp getTimeOfSync(); - /** - * .google.protobuf.Timestamp timeOfSync = 1; - */ - com.google.protobuf.TimestampOrBuilder getTimeOfSyncOrBuilder(); - - /** - * int64 checksum = 2; - */ - long getChecksum(); - } - /** - *
-   * This message is used to define a single query to the server to ascertain whether or not the server is synched with the client
-   *  up till a specified timestamp
-   * 
- * - * Protobuf type {@code meerkat.SingleSyncQuery} - */ - public static final class SingleSyncQuery extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.SingleSyncQuery) - SingleSyncQueryOrBuilder { - // Use SingleSyncQuery.newBuilder() to construct. - private SingleSyncQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SingleSyncQuery() { - checksum_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private SingleSyncQuery( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (timeOfSync_ != null) { - subBuilder = timeOfSync_.toBuilder(); - } - timeOfSync_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timeOfSync_); - timeOfSync_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - checksum_ = input.readInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_SingleSyncQuery_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_SingleSyncQuery_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery.class, meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery.Builder.class); - } - - public static final int TIMEOFSYNC_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp timeOfSync_; - /** - * .google.protobuf.Timestamp timeOfSync = 1; - */ - public boolean hasTimeOfSync() { - return timeOfSync_ != null; - } - /** - * .google.protobuf.Timestamp timeOfSync = 1; - */ - public com.google.protobuf.Timestamp getTimeOfSync() { - return timeOfSync_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timeOfSync_; - } - /** - * .google.protobuf.Timestamp timeOfSync = 1; - */ - public com.google.protobuf.TimestampOrBuilder getTimeOfSyncOrBuilder() { - return getTimeOfSync(); - } - - public static final int CHECKSUM_FIELD_NUMBER = 2; - private long checksum_; - /** - * int64 checksum = 2; - */ - public long getChecksum() { - return checksum_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (timeOfSync_ != null) { - output.writeMessage(1, getTimeOfSync()); - } - if (checksum_ != 0L) { - output.writeInt64(2, checksum_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (timeOfSync_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTimeOfSync()); - } - if (checksum_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, checksum_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery)) { - return super.equals(obj); - } - meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery other = (meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery) obj; - - boolean result = true; - result = result && (hasTimeOfSync() == other.hasTimeOfSync()); - if (hasTimeOfSync()) { - result = result && getTimeOfSync() - .equals(other.getTimeOfSync()); - } - result = result && (getChecksum() - == other.getChecksum()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasTimeOfSync()) { - hash = (37 * hash) + TIMEOFSYNC_FIELD_NUMBER; - hash = (53 * hash) + getTimeOfSync().hashCode(); - } - hash = (37 * hash) + CHECKSUM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getChecksum()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * This message is used to define a single query to the server to ascertain whether or not the server is synched with the client
-     *  up till a specified timestamp
-     * 
- * - * Protobuf type {@code meerkat.SingleSyncQuery} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:meerkat.SingleSyncQuery) - meerkat.protobuf.BulletinBoardAPI.SingleSyncQueryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_SingleSyncQuery_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_SingleSyncQuery_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery.class, meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery.Builder.class); - } - - // Construct using meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - if (timeOfSyncBuilder_ == null) { - timeOfSync_ = null; - } else { - timeOfSync_ = null; - timeOfSyncBuilder_ = null; - } - checksum_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_SingleSyncQuery_descriptor; - } - - public meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery getDefaultInstanceForType() { - return meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery.getDefaultInstance(); - } - - public meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery build() { - meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery buildPartial() { - meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery result = new meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery(this); - if (timeOfSyncBuilder_ == null) { - result.timeOfSync_ = timeOfSync_; - } else { - result.timeOfSync_ = timeOfSyncBuilder_.build(); - } - result.checksum_ = checksum_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery) { - return mergeFrom((meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery other) { - if (other == meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery.getDefaultInstance()) return this; - if (other.hasTimeOfSync()) { - mergeTimeOfSync(other.getTimeOfSync()); - } - if (other.getChecksum() != 0L) { - setChecksum(other.getChecksum()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.Timestamp timeOfSync_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timeOfSyncBuilder_; - /** - * .google.protobuf.Timestamp timeOfSync = 1; - */ - public boolean hasTimeOfSync() { - return timeOfSyncBuilder_ != null || timeOfSync_ != null; - } - /** - * .google.protobuf.Timestamp timeOfSync = 1; - */ - public com.google.protobuf.Timestamp getTimeOfSync() { - if (timeOfSyncBuilder_ == null) { - return timeOfSync_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timeOfSync_; - } else { - return timeOfSyncBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Timestamp timeOfSync = 1; - */ - public Builder setTimeOfSync(com.google.protobuf.Timestamp value) { - if (timeOfSyncBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - timeOfSync_ = value; - onChanged(); - } else { - timeOfSyncBuilder_.setMessage(value); - } - - return this; - } - /** - * .google.protobuf.Timestamp timeOfSync = 1; - */ - public Builder setTimeOfSync( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (timeOfSyncBuilder_ == null) { - timeOfSync_ = builderForValue.build(); - onChanged(); - } else { - timeOfSyncBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .google.protobuf.Timestamp timeOfSync = 1; - */ - public Builder mergeTimeOfSync(com.google.protobuf.Timestamp value) { - if (timeOfSyncBuilder_ == null) { - if (timeOfSync_ != null) { - timeOfSync_ = - com.google.protobuf.Timestamp.newBuilder(timeOfSync_).mergeFrom(value).buildPartial(); - } else { - timeOfSync_ = value; - } - onChanged(); - } else { - timeOfSyncBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .google.protobuf.Timestamp timeOfSync = 1; - */ - public Builder clearTimeOfSync() { - if (timeOfSyncBuilder_ == null) { - timeOfSync_ = null; - onChanged(); - } else { - timeOfSync_ = null; - timeOfSyncBuilder_ = null; - } - - return this; - } - /** - * .google.protobuf.Timestamp timeOfSync = 1; - */ - public com.google.protobuf.Timestamp.Builder getTimeOfSyncBuilder() { - - onChanged(); - return getTimeOfSyncFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp timeOfSync = 1; - */ - public com.google.protobuf.TimestampOrBuilder getTimeOfSyncOrBuilder() { - if (timeOfSyncBuilder_ != null) { - return timeOfSyncBuilder_.getMessageOrBuilder(); - } else { - return timeOfSync_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : timeOfSync_; - } - } - /** - * .google.protobuf.Timestamp timeOfSync = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getTimeOfSyncFieldBuilder() { - if (timeOfSyncBuilder_ == null) { - timeOfSyncBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getTimeOfSync(), - getParentForChildren(), - isClean()); - timeOfSync_ = null; - } - return timeOfSyncBuilder_; - } - - private long checksum_ ; - /** - * int64 checksum = 2; - */ - public long getChecksum() { - return checksum_; - } - /** - * int64 checksum = 2; - */ - public Builder setChecksum(long value) { - - checksum_ = value; - onChanged(); - return this; - } - /** - * int64 checksum = 2; - */ - public Builder clearChecksum() { - - checksum_ = 0L; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.SingleSyncQuery) - } - - // @@protoc_insertion_point(class_scope:meerkat.SingleSyncQuery) - private static final meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery(); - } - - public static meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public SingleSyncQuery parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SingleSyncQuery(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SyncQueryOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.SyncQuery) - com.google.protobuf.MessageOrBuilder { - - /** - * .meerkat.MessageFilterList filterList = 1; - */ - boolean hasFilterList(); - /** - * .meerkat.MessageFilterList filterList = 1; - */ - meerkat.protobuf.BulletinBoardAPI.MessageFilterList getFilterList(); - /** - * .meerkat.MessageFilterList filterList = 1; - */ - meerkat.protobuf.BulletinBoardAPI.MessageFilterListOrBuilder getFilterListOrBuilder(); - - /** - * repeated .meerkat.SingleSyncQuery query = 2; - */ - java.util.List - getQueryList(); - /** - * repeated .meerkat.SingleSyncQuery query = 2; - */ - meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery getQuery(int index); - /** - * repeated .meerkat.SingleSyncQuery query = 2; - */ - int getQueryCount(); - /** - * repeated .meerkat.SingleSyncQuery query = 2; - */ - java.util.List - getQueryOrBuilderList(); - /** - * repeated .meerkat.SingleSyncQuery query = 2; - */ - meerkat.protobuf.BulletinBoardAPI.SingleSyncQueryOrBuilder getQueryOrBuilder( - int index); - } - /** - *
-   * This message defines a complete server sync query
-   * 
- * - * Protobuf type {@code meerkat.SyncQuery} - */ - public static final class SyncQuery extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.SyncQuery) - SyncQueryOrBuilder { - // Use SyncQuery.newBuilder() to construct. - private SyncQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SyncQuery() { - query_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private SyncQuery( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - meerkat.protobuf.BulletinBoardAPI.MessageFilterList.Builder subBuilder = null; - if (filterList_ != null) { - subBuilder = filterList_.toBuilder(); - } - filterList_ = input.readMessage(meerkat.protobuf.BulletinBoardAPI.MessageFilterList.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(filterList_); - filterList_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - query_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - query_.add( - input.readMessage(meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - query_ = java.util.Collections.unmodifiableList(query_); - } - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_SyncQuery_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_SyncQuery_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BulletinBoardAPI.SyncQuery.class, meerkat.protobuf.BulletinBoardAPI.SyncQuery.Builder.class); - } - - private int bitField0_; - public static final int FILTERLIST_FIELD_NUMBER = 1; - private meerkat.protobuf.BulletinBoardAPI.MessageFilterList filterList_; - /** - * .meerkat.MessageFilterList filterList = 1; - */ - public boolean hasFilterList() { - return filterList_ != null; - } - /** - * .meerkat.MessageFilterList filterList = 1; - */ - public meerkat.protobuf.BulletinBoardAPI.MessageFilterList getFilterList() { - return filterList_ == null ? meerkat.protobuf.BulletinBoardAPI.MessageFilterList.getDefaultInstance() : filterList_; - } - /** - * .meerkat.MessageFilterList filterList = 1; - */ - public meerkat.protobuf.BulletinBoardAPI.MessageFilterListOrBuilder getFilterListOrBuilder() { - return getFilterList(); - } - - public static final int QUERY_FIELD_NUMBER = 2; - private java.util.List query_; - /** - * repeated .meerkat.SingleSyncQuery query = 2; - */ - public java.util.List getQueryList() { - return query_; - } - /** - * repeated .meerkat.SingleSyncQuery query = 2; - */ - public java.util.List - getQueryOrBuilderList() { - return query_; - } - /** - * repeated .meerkat.SingleSyncQuery query = 2; - */ - public int getQueryCount() { - return query_.size(); - } - /** - * repeated .meerkat.SingleSyncQuery query = 2; - */ - public meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery getQuery(int index) { - return query_.get(index); - } - /** - * repeated .meerkat.SingleSyncQuery query = 2; - */ - public meerkat.protobuf.BulletinBoardAPI.SingleSyncQueryOrBuilder getQueryOrBuilder( - int index) { - return query_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (filterList_ != null) { - output.writeMessage(1, getFilterList()); - } - for (int i = 0; i < query_.size(); i++) { - output.writeMessage(2, query_.get(i)); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (filterList_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getFilterList()); - } - for (int i = 0; i < query_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, query_.get(i)); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.BulletinBoardAPI.SyncQuery)) { - return super.equals(obj); - } - meerkat.protobuf.BulletinBoardAPI.SyncQuery other = (meerkat.protobuf.BulletinBoardAPI.SyncQuery) obj; - - boolean result = true; - result = result && (hasFilterList() == other.hasFilterList()); - if (hasFilterList()) { - result = result && getFilterList() - .equals(other.getFilterList()); - } - result = result && getQueryList() - .equals(other.getQueryList()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasFilterList()) { - hash = (37 * hash) + FILTERLIST_FIELD_NUMBER; - hash = (53 * hash) + getFilterList().hashCode(); - } - if (getQueryCount() > 0) { - hash = (37 * hash) + QUERY_FIELD_NUMBER; - hash = (53 * hash) + getQueryList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.BulletinBoardAPI.SyncQuery parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BulletinBoardAPI.SyncQuery parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.SyncQuery parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BulletinBoardAPI.SyncQuery parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.SyncQuery parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.SyncQuery parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.SyncQuery parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.SyncQuery parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.SyncQuery parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.SyncQuery parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.BulletinBoardAPI.SyncQuery prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * This message defines a complete server sync query
-     * 
- * - * Protobuf type {@code meerkat.SyncQuery} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:meerkat.SyncQuery) - meerkat.protobuf.BulletinBoardAPI.SyncQueryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_SyncQuery_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_SyncQuery_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BulletinBoardAPI.SyncQuery.class, meerkat.protobuf.BulletinBoardAPI.SyncQuery.Builder.class); - } - - // Construct using meerkat.protobuf.BulletinBoardAPI.SyncQuery.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getQueryFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (filterListBuilder_ == null) { - filterList_ = null; - } else { - filterList_ = null; - filterListBuilder_ = null; - } - if (queryBuilder_ == null) { - query_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - queryBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_SyncQuery_descriptor; - } - - public meerkat.protobuf.BulletinBoardAPI.SyncQuery getDefaultInstanceForType() { - return meerkat.protobuf.BulletinBoardAPI.SyncQuery.getDefaultInstance(); - } - - public meerkat.protobuf.BulletinBoardAPI.SyncQuery build() { - meerkat.protobuf.BulletinBoardAPI.SyncQuery result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.BulletinBoardAPI.SyncQuery buildPartial() { - meerkat.protobuf.BulletinBoardAPI.SyncQuery result = new meerkat.protobuf.BulletinBoardAPI.SyncQuery(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (filterListBuilder_ == null) { - result.filterList_ = filterList_; - } else { - result.filterList_ = filterListBuilder_.build(); - } - if (queryBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { - query_ = java.util.Collections.unmodifiableList(query_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.query_ = query_; - } else { - result.query_ = queryBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.BulletinBoardAPI.SyncQuery) { - return mergeFrom((meerkat.protobuf.BulletinBoardAPI.SyncQuery)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.BulletinBoardAPI.SyncQuery other) { - if (other == meerkat.protobuf.BulletinBoardAPI.SyncQuery.getDefaultInstance()) return this; - if (other.hasFilterList()) { - mergeFilterList(other.getFilterList()); - } - if (queryBuilder_ == null) { - if (!other.query_.isEmpty()) { - if (query_.isEmpty()) { - query_ = other.query_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureQueryIsMutable(); - query_.addAll(other.query_); - } - onChanged(); - } - } else { - if (!other.query_.isEmpty()) { - if (queryBuilder_.isEmpty()) { - queryBuilder_.dispose(); - queryBuilder_ = null; - query_ = other.query_; - bitField0_ = (bitField0_ & ~0x00000002); - queryBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getQueryFieldBuilder() : null; - } else { - queryBuilder_.addAllMessages(other.query_); - } - } - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.BulletinBoardAPI.SyncQuery parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.BulletinBoardAPI.SyncQuery) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private meerkat.protobuf.BulletinBoardAPI.MessageFilterList filterList_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.BulletinBoardAPI.MessageFilterList, meerkat.protobuf.BulletinBoardAPI.MessageFilterList.Builder, meerkat.protobuf.BulletinBoardAPI.MessageFilterListOrBuilder> filterListBuilder_; - /** - * .meerkat.MessageFilterList filterList = 1; - */ - public boolean hasFilterList() { - return filterListBuilder_ != null || filterList_ != null; - } - /** - * .meerkat.MessageFilterList filterList = 1; - */ - public meerkat.protobuf.BulletinBoardAPI.MessageFilterList getFilterList() { - if (filterListBuilder_ == null) { - return filterList_ == null ? meerkat.protobuf.BulletinBoardAPI.MessageFilterList.getDefaultInstance() : filterList_; - } else { - return filterListBuilder_.getMessage(); - } - } - /** - * .meerkat.MessageFilterList filterList = 1; - */ - public Builder setFilterList(meerkat.protobuf.BulletinBoardAPI.MessageFilterList value) { - if (filterListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - filterList_ = value; - onChanged(); - } else { - filterListBuilder_.setMessage(value); - } - - return this; - } - /** - * .meerkat.MessageFilterList filterList = 1; - */ - public Builder setFilterList( - meerkat.protobuf.BulletinBoardAPI.MessageFilterList.Builder builderForValue) { - if (filterListBuilder_ == null) { - filterList_ = builderForValue.build(); - onChanged(); - } else { - filterListBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .meerkat.MessageFilterList filterList = 1; - */ - public Builder mergeFilterList(meerkat.protobuf.BulletinBoardAPI.MessageFilterList value) { - if (filterListBuilder_ == null) { - if (filterList_ != null) { - filterList_ = - meerkat.protobuf.BulletinBoardAPI.MessageFilterList.newBuilder(filterList_).mergeFrom(value).buildPartial(); - } else { - filterList_ = value; - } - onChanged(); - } else { - filterListBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .meerkat.MessageFilterList filterList = 1; - */ - public Builder clearFilterList() { - if (filterListBuilder_ == null) { - filterList_ = null; - onChanged(); - } else { - filterList_ = null; - filterListBuilder_ = null; - } - - return this; - } - /** - * .meerkat.MessageFilterList filterList = 1; - */ - public meerkat.protobuf.BulletinBoardAPI.MessageFilterList.Builder getFilterListBuilder() { - - onChanged(); - return getFilterListFieldBuilder().getBuilder(); - } - /** - * .meerkat.MessageFilterList filterList = 1; - */ - public meerkat.protobuf.BulletinBoardAPI.MessageFilterListOrBuilder getFilterListOrBuilder() { - if (filterListBuilder_ != null) { - return filterListBuilder_.getMessageOrBuilder(); - } else { - return filterList_ == null ? - meerkat.protobuf.BulletinBoardAPI.MessageFilterList.getDefaultInstance() : filterList_; - } - } - /** - * .meerkat.MessageFilterList filterList = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.BulletinBoardAPI.MessageFilterList, meerkat.protobuf.BulletinBoardAPI.MessageFilterList.Builder, meerkat.protobuf.BulletinBoardAPI.MessageFilterListOrBuilder> - getFilterListFieldBuilder() { - if (filterListBuilder_ == null) { - filterListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.BulletinBoardAPI.MessageFilterList, meerkat.protobuf.BulletinBoardAPI.MessageFilterList.Builder, meerkat.protobuf.BulletinBoardAPI.MessageFilterListOrBuilder>( - getFilterList(), - getParentForChildren(), - isClean()); - filterList_ = null; - } - return filterListBuilder_; - } - - private java.util.List query_ = - java.util.Collections.emptyList(); - private void ensureQueryIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - query_ = new java.util.ArrayList(query_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery, meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery.Builder, meerkat.protobuf.BulletinBoardAPI.SingleSyncQueryOrBuilder> queryBuilder_; - - /** - * repeated .meerkat.SingleSyncQuery query = 2; - */ - public java.util.List getQueryList() { - if (queryBuilder_ == null) { - return java.util.Collections.unmodifiableList(query_); - } else { - return queryBuilder_.getMessageList(); - } - } - /** - * repeated .meerkat.SingleSyncQuery query = 2; - */ - public int getQueryCount() { - if (queryBuilder_ == null) { - return query_.size(); - } else { - return queryBuilder_.getCount(); - } - } - /** - * repeated .meerkat.SingleSyncQuery query = 2; - */ - public meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery getQuery(int index) { - if (queryBuilder_ == null) { - return query_.get(index); - } else { - return queryBuilder_.getMessage(index); - } - } - /** - * repeated .meerkat.SingleSyncQuery query = 2; - */ - public Builder setQuery( - int index, meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery value) { - if (queryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureQueryIsMutable(); - query_.set(index, value); - onChanged(); - } else { - queryBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .meerkat.SingleSyncQuery query = 2; - */ - public Builder setQuery( - int index, meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery.Builder builderForValue) { - if (queryBuilder_ == null) { - ensureQueryIsMutable(); - query_.set(index, builderForValue.build()); - onChanged(); - } else { - queryBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .meerkat.SingleSyncQuery query = 2; - */ - public Builder addQuery(meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery value) { - if (queryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureQueryIsMutable(); - query_.add(value); - onChanged(); - } else { - queryBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .meerkat.SingleSyncQuery query = 2; - */ - public Builder addQuery( - int index, meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery value) { - if (queryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureQueryIsMutable(); - query_.add(index, value); - onChanged(); - } else { - queryBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .meerkat.SingleSyncQuery query = 2; - */ - public Builder addQuery( - meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery.Builder builderForValue) { - if (queryBuilder_ == null) { - ensureQueryIsMutable(); - query_.add(builderForValue.build()); - onChanged(); - } else { - queryBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .meerkat.SingleSyncQuery query = 2; - */ - public Builder addQuery( - int index, meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery.Builder builderForValue) { - if (queryBuilder_ == null) { - ensureQueryIsMutable(); - query_.add(index, builderForValue.build()); - onChanged(); - } else { - queryBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .meerkat.SingleSyncQuery query = 2; - */ - public Builder addAllQuery( - java.lang.Iterable values) { - if (queryBuilder_ == null) { - ensureQueryIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, query_); - onChanged(); - } else { - queryBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .meerkat.SingleSyncQuery query = 2; - */ - public Builder clearQuery() { - if (queryBuilder_ == null) { - query_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - queryBuilder_.clear(); - } - return this; - } - /** - * repeated .meerkat.SingleSyncQuery query = 2; - */ - public Builder removeQuery(int index) { - if (queryBuilder_ == null) { - ensureQueryIsMutable(); - query_.remove(index); - onChanged(); - } else { - queryBuilder_.remove(index); - } - return this; - } - /** - * repeated .meerkat.SingleSyncQuery query = 2; - */ - public meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery.Builder getQueryBuilder( - int index) { - return getQueryFieldBuilder().getBuilder(index); - } - /** - * repeated .meerkat.SingleSyncQuery query = 2; - */ - public meerkat.protobuf.BulletinBoardAPI.SingleSyncQueryOrBuilder getQueryOrBuilder( - int index) { - if (queryBuilder_ == null) { - return query_.get(index); } else { - return queryBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .meerkat.SingleSyncQuery query = 2; - */ - public java.util.List - getQueryOrBuilderList() { - if (queryBuilder_ != null) { - return queryBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(query_); - } - } - /** - * repeated .meerkat.SingleSyncQuery query = 2; - */ - public meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery.Builder addQueryBuilder() { - return getQueryFieldBuilder().addBuilder( - meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery.getDefaultInstance()); - } - /** - * repeated .meerkat.SingleSyncQuery query = 2; - */ - public meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery.Builder addQueryBuilder( - int index) { - return getQueryFieldBuilder().addBuilder( - index, meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery.getDefaultInstance()); - } - /** - * repeated .meerkat.SingleSyncQuery query = 2; - */ - public java.util.List - getQueryBuilderList() { - return getQueryFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery, meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery.Builder, meerkat.protobuf.BulletinBoardAPI.SingleSyncQueryOrBuilder> - getQueryFieldBuilder() { - if (queryBuilder_ == null) { - queryBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery, meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery.Builder, meerkat.protobuf.BulletinBoardAPI.SingleSyncQueryOrBuilder>( - query_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); - query_ = null; - } - return queryBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.SyncQuery) - } - - // @@protoc_insertion_point(class_scope:meerkat.SyncQuery) - private static final meerkat.protobuf.BulletinBoardAPI.SyncQuery DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.BulletinBoardAPI.SyncQuery(); - } - - public static meerkat.protobuf.BulletinBoardAPI.SyncQuery getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public SyncQuery parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SyncQuery(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public meerkat.protobuf.BulletinBoardAPI.SyncQuery getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GenerateSyncQueryParamsOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.GenerateSyncQueryParams) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Defines the set of messages required
-     * 
- * - * .meerkat.MessageFilterList filterList = 1; - */ - boolean hasFilterList(); - /** - *
-     * Defines the set of messages required
-     * 
- * - * .meerkat.MessageFilterList filterList = 1; - */ - meerkat.protobuf.BulletinBoardAPI.MessageFilterList getFilterList(); - /** - *
-     * Defines the set of messages required
-     * 
- * - * .meerkat.MessageFilterList filterList = 1; - */ - meerkat.protobuf.BulletinBoardAPI.MessageFilterListOrBuilder getFilterListOrBuilder(); - - /** - *
-     * Defines the locations in the list of messages to calculate single sync queries for
-     * The values should be between 0.0 and 1.0 and define the location in fractions of the size of the message set
-     * 
- * - * repeated float breakpointList = 2; - */ - java.util.List getBreakpointListList(); - /** - *
-     * Defines the locations in the list of messages to calculate single sync queries for
-     * The values should be between 0.0 and 1.0 and define the location in fractions of the size of the message set
-     * 
- * - * repeated float breakpointList = 2; - */ - int getBreakpointListCount(); - /** - *
-     * Defines the locations in the list of messages to calculate single sync queries for
-     * The values should be between 0.0 and 1.0 and define the location in fractions of the size of the message set
-     * 
- * - * repeated float breakpointList = 2; - */ - float getBreakpointList(int index); - } - /** - *
-   * This message defines the required information for generation of a SyncQuery instance by the server
-   * 
- * - * Protobuf type {@code meerkat.GenerateSyncQueryParams} - */ - public static final class GenerateSyncQueryParams extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.GenerateSyncQueryParams) - GenerateSyncQueryParamsOrBuilder { - // Use GenerateSyncQueryParams.newBuilder() to construct. - private GenerateSyncQueryParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GenerateSyncQueryParams() { - breakpointList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private GenerateSyncQueryParams( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - meerkat.protobuf.BulletinBoardAPI.MessageFilterList.Builder subBuilder = null; - if (filterList_ != null) { - subBuilder = filterList_.toBuilder(); - } - filterList_ = input.readMessage(meerkat.protobuf.BulletinBoardAPI.MessageFilterList.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(filterList_); - filterList_ = subBuilder.buildPartial(); - } - - break; - } - case 21: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - breakpointList_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - breakpointList_.add(input.readFloat()); - break; - } - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { - breakpointList_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - breakpointList_.add(input.readFloat()); - } - input.popLimit(limit); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - breakpointList_ = java.util.Collections.unmodifiableList(breakpointList_); - } - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_GenerateSyncQueryParams_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_GenerateSyncQueryParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams.class, meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams.Builder.class); - } - - private int bitField0_; - public static final int FILTERLIST_FIELD_NUMBER = 1; - private meerkat.protobuf.BulletinBoardAPI.MessageFilterList filterList_; - /** - *
-     * Defines the set of messages required
-     * 
- * - * .meerkat.MessageFilterList filterList = 1; - */ - public boolean hasFilterList() { - return filterList_ != null; - } - /** - *
-     * Defines the set of messages required
-     * 
- * - * .meerkat.MessageFilterList filterList = 1; - */ - public meerkat.protobuf.BulletinBoardAPI.MessageFilterList getFilterList() { - return filterList_ == null ? meerkat.protobuf.BulletinBoardAPI.MessageFilterList.getDefaultInstance() : filterList_; - } - /** - *
-     * Defines the set of messages required
-     * 
- * - * .meerkat.MessageFilterList filterList = 1; - */ - public meerkat.protobuf.BulletinBoardAPI.MessageFilterListOrBuilder getFilterListOrBuilder() { - return getFilterList(); - } - - public static final int BREAKPOINTLIST_FIELD_NUMBER = 2; - private java.util.List breakpointList_; - /** - *
-     * Defines the locations in the list of messages to calculate single sync queries for
-     * The values should be between 0.0 and 1.0 and define the location in fractions of the size of the message set
-     * 
- * - * repeated float breakpointList = 2; - */ - public java.util.List - getBreakpointListList() { - return breakpointList_; - } - /** - *
-     * Defines the locations in the list of messages to calculate single sync queries for
-     * The values should be between 0.0 and 1.0 and define the location in fractions of the size of the message set
-     * 
- * - * repeated float breakpointList = 2; - */ - public int getBreakpointListCount() { - return breakpointList_.size(); - } - /** - *
-     * Defines the locations in the list of messages to calculate single sync queries for
-     * The values should be between 0.0 and 1.0 and define the location in fractions of the size of the message set
-     * 
- * - * repeated float breakpointList = 2; - */ - public float getBreakpointList(int index) { - return breakpointList_.get(index); - } - private int breakpointListMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (filterList_ != null) { - output.writeMessage(1, getFilterList()); - } - if (getBreakpointListList().size() > 0) { - output.writeUInt32NoTag(18); - output.writeUInt32NoTag(breakpointListMemoizedSerializedSize); - } - for (int i = 0; i < breakpointList_.size(); i++) { - output.writeFloatNoTag(breakpointList_.get(i)); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (filterList_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getFilterList()); - } - { - int dataSize = 0; - dataSize = 4 * getBreakpointListList().size(); - size += dataSize; - if (!getBreakpointListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - breakpointListMemoizedSerializedSize = dataSize; - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams)) { - return super.equals(obj); - } - meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams other = (meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams) obj; - - boolean result = true; - result = result && (hasFilterList() == other.hasFilterList()); - if (hasFilterList()) { - result = result && getFilterList() - .equals(other.getFilterList()); - } - result = result && getBreakpointListList() - .equals(other.getBreakpointListList()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasFilterList()) { - hash = (37 * hash) + FILTERLIST_FIELD_NUMBER; - hash = (53 * hash) + getFilterList().hashCode(); - } - if (getBreakpointListCount() > 0) { - hash = (37 * hash) + BREAKPOINTLIST_FIELD_NUMBER; - hash = (53 * hash) + getBreakpointListList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * This message defines the required information for generation of a SyncQuery instance by the server
-     * 
- * - * Protobuf type {@code meerkat.GenerateSyncQueryParams} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:meerkat.GenerateSyncQueryParams) - meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_GenerateSyncQueryParams_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_GenerateSyncQueryParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams.class, meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams.Builder.class); - } - - // Construct using meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - if (filterListBuilder_ == null) { - filterList_ = null; - } else { - filterList_ = null; - filterListBuilder_ = null; - } - breakpointList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_GenerateSyncQueryParams_descriptor; - } - - public meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams getDefaultInstanceForType() { - return meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams.getDefaultInstance(); - } - - public meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams build() { - meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams buildPartial() { - meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams result = new meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (filterListBuilder_ == null) { - result.filterList_ = filterList_; - } else { - result.filterList_ = filterListBuilder_.build(); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - breakpointList_ = java.util.Collections.unmodifiableList(breakpointList_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.breakpointList_ = breakpointList_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams) { - return mergeFrom((meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams other) { - if (other == meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams.getDefaultInstance()) return this; - if (other.hasFilterList()) { - mergeFilterList(other.getFilterList()); - } - if (!other.breakpointList_.isEmpty()) { - if (breakpointList_.isEmpty()) { - breakpointList_ = other.breakpointList_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureBreakpointListIsMutable(); - breakpointList_.addAll(other.breakpointList_); - } - onChanged(); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private meerkat.protobuf.BulletinBoardAPI.MessageFilterList filterList_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.BulletinBoardAPI.MessageFilterList, meerkat.protobuf.BulletinBoardAPI.MessageFilterList.Builder, meerkat.protobuf.BulletinBoardAPI.MessageFilterListOrBuilder> filterListBuilder_; - /** - *
-       * Defines the set of messages required
-       * 
- * - * .meerkat.MessageFilterList filterList = 1; - */ - public boolean hasFilterList() { - return filterListBuilder_ != null || filterList_ != null; - } - /** - *
-       * Defines the set of messages required
-       * 
- * - * .meerkat.MessageFilterList filterList = 1; - */ - public meerkat.protobuf.BulletinBoardAPI.MessageFilterList getFilterList() { - if (filterListBuilder_ == null) { - return filterList_ == null ? meerkat.protobuf.BulletinBoardAPI.MessageFilterList.getDefaultInstance() : filterList_; - } else { - return filterListBuilder_.getMessage(); - } - } - /** - *
-       * Defines the set of messages required
-       * 
- * - * .meerkat.MessageFilterList filterList = 1; - */ - public Builder setFilterList(meerkat.protobuf.BulletinBoardAPI.MessageFilterList value) { - if (filterListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - filterList_ = value; - onChanged(); - } else { - filterListBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Defines the set of messages required
-       * 
- * - * .meerkat.MessageFilterList filterList = 1; - */ - public Builder setFilterList( - meerkat.protobuf.BulletinBoardAPI.MessageFilterList.Builder builderForValue) { - if (filterListBuilder_ == null) { - filterList_ = builderForValue.build(); - onChanged(); - } else { - filterListBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Defines the set of messages required
-       * 
- * - * .meerkat.MessageFilterList filterList = 1; - */ - public Builder mergeFilterList(meerkat.protobuf.BulletinBoardAPI.MessageFilterList value) { - if (filterListBuilder_ == null) { - if (filterList_ != null) { - filterList_ = - meerkat.protobuf.BulletinBoardAPI.MessageFilterList.newBuilder(filterList_).mergeFrom(value).buildPartial(); - } else { - filterList_ = value; - } - onChanged(); - } else { - filterListBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Defines the set of messages required
-       * 
- * - * .meerkat.MessageFilterList filterList = 1; - */ - public Builder clearFilterList() { - if (filterListBuilder_ == null) { - filterList_ = null; - onChanged(); - } else { - filterList_ = null; - filterListBuilder_ = null; - } - - return this; - } - /** - *
-       * Defines the set of messages required
-       * 
- * - * .meerkat.MessageFilterList filterList = 1; - */ - public meerkat.protobuf.BulletinBoardAPI.MessageFilterList.Builder getFilterListBuilder() { - - onChanged(); - return getFilterListFieldBuilder().getBuilder(); - } - /** - *
-       * Defines the set of messages required
-       * 
- * - * .meerkat.MessageFilterList filterList = 1; - */ - public meerkat.protobuf.BulletinBoardAPI.MessageFilterListOrBuilder getFilterListOrBuilder() { - if (filterListBuilder_ != null) { - return filterListBuilder_.getMessageOrBuilder(); - } else { - return filterList_ == null ? - meerkat.protobuf.BulletinBoardAPI.MessageFilterList.getDefaultInstance() : filterList_; - } - } - /** - *
-       * Defines the set of messages required
-       * 
- * - * .meerkat.MessageFilterList filterList = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.BulletinBoardAPI.MessageFilterList, meerkat.protobuf.BulletinBoardAPI.MessageFilterList.Builder, meerkat.protobuf.BulletinBoardAPI.MessageFilterListOrBuilder> - getFilterListFieldBuilder() { - if (filterListBuilder_ == null) { - filterListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.BulletinBoardAPI.MessageFilterList, meerkat.protobuf.BulletinBoardAPI.MessageFilterList.Builder, meerkat.protobuf.BulletinBoardAPI.MessageFilterListOrBuilder>( - getFilterList(), - getParentForChildren(), - isClean()); - filterList_ = null; - } - return filterListBuilder_; - } - - private java.util.List breakpointList_ = java.util.Collections.emptyList(); - private void ensureBreakpointListIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - breakpointList_ = new java.util.ArrayList(breakpointList_); - bitField0_ |= 0x00000002; - } - } - /** - *
-       * Defines the locations in the list of messages to calculate single sync queries for
-       * The values should be between 0.0 and 1.0 and define the location in fractions of the size of the message set
-       * 
- * - * repeated float breakpointList = 2; - */ - public java.util.List - getBreakpointListList() { - return java.util.Collections.unmodifiableList(breakpointList_); - } - /** - *
-       * Defines the locations in the list of messages to calculate single sync queries for
-       * The values should be between 0.0 and 1.0 and define the location in fractions of the size of the message set
-       * 
- * - * repeated float breakpointList = 2; - */ - public int getBreakpointListCount() { - return breakpointList_.size(); - } - /** - *
-       * Defines the locations in the list of messages to calculate single sync queries for
-       * The values should be between 0.0 and 1.0 and define the location in fractions of the size of the message set
-       * 
- * - * repeated float breakpointList = 2; - */ - public float getBreakpointList(int index) { - return breakpointList_.get(index); - } - /** - *
-       * Defines the locations in the list of messages to calculate single sync queries for
-       * The values should be between 0.0 and 1.0 and define the location in fractions of the size of the message set
-       * 
- * - * repeated float breakpointList = 2; - */ - public Builder setBreakpointList( - int index, float value) { - ensureBreakpointListIsMutable(); - breakpointList_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * Defines the locations in the list of messages to calculate single sync queries for
-       * The values should be between 0.0 and 1.0 and define the location in fractions of the size of the message set
-       * 
- * - * repeated float breakpointList = 2; - */ - public Builder addBreakpointList(float value) { - ensureBreakpointListIsMutable(); - breakpointList_.add(value); - onChanged(); - return this; - } - /** - *
-       * Defines the locations in the list of messages to calculate single sync queries for
-       * The values should be between 0.0 and 1.0 and define the location in fractions of the size of the message set
-       * 
- * - * repeated float breakpointList = 2; - */ - public Builder addAllBreakpointList( - java.lang.Iterable values) { - ensureBreakpointListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, breakpointList_); - onChanged(); - return this; - } - /** - *
-       * Defines the locations in the list of messages to calculate single sync queries for
-       * The values should be between 0.0 and 1.0 and define the location in fractions of the size of the message set
-       * 
- * - * repeated float breakpointList = 2; - */ - public Builder clearBreakpointList() { - breakpointList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.GenerateSyncQueryParams) - } - - // @@protoc_insertion_point(class_scope:meerkat.GenerateSyncQueryParams) - private static final meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams(); - } - - public static meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public GenerateSyncQueryParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenerateSyncQueryParams(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SyncQueryResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.SyncQueryResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Serial entry number of current last entry in database
-     * Set to zero (0) in case no query checksums match
-     * 
- * - * int64 lastEntryNum = 1; - */ - long getLastEntryNum(); - - /** - *
-     * Largest value of timestamp for which the checksums match
-     * 
- * - * .google.protobuf.Timestamp lastTimeOfSync = 2; - */ - boolean hasLastTimeOfSync(); - /** - *
-     * Largest value of timestamp for which the checksums match
-     * 
- * - * .google.protobuf.Timestamp lastTimeOfSync = 2; - */ - com.google.protobuf.Timestamp getLastTimeOfSync(); - /** - *
-     * Largest value of timestamp for which the checksums match
-     * 
- * - * .google.protobuf.Timestamp lastTimeOfSync = 2; - */ - com.google.protobuf.TimestampOrBuilder getLastTimeOfSyncOrBuilder(); - } - /** - *
-   * This message defines the server's response format to a sync query
-   * 
- * - * Protobuf type {@code meerkat.SyncQueryResponse} - */ - public static final class SyncQueryResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.SyncQueryResponse) - SyncQueryResponseOrBuilder { - // Use SyncQueryResponse.newBuilder() to construct. - private SyncQueryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SyncQueryResponse() { - lastEntryNum_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private SyncQueryResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - lastEntryNum_ = input.readInt64(); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (lastTimeOfSync_ != null) { - subBuilder = lastTimeOfSync_.toBuilder(); - } - lastTimeOfSync_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastTimeOfSync_); - lastTimeOfSync_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_SyncQueryResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_SyncQueryResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse.class, meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse.Builder.class); - } - - public static final int LASTENTRYNUM_FIELD_NUMBER = 1; - private long lastEntryNum_; - /** - *
-     * Serial entry number of current last entry in database
-     * Set to zero (0) in case no query checksums match
-     * 
- * - * int64 lastEntryNum = 1; - */ - public long getLastEntryNum() { - return lastEntryNum_; - } - - public static final int LASTTIMEOFSYNC_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp lastTimeOfSync_; - /** - *
-     * Largest value of timestamp for which the checksums match
-     * 
- * - * .google.protobuf.Timestamp lastTimeOfSync = 2; - */ - public boolean hasLastTimeOfSync() { - return lastTimeOfSync_ != null; - } - /** - *
-     * Largest value of timestamp for which the checksums match
-     * 
- * - * .google.protobuf.Timestamp lastTimeOfSync = 2; - */ - public com.google.protobuf.Timestamp getLastTimeOfSync() { - return lastTimeOfSync_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastTimeOfSync_; - } - /** - *
-     * Largest value of timestamp for which the checksums match
-     * 
- * - * .google.protobuf.Timestamp lastTimeOfSync = 2; - */ - public com.google.protobuf.TimestampOrBuilder getLastTimeOfSyncOrBuilder() { - return getLastTimeOfSync(); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (lastEntryNum_ != 0L) { - output.writeInt64(1, lastEntryNum_); - } - if (lastTimeOfSync_ != null) { - output.writeMessage(2, getLastTimeOfSync()); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (lastEntryNum_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, lastEntryNum_); - } - if (lastTimeOfSync_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getLastTimeOfSync()); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse)) { - return super.equals(obj); - } - meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse other = (meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse) obj; - - boolean result = true; - result = result && (getLastEntryNum() - == other.getLastEntryNum()); - result = result && (hasLastTimeOfSync() == other.hasLastTimeOfSync()); - if (hasLastTimeOfSync()) { - result = result && getLastTimeOfSync() - .equals(other.getLastTimeOfSync()); - } - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + LASTENTRYNUM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLastEntryNum()); - if (hasLastTimeOfSync()) { - hash = (37 * hash) + LASTTIMEOFSYNC_FIELD_NUMBER; - hash = (53 * hash) + getLastTimeOfSync().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * This message defines the server's response format to a sync query
-     * 
- * - * Protobuf type {@code meerkat.SyncQueryResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:meerkat.SyncQueryResponse) - meerkat.protobuf.BulletinBoardAPI.SyncQueryResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_SyncQueryResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_SyncQueryResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse.class, meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse.Builder.class); - } - - // Construct using meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - lastEntryNum_ = 0L; - - if (lastTimeOfSyncBuilder_ == null) { - lastTimeOfSync_ = null; - } else { - lastTimeOfSync_ = null; - lastTimeOfSyncBuilder_ = null; - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_SyncQueryResponse_descriptor; - } - - public meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse getDefaultInstanceForType() { - return meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse.getDefaultInstance(); - } - - public meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse build() { - meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse buildPartial() { - meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse result = new meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse(this); - result.lastEntryNum_ = lastEntryNum_; - if (lastTimeOfSyncBuilder_ == null) { - result.lastTimeOfSync_ = lastTimeOfSync_; - } else { - result.lastTimeOfSync_ = lastTimeOfSyncBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse) { - return mergeFrom((meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse other) { - if (other == meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse.getDefaultInstance()) return this; - if (other.getLastEntryNum() != 0L) { - setLastEntryNum(other.getLastEntryNum()); - } - if (other.hasLastTimeOfSync()) { - mergeLastTimeOfSync(other.getLastTimeOfSync()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long lastEntryNum_ ; - /** - *
-       * Serial entry number of current last entry in database
-       * Set to zero (0) in case no query checksums match
-       * 
- * - * int64 lastEntryNum = 1; - */ - public long getLastEntryNum() { - return lastEntryNum_; - } - /** - *
-       * Serial entry number of current last entry in database
-       * Set to zero (0) in case no query checksums match
-       * 
- * - * int64 lastEntryNum = 1; - */ - public Builder setLastEntryNum(long value) { - - lastEntryNum_ = value; - onChanged(); - return this; - } - /** - *
-       * Serial entry number of current last entry in database
-       * Set to zero (0) in case no query checksums match
-       * 
- * - * int64 lastEntryNum = 1; - */ - public Builder clearLastEntryNum() { - - lastEntryNum_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp lastTimeOfSync_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastTimeOfSyncBuilder_; - /** - *
-       * Largest value of timestamp for which the checksums match
-       * 
- * - * .google.protobuf.Timestamp lastTimeOfSync = 2; - */ - public boolean hasLastTimeOfSync() { - return lastTimeOfSyncBuilder_ != null || lastTimeOfSync_ != null; - } - /** - *
-       * Largest value of timestamp for which the checksums match
-       * 
- * - * .google.protobuf.Timestamp lastTimeOfSync = 2; - */ - public com.google.protobuf.Timestamp getLastTimeOfSync() { - if (lastTimeOfSyncBuilder_ == null) { - return lastTimeOfSync_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastTimeOfSync_; - } else { - return lastTimeOfSyncBuilder_.getMessage(); - } - } - /** - *
-       * Largest value of timestamp for which the checksums match
-       * 
- * - * .google.protobuf.Timestamp lastTimeOfSync = 2; - */ - public Builder setLastTimeOfSync(com.google.protobuf.Timestamp value) { - if (lastTimeOfSyncBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - lastTimeOfSync_ = value; - onChanged(); - } else { - lastTimeOfSyncBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Largest value of timestamp for which the checksums match
-       * 
- * - * .google.protobuf.Timestamp lastTimeOfSync = 2; - */ - public Builder setLastTimeOfSync( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (lastTimeOfSyncBuilder_ == null) { - lastTimeOfSync_ = builderForValue.build(); - onChanged(); - } else { - lastTimeOfSyncBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Largest value of timestamp for which the checksums match
-       * 
- * - * .google.protobuf.Timestamp lastTimeOfSync = 2; - */ - public Builder mergeLastTimeOfSync(com.google.protobuf.Timestamp value) { - if (lastTimeOfSyncBuilder_ == null) { - if (lastTimeOfSync_ != null) { - lastTimeOfSync_ = - com.google.protobuf.Timestamp.newBuilder(lastTimeOfSync_).mergeFrom(value).buildPartial(); - } else { - lastTimeOfSync_ = value; - } - onChanged(); - } else { - lastTimeOfSyncBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Largest value of timestamp for which the checksums match
-       * 
- * - * .google.protobuf.Timestamp lastTimeOfSync = 2; - */ - public Builder clearLastTimeOfSync() { - if (lastTimeOfSyncBuilder_ == null) { - lastTimeOfSync_ = null; - onChanged(); - } else { - lastTimeOfSync_ = null; - lastTimeOfSyncBuilder_ = null; - } - - return this; - } - /** - *
-       * Largest value of timestamp for which the checksums match
-       * 
- * - * .google.protobuf.Timestamp lastTimeOfSync = 2; - */ - public com.google.protobuf.Timestamp.Builder getLastTimeOfSyncBuilder() { - - onChanged(); - return getLastTimeOfSyncFieldBuilder().getBuilder(); - } - /** - *
-       * Largest value of timestamp for which the checksums match
-       * 
- * - * .google.protobuf.Timestamp lastTimeOfSync = 2; - */ - public com.google.protobuf.TimestampOrBuilder getLastTimeOfSyncOrBuilder() { - if (lastTimeOfSyncBuilder_ != null) { - return lastTimeOfSyncBuilder_.getMessageOrBuilder(); - } else { - return lastTimeOfSync_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : lastTimeOfSync_; - } - } - /** - *
-       * Largest value of timestamp for which the checksums match
-       * 
- * - * .google.protobuf.Timestamp lastTimeOfSync = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getLastTimeOfSyncFieldBuilder() { - if (lastTimeOfSyncBuilder_ == null) { - lastTimeOfSyncBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getLastTimeOfSync(), - getParentForChildren(), - isClean()); - lastTimeOfSync_ = null; - } - return lastTimeOfSyncBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.SyncQueryResponse) - } - - // @@protoc_insertion_point(class_scope:meerkat.SyncQueryResponse) - private static final meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse(); - } - - public static meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public SyncQueryResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SyncQueryResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BatchQueryOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.BatchQuery) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The unique message ID if the batch
-     * 
- * - * .meerkat.MessageID msgID = 1; - */ - boolean hasMsgID(); - /** - *
-     * The unique message ID if the batch
-     * 
- * - * .meerkat.MessageID msgID = 1; - */ - meerkat.protobuf.BulletinBoardAPI.MessageID getMsgID(); - /** - *
-     * The unique message ID if the batch
-     * 
- * - * .meerkat.MessageID msgID = 1; - */ - meerkat.protobuf.BulletinBoardAPI.MessageIDOrBuilder getMsgIDOrBuilder(); - - /** - *
-     * The first chunk to retrieve (0 is the first chunk)
-     * 
- * - * int32 startPosition = 2; - */ - int getStartPosition(); - } - /** - *
-   * This message defines a query for retrieval of batch data
-   * 
- * - * Protobuf type {@code meerkat.BatchQuery} - */ - public static final class BatchQuery extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.BatchQuery) - BatchQueryOrBuilder { - // Use BatchQuery.newBuilder() to construct. - private BatchQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BatchQuery() { - startPosition_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private BatchQuery( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - meerkat.protobuf.BulletinBoardAPI.MessageID.Builder subBuilder = null; - if (msgID_ != null) { - subBuilder = msgID_.toBuilder(); - } - msgID_ = input.readMessage(meerkat.protobuf.BulletinBoardAPI.MessageID.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(msgID_); - msgID_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - startPosition_ = input.readInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BatchQuery_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BatchQuery_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BulletinBoardAPI.BatchQuery.class, meerkat.protobuf.BulletinBoardAPI.BatchQuery.Builder.class); - } - - public static final int MSGID_FIELD_NUMBER = 1; - private meerkat.protobuf.BulletinBoardAPI.MessageID msgID_; - /** - *
-     * The unique message ID if the batch
-     * 
- * - * .meerkat.MessageID msgID = 1; - */ - public boolean hasMsgID() { - return msgID_ != null; - } - /** - *
-     * The unique message ID if the batch
-     * 
- * - * .meerkat.MessageID msgID = 1; - */ - public meerkat.protobuf.BulletinBoardAPI.MessageID getMsgID() { - return msgID_ == null ? meerkat.protobuf.BulletinBoardAPI.MessageID.getDefaultInstance() : msgID_; - } - /** - *
-     * The unique message ID if the batch
-     * 
- * - * .meerkat.MessageID msgID = 1; - */ - public meerkat.protobuf.BulletinBoardAPI.MessageIDOrBuilder getMsgIDOrBuilder() { - return getMsgID(); - } - - public static final int STARTPOSITION_FIELD_NUMBER = 2; - private int startPosition_; - /** - *
-     * The first chunk to retrieve (0 is the first chunk)
-     * 
- * - * int32 startPosition = 2; - */ - public int getStartPosition() { - return startPosition_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (msgID_ != null) { - output.writeMessage(1, getMsgID()); - } - if (startPosition_ != 0) { - output.writeInt32(2, startPosition_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (msgID_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getMsgID()); - } - if (startPosition_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, startPosition_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.BulletinBoardAPI.BatchQuery)) { - return super.equals(obj); - } - meerkat.protobuf.BulletinBoardAPI.BatchQuery other = (meerkat.protobuf.BulletinBoardAPI.BatchQuery) obj; - - boolean result = true; - result = result && (hasMsgID() == other.hasMsgID()); - if (hasMsgID()) { - result = result && getMsgID() - .equals(other.getMsgID()); - } - result = result && (getStartPosition() - == other.getStartPosition()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasMsgID()) { - hash = (37 * hash) + MSGID_FIELD_NUMBER; - hash = (53 * hash) + getMsgID().hashCode(); - } - hash = (37 * hash) + STARTPOSITION_FIELD_NUMBER; - hash = (53 * hash) + getStartPosition(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.BulletinBoardAPI.BatchQuery parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BulletinBoardAPI.BatchQuery parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.BatchQuery parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.BulletinBoardAPI.BatchQuery parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.BatchQuery parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.BatchQuery parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.BatchQuery parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.BatchQuery parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.BulletinBoardAPI.BatchQuery parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.BulletinBoardAPI.BatchQuery parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.BulletinBoardAPI.BatchQuery prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * This message defines a query for retrieval of batch data
-     * 
- * - * Protobuf type {@code meerkat.BatchQuery} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:meerkat.BatchQuery) - meerkat.protobuf.BulletinBoardAPI.BatchQueryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BatchQuery_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BatchQuery_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.BulletinBoardAPI.BatchQuery.class, meerkat.protobuf.BulletinBoardAPI.BatchQuery.Builder.class); - } - - // Construct using meerkat.protobuf.BulletinBoardAPI.BatchQuery.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - if (msgIDBuilder_ == null) { - msgID_ = null; - } else { - msgID_ = null; - msgIDBuilder_ = null; - } - startPosition_ = 0; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BatchQuery_descriptor; - } - - public meerkat.protobuf.BulletinBoardAPI.BatchQuery getDefaultInstanceForType() { - return meerkat.protobuf.BulletinBoardAPI.BatchQuery.getDefaultInstance(); - } - - public meerkat.protobuf.BulletinBoardAPI.BatchQuery build() { - meerkat.protobuf.BulletinBoardAPI.BatchQuery result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.BulletinBoardAPI.BatchQuery buildPartial() { - meerkat.protobuf.BulletinBoardAPI.BatchQuery result = new meerkat.protobuf.BulletinBoardAPI.BatchQuery(this); - if (msgIDBuilder_ == null) { - result.msgID_ = msgID_; - } else { - result.msgID_ = msgIDBuilder_.build(); - } - result.startPosition_ = startPosition_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.BulletinBoardAPI.BatchQuery) { - return mergeFrom((meerkat.protobuf.BulletinBoardAPI.BatchQuery)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.BulletinBoardAPI.BatchQuery other) { - if (other == meerkat.protobuf.BulletinBoardAPI.BatchQuery.getDefaultInstance()) return this; - if (other.hasMsgID()) { - mergeMsgID(other.getMsgID()); - } - if (other.getStartPosition() != 0) { - setStartPosition(other.getStartPosition()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.BulletinBoardAPI.BatchQuery parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.BulletinBoardAPI.BatchQuery) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private meerkat.protobuf.BulletinBoardAPI.MessageID msgID_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.BulletinBoardAPI.MessageID, meerkat.protobuf.BulletinBoardAPI.MessageID.Builder, meerkat.protobuf.BulletinBoardAPI.MessageIDOrBuilder> msgIDBuilder_; - /** - *
-       * The unique message ID if the batch
-       * 
- * - * .meerkat.MessageID msgID = 1; - */ - public boolean hasMsgID() { - return msgIDBuilder_ != null || msgID_ != null; - } - /** - *
-       * The unique message ID if the batch
-       * 
- * - * .meerkat.MessageID msgID = 1; - */ - public meerkat.protobuf.BulletinBoardAPI.MessageID getMsgID() { - if (msgIDBuilder_ == null) { - return msgID_ == null ? meerkat.protobuf.BulletinBoardAPI.MessageID.getDefaultInstance() : msgID_; - } else { - return msgIDBuilder_.getMessage(); - } - } - /** - *
-       * The unique message ID if the batch
-       * 
- * - * .meerkat.MessageID msgID = 1; - */ - public Builder setMsgID(meerkat.protobuf.BulletinBoardAPI.MessageID value) { - if (msgIDBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - msgID_ = value; - onChanged(); - } else { - msgIDBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The unique message ID if the batch
-       * 
- * - * .meerkat.MessageID msgID = 1; - */ - public Builder setMsgID( - meerkat.protobuf.BulletinBoardAPI.MessageID.Builder builderForValue) { - if (msgIDBuilder_ == null) { - msgID_ = builderForValue.build(); - onChanged(); - } else { - msgIDBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The unique message ID if the batch
-       * 
- * - * .meerkat.MessageID msgID = 1; - */ - public Builder mergeMsgID(meerkat.protobuf.BulletinBoardAPI.MessageID value) { - if (msgIDBuilder_ == null) { - if (msgID_ != null) { - msgID_ = - meerkat.protobuf.BulletinBoardAPI.MessageID.newBuilder(msgID_).mergeFrom(value).buildPartial(); - } else { - msgID_ = value; - } - onChanged(); - } else { - msgIDBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The unique message ID if the batch
-       * 
- * - * .meerkat.MessageID msgID = 1; - */ - public Builder clearMsgID() { - if (msgIDBuilder_ == null) { - msgID_ = null; - onChanged(); - } else { - msgID_ = null; - msgIDBuilder_ = null; - } - - return this; - } - /** - *
-       * The unique message ID if the batch
-       * 
- * - * .meerkat.MessageID msgID = 1; - */ - public meerkat.protobuf.BulletinBoardAPI.MessageID.Builder getMsgIDBuilder() { - - onChanged(); - return getMsgIDFieldBuilder().getBuilder(); - } - /** - *
-       * The unique message ID if the batch
-       * 
- * - * .meerkat.MessageID msgID = 1; - */ - public meerkat.protobuf.BulletinBoardAPI.MessageIDOrBuilder getMsgIDOrBuilder() { - if (msgIDBuilder_ != null) { - return msgIDBuilder_.getMessageOrBuilder(); - } else { - return msgID_ == null ? - meerkat.protobuf.BulletinBoardAPI.MessageID.getDefaultInstance() : msgID_; - } - } - /** - *
-       * The unique message ID if the batch
-       * 
- * - * .meerkat.MessageID msgID = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.BulletinBoardAPI.MessageID, meerkat.protobuf.BulletinBoardAPI.MessageID.Builder, meerkat.protobuf.BulletinBoardAPI.MessageIDOrBuilder> - getMsgIDFieldBuilder() { - if (msgIDBuilder_ == null) { - msgIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.BulletinBoardAPI.MessageID, meerkat.protobuf.BulletinBoardAPI.MessageID.Builder, meerkat.protobuf.BulletinBoardAPI.MessageIDOrBuilder>( - getMsgID(), - getParentForChildren(), - isClean()); - msgID_ = null; - } - return msgIDBuilder_; - } - - private int startPosition_ ; - /** - *
-       * The first chunk to retrieve (0 is the first chunk)
-       * 
- * - * int32 startPosition = 2; - */ - public int getStartPosition() { - return startPosition_; - } - /** - *
-       * The first chunk to retrieve (0 is the first chunk)
-       * 
- * - * int32 startPosition = 2; - */ - public Builder setStartPosition(int value) { - - startPosition_ = value; - onChanged(); - return this; - } - /** - *
-       * The first chunk to retrieve (0 is the first chunk)
-       * 
- * - * int32 startPosition = 2; - */ - public Builder clearStartPosition() { - - startPosition_ = 0; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.BatchQuery) - } - - // @@protoc_insertion_point(class_scope:meerkat.BatchQuery) - private static final meerkat.protobuf.BulletinBoardAPI.BatchQuery DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.BulletinBoardAPI.BatchQuery(); - } - - public static meerkat.protobuf.BulletinBoardAPI.BatchQuery getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public BatchQuery parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchQuery(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public meerkat.protobuf.BulletinBoardAPI.BatchQuery getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_BoolMsg_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_BoolMsg_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_IntMsg_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_IntMsg_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_MessageID_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_MessageID_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_UnsignedBulletinBoardMessage_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_UnsignedBulletinBoardMessage_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_BulletinBoardMessage_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_BulletinBoardMessage_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_BulletinBoardMessageList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_BulletinBoardMessageList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_MessageFilter_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_MessageFilter_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_MessageFilterList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_MessageFilterList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_BeginBatchMessage_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_BeginBatchMessage_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_CloseBatchMessage_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_CloseBatchMessage_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_BatchChunk_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_BatchChunk_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_BatchChunkList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_BatchChunkList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_BatchMessage_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_BatchMessage_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_SingleSyncQuery_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_SingleSyncQuery_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_SyncQuery_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_SyncQuery_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_GenerateSyncQueryParams_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_GenerateSyncQueryParams_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_SyncQueryResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_SyncQueryResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_BatchQuery_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_BatchQuery_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\036meerkat/BulletinBoardAPI.proto\022\007meerka" + - "t\032\024meerkat/crypto.proto\032\037google/protobuf" + - "/timestamp.proto\"\030\n\007BoolMsg\022\r\n\005value\030\001 \001" + - "(\010\"\027\n\006IntMsg\022\r\n\005value\030\001 \001(\005\"\027\n\tMessageID" + - "\022\n\n\002ID\030\001 \001(\014\"\207\001\n\034UnsignedBulletinBoardMe" + - "ssage\022\013\n\003tag\030\001 \003(\t\022-\n\ttimestamp\030\002 \001(\0132\032." + - "google.protobuf.Timestamp\022\017\n\005msgId\030\003 \001(\014" + - "H\000\022\016\n\004data\030\004 \001(\014H\000B\n\n\010dataType\"}\n\024Bullet" + - "inBoardMessage\022\020\n\010entryNum\030\001 \001(\003\0222\n\003msg\030" + - "\002 \001(\0132%.meerkat.UnsignedBulletinBoardMes", - "sage\022\037\n\003sig\030\003 \003(\0132\022.meerkat.Signature\"J\n" + - "\030BulletinBoardMessageList\022.\n\007message\030\001 \003" + - "(\0132\035.meerkat.BulletinBoardMessage\"\262\001\n\rMe" + - "ssageFilter\022!\n\004type\030\001 \001(\0162\023.meerkat.Filt" + - "erType\022\014\n\002id\030\002 \001(\014H\000\022\017\n\005entry\030\003 \001(\003H\000\022\r\n" + - "\003tag\030\004 \001(\tH\000\022\025\n\013maxMessages\030\005 \001(\003H\000\022/\n\tt" + - "imestamp\030\006 \001(\0132\032.google.protobuf.Timesta" + - "mpH\000B\010\n\006filter\";\n\021MessageFilterList\022&\n\006f" + - "ilter\030\001 \003(\0132\026.meerkat.MessageFilter\" \n\021B" + - "eginBatchMessage\022\013\n\003tag\030\001 \003(\t\"\211\001\n\021CloseB", - "atchMessage\022\017\n\007batchId\030\001 \001(\003\022\023\n\013batchLen" + - "gth\030\002 \001(\005\022-\n\ttimestamp\030\003 \001(\0132\032.google.pr" + - "otobuf.Timestamp\022\037\n\003sig\030\004 \003(\0132\022.meerkat." + - "Signature\"\032\n\nBatchChunk\022\014\n\004data\030\001 \001(\014\"3\n" + - "\016BatchChunkList\022!\n\004data\030\001 \003(\0132\023.meerkat." + - "BatchChunk\"U\n\014BatchMessage\022\017\n\007batchId\030\001 " + - "\001(\003\022\021\n\tserialNum\030\002 \001(\005\022!\n\004data\030\003 \001(\0132\023.m" + - "eerkat.BatchChunk\"S\n\017SingleSyncQuery\022.\n\n" + - "timeOfSync\030\001 \001(\0132\032.google.protobuf.Times" + - "tamp\022\020\n\010checksum\030\002 \001(\003\"d\n\tSyncQuery\022.\n\nf", - "ilterList\030\001 \001(\0132\032.meerkat.MessageFilterL" + - "ist\022\'\n\005query\030\002 \003(\0132\030.meerkat.SingleSyncQ" + - "uery\"a\n\027GenerateSyncQueryParams\022.\n\nfilte" + - "rList\030\001 \001(\0132\032.meerkat.MessageFilterList\022" + - "\026\n\016breakpointList\030\002 \003(\002\"]\n\021SyncQueryResp" + - "onse\022\024\n\014lastEntryNum\030\001 \001(\003\0222\n\016lastTimeOf" + - "Sync\030\002 \001(\0132\032.google.protobuf.Timestamp\"F" + - "\n\nBatchQuery\022!\n\005msgID\030\001 \001(\0132\022.meerkat.Me" + - "ssageID\022\025\n\rstartPosition\030\002 \001(\005*\222\001\n\nFilte" + - "rType\022\n\n\006MSG_ID\020\000\022\017\n\013EXACT_ENTRY\020\001\022\r\n\tMA", - "X_ENTRY\020\002\022\r\n\tMIN_ENTRY\020\003\022\r\n\tSIGNER_ID\020\004\022" + - "\007\n\003TAG\020\005\022\016\n\nAFTER_TIME\020\006\022\017\n\013BEFORE_TIME\020" + - "\007\022\020\n\014MAX_MESSAGES\020\010B\022\n\020meerkat.protobufb" + - "\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - meerkat.protobuf.Crypto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }, assigner); - internal_static_meerkat_BoolMsg_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_meerkat_BoolMsg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_BoolMsg_descriptor, - new java.lang.String[] { "Value", }); - internal_static_meerkat_IntMsg_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_meerkat_IntMsg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_IntMsg_descriptor, - new java.lang.String[] { "Value", }); - internal_static_meerkat_MessageID_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_meerkat_MessageID_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_MessageID_descriptor, - new java.lang.String[] { "ID", }); - internal_static_meerkat_UnsignedBulletinBoardMessage_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_meerkat_UnsignedBulletinBoardMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_UnsignedBulletinBoardMessage_descriptor, - new java.lang.String[] { "Tag", "Timestamp", "MsgId", "Data", "DataType", }); - internal_static_meerkat_BulletinBoardMessage_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_meerkat_BulletinBoardMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_BulletinBoardMessage_descriptor, - new java.lang.String[] { "EntryNum", "Msg", "Sig", }); - internal_static_meerkat_BulletinBoardMessageList_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_meerkat_BulletinBoardMessageList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_BulletinBoardMessageList_descriptor, - new java.lang.String[] { "Message", }); - internal_static_meerkat_MessageFilter_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_meerkat_MessageFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_MessageFilter_descriptor, - new java.lang.String[] { "Type", "Id", "Entry", "Tag", "MaxMessages", "Timestamp", "Filter", }); - internal_static_meerkat_MessageFilterList_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_meerkat_MessageFilterList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_MessageFilterList_descriptor, - new java.lang.String[] { "Filter", }); - internal_static_meerkat_BeginBatchMessage_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_meerkat_BeginBatchMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_BeginBatchMessage_descriptor, - new java.lang.String[] { "Tag", }); - internal_static_meerkat_CloseBatchMessage_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_meerkat_CloseBatchMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_CloseBatchMessage_descriptor, - new java.lang.String[] { "BatchId", "BatchLength", "Timestamp", "Sig", }); - internal_static_meerkat_BatchChunk_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_meerkat_BatchChunk_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_BatchChunk_descriptor, - new java.lang.String[] { "Data", }); - internal_static_meerkat_BatchChunkList_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_meerkat_BatchChunkList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_BatchChunkList_descriptor, - new java.lang.String[] { "Data", }); - internal_static_meerkat_BatchMessage_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_meerkat_BatchMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_BatchMessage_descriptor, - new java.lang.String[] { "BatchId", "SerialNum", "Data", }); - internal_static_meerkat_SingleSyncQuery_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_meerkat_SingleSyncQuery_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_SingleSyncQuery_descriptor, - new java.lang.String[] { "TimeOfSync", "Checksum", }); - internal_static_meerkat_SyncQuery_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_meerkat_SyncQuery_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_SyncQuery_descriptor, - new java.lang.String[] { "FilterList", "Query", }); - internal_static_meerkat_GenerateSyncQueryParams_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_meerkat_GenerateSyncQueryParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_GenerateSyncQueryParams_descriptor, - new java.lang.String[] { "FilterList", "BreakpointList", }); - internal_static_meerkat_SyncQueryResponse_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_meerkat_SyncQueryResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_SyncQueryResponse_descriptor, - new java.lang.String[] { "LastEntryNum", "LastTimeOfSync", }); - internal_static_meerkat_BatchQuery_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_meerkat_BatchQuery_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_BatchQuery_descriptor, - new java.lang.String[] { "MsgID", "StartPosition", }); - meerkat.protobuf.Crypto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/android-scanner/src/main/java/meerkat/protobuf/Comm.java b/android-scanner/src/main/java/meerkat/protobuf/Comm.java deleted file mode 100644 index 7acb672..0000000 --- a/android-scanner/src/main/java/meerkat/protobuf/Comm.java +++ /dev/null @@ -1,679 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: meerkat/comm.proto - -package meerkat.protobuf; - -public final class Comm { - private Comm() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface BroadcastMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.BroadcastMessage) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 sender = 1; - */ - int getSender(); - - /** - * int32 destination = 2; - */ - int getDestination(); - - /** - * bool is_private = 3; - */ - boolean getIsPrivate(); - - /** - * bytes payload = 5; - */ - com.google.protobuf.ByteString getPayload(); - } - /** - * Protobuf type {@code meerkat.BroadcastMessage} - */ - public static final class BroadcastMessage extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.BroadcastMessage) - BroadcastMessageOrBuilder { - // Use BroadcastMessage.newBuilder() to construct. - private BroadcastMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BroadcastMessage() { - sender_ = 0; - destination_ = 0; - isPrivate_ = false; - payload_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private BroadcastMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - sender_ = input.readInt32(); - break; - } - case 16: { - - destination_ = input.readInt32(); - break; - } - case 24: { - - isPrivate_ = input.readBool(); - break; - } - case 42: { - - payload_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Comm.internal_static_meerkat_BroadcastMessage_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Comm.internal_static_meerkat_BroadcastMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Comm.BroadcastMessage.class, meerkat.protobuf.Comm.BroadcastMessage.Builder.class); - } - - public static final int SENDER_FIELD_NUMBER = 1; - private int sender_; - /** - * int32 sender = 1; - */ - public int getSender() { - return sender_; - } - - public static final int DESTINATION_FIELD_NUMBER = 2; - private int destination_; - /** - * int32 destination = 2; - */ - public int getDestination() { - return destination_; - } - - public static final int IS_PRIVATE_FIELD_NUMBER = 3; - private boolean isPrivate_; - /** - * bool is_private = 3; - */ - public boolean getIsPrivate() { - return isPrivate_; - } - - public static final int PAYLOAD_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString payload_; - /** - * bytes payload = 5; - */ - public com.google.protobuf.ByteString getPayload() { - return payload_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (sender_ != 0) { - output.writeInt32(1, sender_); - } - if (destination_ != 0) { - output.writeInt32(2, destination_); - } - if (isPrivate_ != false) { - output.writeBool(3, isPrivate_); - } - if (!payload_.isEmpty()) { - output.writeBytes(5, payload_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (sender_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, sender_); - } - if (destination_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, destination_); - } - if (isPrivate_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, isPrivate_); - } - if (!payload_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, payload_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.Comm.BroadcastMessage)) { - return super.equals(obj); - } - meerkat.protobuf.Comm.BroadcastMessage other = (meerkat.protobuf.Comm.BroadcastMessage) obj; - - boolean result = true; - result = result && (getSender() - == other.getSender()); - result = result && (getDestination() - == other.getDestination()); - result = result && (getIsPrivate() - == other.getIsPrivate()); - result = result && getPayload() - .equals(other.getPayload()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SENDER_FIELD_NUMBER; - hash = (53 * hash) + getSender(); - hash = (37 * hash) + DESTINATION_FIELD_NUMBER; - hash = (53 * hash) + getDestination(); - hash = (37 * hash) + IS_PRIVATE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsPrivate()); - hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; - hash = (53 * hash) + getPayload().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.Comm.BroadcastMessage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Comm.BroadcastMessage parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Comm.BroadcastMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Comm.BroadcastMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Comm.BroadcastMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Comm.BroadcastMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Comm.BroadcastMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.Comm.BroadcastMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Comm.BroadcastMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Comm.BroadcastMessage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.Comm.BroadcastMessage prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code meerkat.BroadcastMessage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:meerkat.BroadcastMessage) - meerkat.protobuf.Comm.BroadcastMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Comm.internal_static_meerkat_BroadcastMessage_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Comm.internal_static_meerkat_BroadcastMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Comm.BroadcastMessage.class, meerkat.protobuf.Comm.BroadcastMessage.Builder.class); - } - - // Construct using meerkat.protobuf.Comm.BroadcastMessage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - sender_ = 0; - - destination_ = 0; - - isPrivate_ = false; - - payload_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.Comm.internal_static_meerkat_BroadcastMessage_descriptor; - } - - public meerkat.protobuf.Comm.BroadcastMessage getDefaultInstanceForType() { - return meerkat.protobuf.Comm.BroadcastMessage.getDefaultInstance(); - } - - public meerkat.protobuf.Comm.BroadcastMessage build() { - meerkat.protobuf.Comm.BroadcastMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.Comm.BroadcastMessage buildPartial() { - meerkat.protobuf.Comm.BroadcastMessage result = new meerkat.protobuf.Comm.BroadcastMessage(this); - result.sender_ = sender_; - result.destination_ = destination_; - result.isPrivate_ = isPrivate_; - result.payload_ = payload_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.Comm.BroadcastMessage) { - return mergeFrom((meerkat.protobuf.Comm.BroadcastMessage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.Comm.BroadcastMessage other) { - if (other == meerkat.protobuf.Comm.BroadcastMessage.getDefaultInstance()) return this; - if (other.getSender() != 0) { - setSender(other.getSender()); - } - if (other.getDestination() != 0) { - setDestination(other.getDestination()); - } - if (other.getIsPrivate() != false) { - setIsPrivate(other.getIsPrivate()); - } - if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) { - setPayload(other.getPayload()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.Comm.BroadcastMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.Comm.BroadcastMessage) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int sender_ ; - /** - * int32 sender = 1; - */ - public int getSender() { - return sender_; - } - /** - * int32 sender = 1; - */ - public Builder setSender(int value) { - - sender_ = value; - onChanged(); - return this; - } - /** - * int32 sender = 1; - */ - public Builder clearSender() { - - sender_ = 0; - onChanged(); - return this; - } - - private int destination_ ; - /** - * int32 destination = 2; - */ - public int getDestination() { - return destination_; - } - /** - * int32 destination = 2; - */ - public Builder setDestination(int value) { - - destination_ = value; - onChanged(); - return this; - } - /** - * int32 destination = 2; - */ - public Builder clearDestination() { - - destination_ = 0; - onChanged(); - return this; - } - - private boolean isPrivate_ ; - /** - * bool is_private = 3; - */ - public boolean getIsPrivate() { - return isPrivate_; - } - /** - * bool is_private = 3; - */ - public Builder setIsPrivate(boolean value) { - - isPrivate_ = value; - onChanged(); - return this; - } - /** - * bool is_private = 3; - */ - public Builder clearIsPrivate() { - - isPrivate_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes payload = 5; - */ - public com.google.protobuf.ByteString getPayload() { - return payload_; - } - /** - * bytes payload = 5; - */ - public Builder setPayload(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - payload_ = value; - onChanged(); - return this; - } - /** - * bytes payload = 5; - */ - public Builder clearPayload() { - - payload_ = getDefaultInstance().getPayload(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.BroadcastMessage) - } - - // @@protoc_insertion_point(class_scope:meerkat.BroadcastMessage) - private static final meerkat.protobuf.Comm.BroadcastMessage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.Comm.BroadcastMessage(); - } - - public static meerkat.protobuf.Comm.BroadcastMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public BroadcastMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BroadcastMessage(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public meerkat.protobuf.Comm.BroadcastMessage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_BroadcastMessage_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_BroadcastMessage_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\022meerkat/comm.proto\022\007meerkat\"\\\n\020Broadca" + - "stMessage\022\016\n\006sender\030\001 \001(\005\022\023\n\013destination" + - "\030\002 \001(\005\022\022\n\nis_private\030\003 \001(\010\022\017\n\007payload\030\005 " + - "\001(\014B\022\n\020meerkat.protobufb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_meerkat_BroadcastMessage_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_meerkat_BroadcastMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_BroadcastMessage_descriptor, - new java.lang.String[] { "Sender", "Destination", "IsPrivate", "Payload", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/android-scanner/src/main/java/meerkat/protobuf/ConcreteCrypto.java b/android-scanner/src/main/java/meerkat/protobuf/ConcreteCrypto.java deleted file mode 100644 index 8a29f69..0000000 --- a/android-scanner/src/main/java/meerkat/protobuf/ConcreteCrypto.java +++ /dev/null @@ -1,1858 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: meerkat/concrete_crypto.proto - -package meerkat.protobuf; - -public final class ConcreteCrypto { - private ConcreteCrypto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ElGamalPublicKeyOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.ElGamalPublicKey) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * DER-encoded SubjectPublicKeyInfo as in RFC 3279
-     * 
- * - * bytes subject_public_key_info = 1; - */ - com.google.protobuf.ByteString getSubjectPublicKeyInfo(); - } - /** - * Protobuf type {@code meerkat.ElGamalPublicKey} - */ - public static final class ElGamalPublicKey extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.ElGamalPublicKey) - ElGamalPublicKeyOrBuilder { - // Use ElGamalPublicKey.newBuilder() to construct. - private ElGamalPublicKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ElGamalPublicKey() { - subjectPublicKeyInfo_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private ElGamalPublicKey( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - - subjectPublicKeyInfo_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.ConcreteCrypto.internal_static_meerkat_ElGamalPublicKey_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.ConcreteCrypto.internal_static_meerkat_ElGamalPublicKey_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey.class, meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey.Builder.class); - } - - public static final int SUBJECT_PUBLIC_KEY_INFO_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString subjectPublicKeyInfo_; - /** - *
-     * DER-encoded SubjectPublicKeyInfo as in RFC 3279
-     * 
- * - * bytes subject_public_key_info = 1; - */ - public com.google.protobuf.ByteString getSubjectPublicKeyInfo() { - return subjectPublicKeyInfo_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!subjectPublicKeyInfo_.isEmpty()) { - output.writeBytes(1, subjectPublicKeyInfo_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!subjectPublicKeyInfo_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, subjectPublicKeyInfo_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey)) { - return super.equals(obj); - } - meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey other = (meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey) obj; - - boolean result = true; - result = result && getSubjectPublicKeyInfo() - .equals(other.getSubjectPublicKeyInfo()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SUBJECT_PUBLIC_KEY_INFO_FIELD_NUMBER; - hash = (53 * hash) + getSubjectPublicKeyInfo().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code meerkat.ElGamalPublicKey} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:meerkat.ElGamalPublicKey) - meerkat.protobuf.ConcreteCrypto.ElGamalPublicKeyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.ConcreteCrypto.internal_static_meerkat_ElGamalPublicKey_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.ConcreteCrypto.internal_static_meerkat_ElGamalPublicKey_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey.class, meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey.Builder.class); - } - - // Construct using meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - subjectPublicKeyInfo_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.ConcreteCrypto.internal_static_meerkat_ElGamalPublicKey_descriptor; - } - - public meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey getDefaultInstanceForType() { - return meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey.getDefaultInstance(); - } - - public meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey build() { - meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey buildPartial() { - meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey result = new meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey(this); - result.subjectPublicKeyInfo_ = subjectPublicKeyInfo_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey) { - return mergeFrom((meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey other) { - if (other == meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey.getDefaultInstance()) return this; - if (other.getSubjectPublicKeyInfo() != com.google.protobuf.ByteString.EMPTY) { - setSubjectPublicKeyInfo(other.getSubjectPublicKeyInfo()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString subjectPublicKeyInfo_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       * DER-encoded SubjectPublicKeyInfo as in RFC 3279
-       * 
- * - * bytes subject_public_key_info = 1; - */ - public com.google.protobuf.ByteString getSubjectPublicKeyInfo() { - return subjectPublicKeyInfo_; - } - /** - *
-       * DER-encoded SubjectPublicKeyInfo as in RFC 3279
-       * 
- * - * bytes subject_public_key_info = 1; - */ - public Builder setSubjectPublicKeyInfo(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - subjectPublicKeyInfo_ = value; - onChanged(); - return this; - } - /** - *
-       * DER-encoded SubjectPublicKeyInfo as in RFC 3279
-       * 
- * - * bytes subject_public_key_info = 1; - */ - public Builder clearSubjectPublicKeyInfo() { - - subjectPublicKeyInfo_ = getDefaultInstance().getSubjectPublicKeyInfo(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.ElGamalPublicKey) - } - - // @@protoc_insertion_point(class_scope:meerkat.ElGamalPublicKey) - private static final meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey(); - } - - public static meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public ElGamalPublicKey parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ElGamalPublicKey(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GroupElementOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.GroupElement) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes data = 1; - */ - com.google.protobuf.ByteString getData(); - } - /** - *
-   * Each group element should be an ASN.1 encoded curve point with compression.
-   * 
- * - * Protobuf type {@code meerkat.GroupElement} - */ - public static final class GroupElement extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.GroupElement) - GroupElementOrBuilder { - // Use GroupElement.newBuilder() to construct. - private GroupElement(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GroupElement() { - data_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private GroupElement( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - - data_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.ConcreteCrypto.internal_static_meerkat_GroupElement_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.ConcreteCrypto.internal_static_meerkat_GroupElement_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.ConcreteCrypto.GroupElement.class, meerkat.protobuf.ConcreteCrypto.GroupElement.Builder.class); - } - - public static final int DATA_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString data_; - /** - * bytes data = 1; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!data_.isEmpty()) { - output.writeBytes(1, data_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, data_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.ConcreteCrypto.GroupElement)) { - return super.equals(obj); - } - meerkat.protobuf.ConcreteCrypto.GroupElement other = (meerkat.protobuf.ConcreteCrypto.GroupElement) obj; - - boolean result = true; - result = result && getData() - .equals(other.getData()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.ConcreteCrypto.GroupElement parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.ConcreteCrypto.GroupElement parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.ConcreteCrypto.GroupElement parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.ConcreteCrypto.GroupElement parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.ConcreteCrypto.GroupElement parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.ConcreteCrypto.GroupElement parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.ConcreteCrypto.GroupElement parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.ConcreteCrypto.GroupElement parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.ConcreteCrypto.GroupElement parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.ConcreteCrypto.GroupElement parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.ConcreteCrypto.GroupElement prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Each group element should be an ASN.1 encoded curve point with compression.
-     * 
- * - * Protobuf type {@code meerkat.GroupElement} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:meerkat.GroupElement) - meerkat.protobuf.ConcreteCrypto.GroupElementOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.ConcreteCrypto.internal_static_meerkat_GroupElement_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.ConcreteCrypto.internal_static_meerkat_GroupElement_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.ConcreteCrypto.GroupElement.class, meerkat.protobuf.ConcreteCrypto.GroupElement.Builder.class); - } - - // Construct using meerkat.protobuf.ConcreteCrypto.GroupElement.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - data_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.ConcreteCrypto.internal_static_meerkat_GroupElement_descriptor; - } - - public meerkat.protobuf.ConcreteCrypto.GroupElement getDefaultInstanceForType() { - return meerkat.protobuf.ConcreteCrypto.GroupElement.getDefaultInstance(); - } - - public meerkat.protobuf.ConcreteCrypto.GroupElement build() { - meerkat.protobuf.ConcreteCrypto.GroupElement result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.ConcreteCrypto.GroupElement buildPartial() { - meerkat.protobuf.ConcreteCrypto.GroupElement result = new meerkat.protobuf.ConcreteCrypto.GroupElement(this); - result.data_ = data_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.ConcreteCrypto.GroupElement) { - return mergeFrom((meerkat.protobuf.ConcreteCrypto.GroupElement)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.ConcreteCrypto.GroupElement other) { - if (other == meerkat.protobuf.ConcreteCrypto.GroupElement.getDefaultInstance()) return this; - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.ConcreteCrypto.GroupElement parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.ConcreteCrypto.GroupElement) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes data = 1; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - * bytes data = 1; - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - * bytes data = 1; - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.GroupElement) - } - - // @@protoc_insertion_point(class_scope:meerkat.GroupElement) - private static final meerkat.protobuf.ConcreteCrypto.GroupElement DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.ConcreteCrypto.GroupElement(); - } - - public static meerkat.protobuf.ConcreteCrypto.GroupElement getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public GroupElement parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupElement(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public meerkat.protobuf.ConcreteCrypto.GroupElement getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ElGamalCiphertextOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.ElGamalCiphertext) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * First group element
-     * 
- * - * .meerkat.GroupElement c1 = 1; - */ - boolean hasC1(); - /** - *
-     * First group element
-     * 
- * - * .meerkat.GroupElement c1 = 1; - */ - meerkat.protobuf.ConcreteCrypto.GroupElement getC1(); - /** - *
-     * First group element
-     * 
- * - * .meerkat.GroupElement c1 = 1; - */ - meerkat.protobuf.ConcreteCrypto.GroupElementOrBuilder getC1OrBuilder(); - - /** - *
-     * Second group element
-     * 
- * - * .meerkat.GroupElement c2 = 2; - */ - boolean hasC2(); - /** - *
-     * Second group element
-     * 
- * - * .meerkat.GroupElement c2 = 2; - */ - meerkat.protobuf.ConcreteCrypto.GroupElement getC2(); - /** - *
-     * Second group element
-     * 
- * - * .meerkat.GroupElement c2 = 2; - */ - meerkat.protobuf.ConcreteCrypto.GroupElementOrBuilder getC2OrBuilder(); - } - /** - *
-   * An El-Gamal ciphertext
-   * 
- * - * Protobuf type {@code meerkat.ElGamalCiphertext} - */ - public static final class ElGamalCiphertext extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.ElGamalCiphertext) - ElGamalCiphertextOrBuilder { - // Use ElGamalCiphertext.newBuilder() to construct. - private ElGamalCiphertext(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ElGamalCiphertext() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private ElGamalCiphertext( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - meerkat.protobuf.ConcreteCrypto.GroupElement.Builder subBuilder = null; - if (c1_ != null) { - subBuilder = c1_.toBuilder(); - } - c1_ = input.readMessage(meerkat.protobuf.ConcreteCrypto.GroupElement.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(c1_); - c1_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - meerkat.protobuf.ConcreteCrypto.GroupElement.Builder subBuilder = null; - if (c2_ != null) { - subBuilder = c2_.toBuilder(); - } - c2_ = input.readMessage(meerkat.protobuf.ConcreteCrypto.GroupElement.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(c2_); - c2_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.ConcreteCrypto.internal_static_meerkat_ElGamalCiphertext_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.ConcreteCrypto.internal_static_meerkat_ElGamalCiphertext_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext.class, meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext.Builder.class); - } - - public static final int C1_FIELD_NUMBER = 1; - private meerkat.protobuf.ConcreteCrypto.GroupElement c1_; - /** - *
-     * First group element
-     * 
- * - * .meerkat.GroupElement c1 = 1; - */ - public boolean hasC1() { - return c1_ != null; - } - /** - *
-     * First group element
-     * 
- * - * .meerkat.GroupElement c1 = 1; - */ - public meerkat.protobuf.ConcreteCrypto.GroupElement getC1() { - return c1_ == null ? meerkat.protobuf.ConcreteCrypto.GroupElement.getDefaultInstance() : c1_; - } - /** - *
-     * First group element
-     * 
- * - * .meerkat.GroupElement c1 = 1; - */ - public meerkat.protobuf.ConcreteCrypto.GroupElementOrBuilder getC1OrBuilder() { - return getC1(); - } - - public static final int C2_FIELD_NUMBER = 2; - private meerkat.protobuf.ConcreteCrypto.GroupElement c2_; - /** - *
-     * Second group element
-     * 
- * - * .meerkat.GroupElement c2 = 2; - */ - public boolean hasC2() { - return c2_ != null; - } - /** - *
-     * Second group element
-     * 
- * - * .meerkat.GroupElement c2 = 2; - */ - public meerkat.protobuf.ConcreteCrypto.GroupElement getC2() { - return c2_ == null ? meerkat.protobuf.ConcreteCrypto.GroupElement.getDefaultInstance() : c2_; - } - /** - *
-     * Second group element
-     * 
- * - * .meerkat.GroupElement c2 = 2; - */ - public meerkat.protobuf.ConcreteCrypto.GroupElementOrBuilder getC2OrBuilder() { - return getC2(); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (c1_ != null) { - output.writeMessage(1, getC1()); - } - if (c2_ != null) { - output.writeMessage(2, getC2()); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (c1_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getC1()); - } - if (c2_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getC2()); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext)) { - return super.equals(obj); - } - meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext other = (meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext) obj; - - boolean result = true; - result = result && (hasC1() == other.hasC1()); - if (hasC1()) { - result = result && getC1() - .equals(other.getC1()); - } - result = result && (hasC2() == other.hasC2()); - if (hasC2()) { - result = result && getC2() - .equals(other.getC2()); - } - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasC1()) { - hash = (37 * hash) + C1_FIELD_NUMBER; - hash = (53 * hash) + getC1().hashCode(); - } - if (hasC2()) { - hash = (37 * hash) + C2_FIELD_NUMBER; - hash = (53 * hash) + getC2().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * An El-Gamal ciphertext
-     * 
- * - * Protobuf type {@code meerkat.ElGamalCiphertext} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:meerkat.ElGamalCiphertext) - meerkat.protobuf.ConcreteCrypto.ElGamalCiphertextOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.ConcreteCrypto.internal_static_meerkat_ElGamalCiphertext_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.ConcreteCrypto.internal_static_meerkat_ElGamalCiphertext_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext.class, meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext.Builder.class); - } - - // Construct using meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - if (c1Builder_ == null) { - c1_ = null; - } else { - c1_ = null; - c1Builder_ = null; - } - if (c2Builder_ == null) { - c2_ = null; - } else { - c2_ = null; - c2Builder_ = null; - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.ConcreteCrypto.internal_static_meerkat_ElGamalCiphertext_descriptor; - } - - public meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext getDefaultInstanceForType() { - return meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext.getDefaultInstance(); - } - - public meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext build() { - meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext buildPartial() { - meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext result = new meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext(this); - if (c1Builder_ == null) { - result.c1_ = c1_; - } else { - result.c1_ = c1Builder_.build(); - } - if (c2Builder_ == null) { - result.c2_ = c2_; - } else { - result.c2_ = c2Builder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext) { - return mergeFrom((meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext other) { - if (other == meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext.getDefaultInstance()) return this; - if (other.hasC1()) { - mergeC1(other.getC1()); - } - if (other.hasC2()) { - mergeC2(other.getC2()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private meerkat.protobuf.ConcreteCrypto.GroupElement c1_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.ConcreteCrypto.GroupElement, meerkat.protobuf.ConcreteCrypto.GroupElement.Builder, meerkat.protobuf.ConcreteCrypto.GroupElementOrBuilder> c1Builder_; - /** - *
-       * First group element
-       * 
- * - * .meerkat.GroupElement c1 = 1; - */ - public boolean hasC1() { - return c1Builder_ != null || c1_ != null; - } - /** - *
-       * First group element
-       * 
- * - * .meerkat.GroupElement c1 = 1; - */ - public meerkat.protobuf.ConcreteCrypto.GroupElement getC1() { - if (c1Builder_ == null) { - return c1_ == null ? meerkat.protobuf.ConcreteCrypto.GroupElement.getDefaultInstance() : c1_; - } else { - return c1Builder_.getMessage(); - } - } - /** - *
-       * First group element
-       * 
- * - * .meerkat.GroupElement c1 = 1; - */ - public Builder setC1(meerkat.protobuf.ConcreteCrypto.GroupElement value) { - if (c1Builder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - c1_ = value; - onChanged(); - } else { - c1Builder_.setMessage(value); - } - - return this; - } - /** - *
-       * First group element
-       * 
- * - * .meerkat.GroupElement c1 = 1; - */ - public Builder setC1( - meerkat.protobuf.ConcreteCrypto.GroupElement.Builder builderForValue) { - if (c1Builder_ == null) { - c1_ = builderForValue.build(); - onChanged(); - } else { - c1Builder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * First group element
-       * 
- * - * .meerkat.GroupElement c1 = 1; - */ - public Builder mergeC1(meerkat.protobuf.ConcreteCrypto.GroupElement value) { - if (c1Builder_ == null) { - if (c1_ != null) { - c1_ = - meerkat.protobuf.ConcreteCrypto.GroupElement.newBuilder(c1_).mergeFrom(value).buildPartial(); - } else { - c1_ = value; - } - onChanged(); - } else { - c1Builder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * First group element
-       * 
- * - * .meerkat.GroupElement c1 = 1; - */ - public Builder clearC1() { - if (c1Builder_ == null) { - c1_ = null; - onChanged(); - } else { - c1_ = null; - c1Builder_ = null; - } - - return this; - } - /** - *
-       * First group element
-       * 
- * - * .meerkat.GroupElement c1 = 1; - */ - public meerkat.protobuf.ConcreteCrypto.GroupElement.Builder getC1Builder() { - - onChanged(); - return getC1FieldBuilder().getBuilder(); - } - /** - *
-       * First group element
-       * 
- * - * .meerkat.GroupElement c1 = 1; - */ - public meerkat.protobuf.ConcreteCrypto.GroupElementOrBuilder getC1OrBuilder() { - if (c1Builder_ != null) { - return c1Builder_.getMessageOrBuilder(); - } else { - return c1_ == null ? - meerkat.protobuf.ConcreteCrypto.GroupElement.getDefaultInstance() : c1_; - } - } - /** - *
-       * First group element
-       * 
- * - * .meerkat.GroupElement c1 = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.ConcreteCrypto.GroupElement, meerkat.protobuf.ConcreteCrypto.GroupElement.Builder, meerkat.protobuf.ConcreteCrypto.GroupElementOrBuilder> - getC1FieldBuilder() { - if (c1Builder_ == null) { - c1Builder_ = new com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.ConcreteCrypto.GroupElement, meerkat.protobuf.ConcreteCrypto.GroupElement.Builder, meerkat.protobuf.ConcreteCrypto.GroupElementOrBuilder>( - getC1(), - getParentForChildren(), - isClean()); - c1_ = null; - } - return c1Builder_; - } - - private meerkat.protobuf.ConcreteCrypto.GroupElement c2_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.ConcreteCrypto.GroupElement, meerkat.protobuf.ConcreteCrypto.GroupElement.Builder, meerkat.protobuf.ConcreteCrypto.GroupElementOrBuilder> c2Builder_; - /** - *
-       * Second group element
-       * 
- * - * .meerkat.GroupElement c2 = 2; - */ - public boolean hasC2() { - return c2Builder_ != null || c2_ != null; - } - /** - *
-       * Second group element
-       * 
- * - * .meerkat.GroupElement c2 = 2; - */ - public meerkat.protobuf.ConcreteCrypto.GroupElement getC2() { - if (c2Builder_ == null) { - return c2_ == null ? meerkat.protobuf.ConcreteCrypto.GroupElement.getDefaultInstance() : c2_; - } else { - return c2Builder_.getMessage(); - } - } - /** - *
-       * Second group element
-       * 
- * - * .meerkat.GroupElement c2 = 2; - */ - public Builder setC2(meerkat.protobuf.ConcreteCrypto.GroupElement value) { - if (c2Builder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - c2_ = value; - onChanged(); - } else { - c2Builder_.setMessage(value); - } - - return this; - } - /** - *
-       * Second group element
-       * 
- * - * .meerkat.GroupElement c2 = 2; - */ - public Builder setC2( - meerkat.protobuf.ConcreteCrypto.GroupElement.Builder builderForValue) { - if (c2Builder_ == null) { - c2_ = builderForValue.build(); - onChanged(); - } else { - c2Builder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Second group element
-       * 
- * - * .meerkat.GroupElement c2 = 2; - */ - public Builder mergeC2(meerkat.protobuf.ConcreteCrypto.GroupElement value) { - if (c2Builder_ == null) { - if (c2_ != null) { - c2_ = - meerkat.protobuf.ConcreteCrypto.GroupElement.newBuilder(c2_).mergeFrom(value).buildPartial(); - } else { - c2_ = value; - } - onChanged(); - } else { - c2Builder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Second group element
-       * 
- * - * .meerkat.GroupElement c2 = 2; - */ - public Builder clearC2() { - if (c2Builder_ == null) { - c2_ = null; - onChanged(); - } else { - c2_ = null; - c2Builder_ = null; - } - - return this; - } - /** - *
-       * Second group element
-       * 
- * - * .meerkat.GroupElement c2 = 2; - */ - public meerkat.protobuf.ConcreteCrypto.GroupElement.Builder getC2Builder() { - - onChanged(); - return getC2FieldBuilder().getBuilder(); - } - /** - *
-       * Second group element
-       * 
- * - * .meerkat.GroupElement c2 = 2; - */ - public meerkat.protobuf.ConcreteCrypto.GroupElementOrBuilder getC2OrBuilder() { - if (c2Builder_ != null) { - return c2Builder_.getMessageOrBuilder(); - } else { - return c2_ == null ? - meerkat.protobuf.ConcreteCrypto.GroupElement.getDefaultInstance() : c2_; - } - } - /** - *
-       * Second group element
-       * 
- * - * .meerkat.GroupElement c2 = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.ConcreteCrypto.GroupElement, meerkat.protobuf.ConcreteCrypto.GroupElement.Builder, meerkat.protobuf.ConcreteCrypto.GroupElementOrBuilder> - getC2FieldBuilder() { - if (c2Builder_ == null) { - c2Builder_ = new com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.ConcreteCrypto.GroupElement, meerkat.protobuf.ConcreteCrypto.GroupElement.Builder, meerkat.protobuf.ConcreteCrypto.GroupElementOrBuilder>( - getC2(), - getParentForChildren(), - isClean()); - c2_ = null; - } - return c2Builder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.ElGamalCiphertext) - } - - // @@protoc_insertion_point(class_scope:meerkat.ElGamalCiphertext) - private static final meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext(); - } - - public static meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public ElGamalCiphertext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ElGamalCiphertext(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_ElGamalPublicKey_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_ElGamalPublicKey_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_GroupElement_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_GroupElement_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_ElGamalCiphertext_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_ElGamalCiphertext_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\035meerkat/concrete_crypto.proto\022\007meerkat" + - "\032\024meerkat/crypto.proto\"3\n\020ElGamalPublicK" + - "ey\022\037\n\027subject_public_key_info\030\001 \001(\014\"\034\n\014G" + - "roupElement\022\014\n\004data\030\001 \001(\014\"Y\n\021ElGamalCiph" + - "ertext\022!\n\002c1\030\001 \001(\0132\025.meerkat.GroupElemen" + - "t\022!\n\002c2\030\002 \001(\0132\025.meerkat.GroupElementB\022\n\020" + - "meerkat.protobufb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - meerkat.protobuf.Crypto.getDescriptor(), - }, assigner); - internal_static_meerkat_ElGamalPublicKey_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_meerkat_ElGamalPublicKey_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_ElGamalPublicKey_descriptor, - new java.lang.String[] { "SubjectPublicKeyInfo", }); - internal_static_meerkat_GroupElement_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_meerkat_GroupElement_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_GroupElement_descriptor, - new java.lang.String[] { "Data", }); - internal_static_meerkat_ElGamalCiphertext_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_meerkat_ElGamalCiphertext_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_ElGamalCiphertext_descriptor, - new java.lang.String[] { "C1", "C2", }); - meerkat.protobuf.Crypto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/android-scanner/src/main/java/meerkat/protobuf/Crypto.java b/android-scanner/src/main/java/meerkat/protobuf/Crypto.java deleted file mode 100644 index 5120ba2..0000000 --- a/android-scanner/src/main/java/meerkat/protobuf/Crypto.java +++ /dev/null @@ -1,3611 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: meerkat/crypto.proto - -package meerkat.protobuf; - -public final class Crypto { - private Crypto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code meerkat.SignatureType} - */ - public enum SignatureType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * ECDSA = 0; - */ - ECDSA(0), - /** - * DSA = 1; - */ - DSA(1), - UNRECOGNIZED(-1), - ; - - /** - * ECDSA = 0; - */ - public static final int ECDSA_VALUE = 0; - /** - * DSA = 1; - */ - public static final int DSA_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static SignatureType valueOf(int value) { - return forNumber(value); - } - - public static SignatureType forNumber(int value) { - switch (value) { - case 0: return ECDSA; - case 1: return DSA; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - SignatureType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SignatureType findValueByNumber(int number) { - return SignatureType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return meerkat.protobuf.Crypto.getDescriptor().getEnumTypes().get(0); - } - - private static final SignatureType[] VALUES = values(); - - public static SignatureType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private SignatureType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:meerkat.SignatureType) - } - - public interface BigIntegerOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.BigInteger) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes data = 1; - */ - com.google.protobuf.ByteString getData(); - } - /** - * Protobuf type {@code meerkat.BigInteger} - */ - public static final class BigInteger extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.BigInteger) - BigIntegerOrBuilder { - // Use BigInteger.newBuilder() to construct. - private BigInteger(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BigInteger() { - data_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private BigInteger( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - - data_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Crypto.internal_static_meerkat_BigInteger_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Crypto.internal_static_meerkat_BigInteger_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Crypto.BigInteger.class, meerkat.protobuf.Crypto.BigInteger.Builder.class); - } - - public static final int DATA_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString data_; - /** - * bytes data = 1; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!data_.isEmpty()) { - output.writeBytes(1, data_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, data_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.Crypto.BigInteger)) { - return super.equals(obj); - } - meerkat.protobuf.Crypto.BigInteger other = (meerkat.protobuf.Crypto.BigInteger) obj; - - boolean result = true; - result = result && getData() - .equals(other.getData()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.Crypto.BigInteger parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Crypto.BigInteger parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Crypto.BigInteger parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Crypto.BigInteger parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Crypto.BigInteger parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Crypto.BigInteger parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Crypto.BigInteger parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.Crypto.BigInteger parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Crypto.BigInteger parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Crypto.BigInteger parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.Crypto.BigInteger prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code meerkat.BigInteger} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:meerkat.BigInteger) - meerkat.protobuf.Crypto.BigIntegerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Crypto.internal_static_meerkat_BigInteger_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Crypto.internal_static_meerkat_BigInteger_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Crypto.BigInteger.class, meerkat.protobuf.Crypto.BigInteger.Builder.class); - } - - // Construct using meerkat.protobuf.Crypto.BigInteger.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - data_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.Crypto.internal_static_meerkat_BigInteger_descriptor; - } - - public meerkat.protobuf.Crypto.BigInteger getDefaultInstanceForType() { - return meerkat.protobuf.Crypto.BigInteger.getDefaultInstance(); - } - - public meerkat.protobuf.Crypto.BigInteger build() { - meerkat.protobuf.Crypto.BigInteger result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.Crypto.BigInteger buildPartial() { - meerkat.protobuf.Crypto.BigInteger result = new meerkat.protobuf.Crypto.BigInteger(this); - result.data_ = data_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.Crypto.BigInteger) { - return mergeFrom((meerkat.protobuf.Crypto.BigInteger)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.Crypto.BigInteger other) { - if (other == meerkat.protobuf.Crypto.BigInteger.getDefaultInstance()) return this; - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.Crypto.BigInteger parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.Crypto.BigInteger) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes data = 1; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - * bytes data = 1; - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - * bytes data = 1; - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.BigInteger) - } - - // @@protoc_insertion_point(class_scope:meerkat.BigInteger) - private static final meerkat.protobuf.Crypto.BigInteger DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.Crypto.BigInteger(); - } - - public static meerkat.protobuf.Crypto.BigInteger getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public BigInteger parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BigInteger(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public meerkat.protobuf.Crypto.BigInteger getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SignatureOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.Signature) - com.google.protobuf.MessageOrBuilder { - - /** - * .meerkat.SignatureType type = 1; - */ - int getTypeValue(); - /** - * .meerkat.SignatureType type = 1; - */ - meerkat.protobuf.Crypto.SignatureType getType(); - - /** - *
-     * Data encoding depends on type; default is DER-encoded
-     * 
- * - * bytes data = 2; - */ - com.google.protobuf.ByteString getData(); - - /** - *
-     * ID of the signer (should be the fingerprint of the signature verification key)
-     * 
- * - * bytes signer_id = 3; - */ - com.google.protobuf.ByteString getSignerId(); - } - /** - *
-   * A digital signature
-   * 
- * - * Protobuf type {@code meerkat.Signature} - */ - public static final class Signature extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.Signature) - SignatureOrBuilder { - // Use Signature.newBuilder() to construct. - private Signature(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Signature() { - type_ = 0; - data_ = com.google.protobuf.ByteString.EMPTY; - signerId_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private Signature( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 18: { - - data_ = input.readBytes(); - break; - } - case 26: { - - signerId_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Crypto.internal_static_meerkat_Signature_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Crypto.internal_static_meerkat_Signature_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Crypto.Signature.class, meerkat.protobuf.Crypto.Signature.Builder.class); - } - - public static final int TYPE_FIELD_NUMBER = 1; - private int type_; - /** - * .meerkat.SignatureType type = 1; - */ - public int getTypeValue() { - return type_; - } - /** - * .meerkat.SignatureType type = 1; - */ - public meerkat.protobuf.Crypto.SignatureType getType() { - meerkat.protobuf.Crypto.SignatureType result = meerkat.protobuf.Crypto.SignatureType.valueOf(type_); - return result == null ? meerkat.protobuf.Crypto.SignatureType.UNRECOGNIZED : result; - } - - public static final int DATA_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString data_; - /** - *
-     * Data encoding depends on type; default is DER-encoded
-     * 
- * - * bytes data = 2; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - - public static final int SIGNER_ID_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString signerId_; - /** - *
-     * ID of the signer (should be the fingerprint of the signature verification key)
-     * 
- * - * bytes signer_id = 3; - */ - public com.google.protobuf.ByteString getSignerId() { - return signerId_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (type_ != meerkat.protobuf.Crypto.SignatureType.ECDSA.getNumber()) { - output.writeEnum(1, type_); - } - if (!data_.isEmpty()) { - output.writeBytes(2, data_); - } - if (!signerId_.isEmpty()) { - output.writeBytes(3, signerId_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (type_ != meerkat.protobuf.Crypto.SignatureType.ECDSA.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); - } - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, data_); - } - if (!signerId_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, signerId_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.Crypto.Signature)) { - return super.equals(obj); - } - meerkat.protobuf.Crypto.Signature other = (meerkat.protobuf.Crypto.Signature) obj; - - boolean result = true; - result = result && type_ == other.type_; - result = result && getData() - .equals(other.getData()); - result = result && getSignerId() - .equals(other.getSignerId()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (37 * hash) + SIGNER_ID_FIELD_NUMBER; - hash = (53 * hash) + getSignerId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.Crypto.Signature parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Crypto.Signature parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Crypto.Signature parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Crypto.Signature parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Crypto.Signature parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Crypto.Signature parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Crypto.Signature parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.Crypto.Signature parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Crypto.Signature parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Crypto.Signature parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.Crypto.Signature prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A digital signature
-     * 
- * - * Protobuf type {@code meerkat.Signature} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:meerkat.Signature) - meerkat.protobuf.Crypto.SignatureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Crypto.internal_static_meerkat_Signature_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Crypto.internal_static_meerkat_Signature_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Crypto.Signature.class, meerkat.protobuf.Crypto.Signature.Builder.class); - } - - // Construct using meerkat.protobuf.Crypto.Signature.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - type_ = 0; - - data_ = com.google.protobuf.ByteString.EMPTY; - - signerId_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.Crypto.internal_static_meerkat_Signature_descriptor; - } - - public meerkat.protobuf.Crypto.Signature getDefaultInstanceForType() { - return meerkat.protobuf.Crypto.Signature.getDefaultInstance(); - } - - public meerkat.protobuf.Crypto.Signature build() { - meerkat.protobuf.Crypto.Signature result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.Crypto.Signature buildPartial() { - meerkat.protobuf.Crypto.Signature result = new meerkat.protobuf.Crypto.Signature(this); - result.type_ = type_; - result.data_ = data_; - result.signerId_ = signerId_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.Crypto.Signature) { - return mergeFrom((meerkat.protobuf.Crypto.Signature)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.Crypto.Signature other) { - if (other == meerkat.protobuf.Crypto.Signature.getDefaultInstance()) return this; - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - if (other.getSignerId() != com.google.protobuf.ByteString.EMPTY) { - setSignerId(other.getSignerId()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.Crypto.Signature parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.Crypto.Signature) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int type_ = 0; - /** - * .meerkat.SignatureType type = 1; - */ - public int getTypeValue() { - return type_; - } - /** - * .meerkat.SignatureType type = 1; - */ - public Builder setTypeValue(int value) { - type_ = value; - onChanged(); - return this; - } - /** - * .meerkat.SignatureType type = 1; - */ - public meerkat.protobuf.Crypto.SignatureType getType() { - meerkat.protobuf.Crypto.SignatureType result = meerkat.protobuf.Crypto.SignatureType.valueOf(type_); - return result == null ? meerkat.protobuf.Crypto.SignatureType.UNRECOGNIZED : result; - } - /** - * .meerkat.SignatureType type = 1; - */ - public Builder setType(meerkat.protobuf.Crypto.SignatureType value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .meerkat.SignatureType type = 1; - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       * Data encoding depends on type; default is DER-encoded
-       * 
- * - * bytes data = 2; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - *
-       * Data encoding depends on type; default is DER-encoded
-       * 
- * - * bytes data = 2; - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - *
-       * Data encoding depends on type; default is DER-encoded
-       * 
- * - * bytes data = 2; - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString signerId_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       * ID of the signer (should be the fingerprint of the signature verification key)
-       * 
- * - * bytes signer_id = 3; - */ - public com.google.protobuf.ByteString getSignerId() { - return signerId_; - } - /** - *
-       * ID of the signer (should be the fingerprint of the signature verification key)
-       * 
- * - * bytes signer_id = 3; - */ - public Builder setSignerId(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - signerId_ = value; - onChanged(); - return this; - } - /** - *
-       * ID of the signer (should be the fingerprint of the signature verification key)
-       * 
- * - * bytes signer_id = 3; - */ - public Builder clearSignerId() { - - signerId_ = getDefaultInstance().getSignerId(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.Signature) - } - - // @@protoc_insertion_point(class_scope:meerkat.Signature) - private static final meerkat.protobuf.Crypto.Signature DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.Crypto.Signature(); - } - - public static meerkat.protobuf.Crypto.Signature getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public Signature parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Signature(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public meerkat.protobuf.Crypto.Signature getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SignatureVerificationKeyOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.SignatureVerificationKey) - com.google.protobuf.MessageOrBuilder { - - /** - * .meerkat.SignatureType type = 1; - */ - int getTypeValue(); - /** - * .meerkat.SignatureType type = 1; - */ - meerkat.protobuf.Crypto.SignatureType getType(); - - /** - *
-     * Data encoding depends on type; default is x509 DER-encoded
-     * 
- * - * bytes data = 2; - */ - com.google.protobuf.ByteString getData(); - } - /** - *
-   * Public key used to verify signatures
-   * 
- * - * Protobuf type {@code meerkat.SignatureVerificationKey} - */ - public static final class SignatureVerificationKey extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.SignatureVerificationKey) - SignatureVerificationKeyOrBuilder { - // Use SignatureVerificationKey.newBuilder() to construct. - private SignatureVerificationKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SignatureVerificationKey() { - type_ = 0; - data_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private SignatureVerificationKey( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 18: { - - data_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Crypto.internal_static_meerkat_SignatureVerificationKey_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Crypto.internal_static_meerkat_SignatureVerificationKey_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Crypto.SignatureVerificationKey.class, meerkat.protobuf.Crypto.SignatureVerificationKey.Builder.class); - } - - public static final int TYPE_FIELD_NUMBER = 1; - private int type_; - /** - * .meerkat.SignatureType type = 1; - */ - public int getTypeValue() { - return type_; - } - /** - * .meerkat.SignatureType type = 1; - */ - public meerkat.protobuf.Crypto.SignatureType getType() { - meerkat.protobuf.Crypto.SignatureType result = meerkat.protobuf.Crypto.SignatureType.valueOf(type_); - return result == null ? meerkat.protobuf.Crypto.SignatureType.UNRECOGNIZED : result; - } - - public static final int DATA_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString data_; - /** - *
-     * Data encoding depends on type; default is x509 DER-encoded
-     * 
- * - * bytes data = 2; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (type_ != meerkat.protobuf.Crypto.SignatureType.ECDSA.getNumber()) { - output.writeEnum(1, type_); - } - if (!data_.isEmpty()) { - output.writeBytes(2, data_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (type_ != meerkat.protobuf.Crypto.SignatureType.ECDSA.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); - } - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, data_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.Crypto.SignatureVerificationKey)) { - return super.equals(obj); - } - meerkat.protobuf.Crypto.SignatureVerificationKey other = (meerkat.protobuf.Crypto.SignatureVerificationKey) obj; - - boolean result = true; - result = result && type_ == other.type_; - result = result && getData() - .equals(other.getData()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.Crypto.SignatureVerificationKey parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Crypto.SignatureVerificationKey parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Crypto.SignatureVerificationKey parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Crypto.SignatureVerificationKey parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Crypto.SignatureVerificationKey parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Crypto.SignatureVerificationKey parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Crypto.SignatureVerificationKey parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.Crypto.SignatureVerificationKey parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Crypto.SignatureVerificationKey parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Crypto.SignatureVerificationKey parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.Crypto.SignatureVerificationKey prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Public key used to verify signatures
-     * 
- * - * Protobuf type {@code meerkat.SignatureVerificationKey} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:meerkat.SignatureVerificationKey) - meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Crypto.internal_static_meerkat_SignatureVerificationKey_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Crypto.internal_static_meerkat_SignatureVerificationKey_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Crypto.SignatureVerificationKey.class, meerkat.protobuf.Crypto.SignatureVerificationKey.Builder.class); - } - - // Construct using meerkat.protobuf.Crypto.SignatureVerificationKey.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - type_ = 0; - - data_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.Crypto.internal_static_meerkat_SignatureVerificationKey_descriptor; - } - - public meerkat.protobuf.Crypto.SignatureVerificationKey getDefaultInstanceForType() { - return meerkat.protobuf.Crypto.SignatureVerificationKey.getDefaultInstance(); - } - - public meerkat.protobuf.Crypto.SignatureVerificationKey build() { - meerkat.protobuf.Crypto.SignatureVerificationKey result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.Crypto.SignatureVerificationKey buildPartial() { - meerkat.protobuf.Crypto.SignatureVerificationKey result = new meerkat.protobuf.Crypto.SignatureVerificationKey(this); - result.type_ = type_; - result.data_ = data_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.Crypto.SignatureVerificationKey) { - return mergeFrom((meerkat.protobuf.Crypto.SignatureVerificationKey)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.Crypto.SignatureVerificationKey other) { - if (other == meerkat.protobuf.Crypto.SignatureVerificationKey.getDefaultInstance()) return this; - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.Crypto.SignatureVerificationKey parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.Crypto.SignatureVerificationKey) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int type_ = 0; - /** - * .meerkat.SignatureType type = 1; - */ - public int getTypeValue() { - return type_; - } - /** - * .meerkat.SignatureType type = 1; - */ - public Builder setTypeValue(int value) { - type_ = value; - onChanged(); - return this; - } - /** - * .meerkat.SignatureType type = 1; - */ - public meerkat.protobuf.Crypto.SignatureType getType() { - meerkat.protobuf.Crypto.SignatureType result = meerkat.protobuf.Crypto.SignatureType.valueOf(type_); - return result == null ? meerkat.protobuf.Crypto.SignatureType.UNRECOGNIZED : result; - } - /** - * .meerkat.SignatureType type = 1; - */ - public Builder setType(meerkat.protobuf.Crypto.SignatureType value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .meerkat.SignatureType type = 1; - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       * Data encoding depends on type; default is x509 DER-encoded
-       * 
- * - * bytes data = 2; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - *
-       * Data encoding depends on type; default is x509 DER-encoded
-       * 
- * - * bytes data = 2; - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - *
-       * Data encoding depends on type; default is x509 DER-encoded
-       * 
- * - * bytes data = 2; - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.SignatureVerificationKey) - } - - // @@protoc_insertion_point(class_scope:meerkat.SignatureVerificationKey) - private static final meerkat.protobuf.Crypto.SignatureVerificationKey DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.Crypto.SignatureVerificationKey(); - } - - public static meerkat.protobuf.Crypto.SignatureVerificationKey getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public SignatureVerificationKey parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SignatureVerificationKey(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public meerkat.protobuf.Crypto.SignatureVerificationKey getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface EncryptionPublicKeyOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.EncryptionPublicKey) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes data = 1; - */ - com.google.protobuf.ByteString getData(); - } - /** - *
-   * A public encryption key
-   * 
- * - * Protobuf type {@code meerkat.EncryptionPublicKey} - */ - public static final class EncryptionPublicKey extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.EncryptionPublicKey) - EncryptionPublicKeyOrBuilder { - // Use EncryptionPublicKey.newBuilder() to construct. - private EncryptionPublicKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EncryptionPublicKey() { - data_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private EncryptionPublicKey( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - - data_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Crypto.internal_static_meerkat_EncryptionPublicKey_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Crypto.internal_static_meerkat_EncryptionPublicKey_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Crypto.EncryptionPublicKey.class, meerkat.protobuf.Crypto.EncryptionPublicKey.Builder.class); - } - - public static final int DATA_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString data_; - /** - * bytes data = 1; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!data_.isEmpty()) { - output.writeBytes(1, data_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, data_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.Crypto.EncryptionPublicKey)) { - return super.equals(obj); - } - meerkat.protobuf.Crypto.EncryptionPublicKey other = (meerkat.protobuf.Crypto.EncryptionPublicKey) obj; - - boolean result = true; - result = result && getData() - .equals(other.getData()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.Crypto.EncryptionPublicKey parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Crypto.EncryptionPublicKey parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Crypto.EncryptionPublicKey parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Crypto.EncryptionPublicKey parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Crypto.EncryptionPublicKey parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Crypto.EncryptionPublicKey parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Crypto.EncryptionPublicKey parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.Crypto.EncryptionPublicKey parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Crypto.EncryptionPublicKey parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Crypto.EncryptionPublicKey parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.Crypto.EncryptionPublicKey prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A public encryption key
-     * 
- * - * Protobuf type {@code meerkat.EncryptionPublicKey} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:meerkat.EncryptionPublicKey) - meerkat.protobuf.Crypto.EncryptionPublicKeyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Crypto.internal_static_meerkat_EncryptionPublicKey_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Crypto.internal_static_meerkat_EncryptionPublicKey_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Crypto.EncryptionPublicKey.class, meerkat.protobuf.Crypto.EncryptionPublicKey.Builder.class); - } - - // Construct using meerkat.protobuf.Crypto.EncryptionPublicKey.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - data_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.Crypto.internal_static_meerkat_EncryptionPublicKey_descriptor; - } - - public meerkat.protobuf.Crypto.EncryptionPublicKey getDefaultInstanceForType() { - return meerkat.protobuf.Crypto.EncryptionPublicKey.getDefaultInstance(); - } - - public meerkat.protobuf.Crypto.EncryptionPublicKey build() { - meerkat.protobuf.Crypto.EncryptionPublicKey result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.Crypto.EncryptionPublicKey buildPartial() { - meerkat.protobuf.Crypto.EncryptionPublicKey result = new meerkat.protobuf.Crypto.EncryptionPublicKey(this); - result.data_ = data_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.Crypto.EncryptionPublicKey) { - return mergeFrom((meerkat.protobuf.Crypto.EncryptionPublicKey)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.Crypto.EncryptionPublicKey other) { - if (other == meerkat.protobuf.Crypto.EncryptionPublicKey.getDefaultInstance()) return this; - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.Crypto.EncryptionPublicKey parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.Crypto.EncryptionPublicKey) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes data = 1; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - * bytes data = 1; - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - * bytes data = 1; - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.EncryptionPublicKey) - } - - // @@protoc_insertion_point(class_scope:meerkat.EncryptionPublicKey) - private static final meerkat.protobuf.Crypto.EncryptionPublicKey DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.Crypto.EncryptionPublicKey(); - } - - public static meerkat.protobuf.Crypto.EncryptionPublicKey getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public EncryptionPublicKey parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EncryptionPublicKey(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public meerkat.protobuf.Crypto.EncryptionPublicKey getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface EncryptionRandomnessOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.EncryptionRandomness) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes data = 1; - */ - com.google.protobuf.ByteString getData(); - } - /** - *
-   * Randomness used for encryption
-   * 
- * - * Protobuf type {@code meerkat.EncryptionRandomness} - */ - public static final class EncryptionRandomness extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.EncryptionRandomness) - EncryptionRandomnessOrBuilder { - // Use EncryptionRandomness.newBuilder() to construct. - private EncryptionRandomness(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EncryptionRandomness() { - data_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private EncryptionRandomness( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - - data_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Crypto.internal_static_meerkat_EncryptionRandomness_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Crypto.internal_static_meerkat_EncryptionRandomness_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Crypto.EncryptionRandomness.class, meerkat.protobuf.Crypto.EncryptionRandomness.Builder.class); - } - - public static final int DATA_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString data_; - /** - * bytes data = 1; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!data_.isEmpty()) { - output.writeBytes(1, data_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, data_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.Crypto.EncryptionRandomness)) { - return super.equals(obj); - } - meerkat.protobuf.Crypto.EncryptionRandomness other = (meerkat.protobuf.Crypto.EncryptionRandomness) obj; - - boolean result = true; - result = result && getData() - .equals(other.getData()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.Crypto.EncryptionRandomness parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Crypto.EncryptionRandomness parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Crypto.EncryptionRandomness parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Crypto.EncryptionRandomness parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Crypto.EncryptionRandomness parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Crypto.EncryptionRandomness parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Crypto.EncryptionRandomness parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.Crypto.EncryptionRandomness parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Crypto.EncryptionRandomness parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Crypto.EncryptionRandomness parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.Crypto.EncryptionRandomness prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Randomness used for encryption
-     * 
- * - * Protobuf type {@code meerkat.EncryptionRandomness} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:meerkat.EncryptionRandomness) - meerkat.protobuf.Crypto.EncryptionRandomnessOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Crypto.internal_static_meerkat_EncryptionRandomness_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Crypto.internal_static_meerkat_EncryptionRandomness_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Crypto.EncryptionRandomness.class, meerkat.protobuf.Crypto.EncryptionRandomness.Builder.class); - } - - // Construct using meerkat.protobuf.Crypto.EncryptionRandomness.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - data_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.Crypto.internal_static_meerkat_EncryptionRandomness_descriptor; - } - - public meerkat.protobuf.Crypto.EncryptionRandomness getDefaultInstanceForType() { - return meerkat.protobuf.Crypto.EncryptionRandomness.getDefaultInstance(); - } - - public meerkat.protobuf.Crypto.EncryptionRandomness build() { - meerkat.protobuf.Crypto.EncryptionRandomness result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.Crypto.EncryptionRandomness buildPartial() { - meerkat.protobuf.Crypto.EncryptionRandomness result = new meerkat.protobuf.Crypto.EncryptionRandomness(this); - result.data_ = data_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.Crypto.EncryptionRandomness) { - return mergeFrom((meerkat.protobuf.Crypto.EncryptionRandomness)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.Crypto.EncryptionRandomness other) { - if (other == meerkat.protobuf.Crypto.EncryptionRandomness.getDefaultInstance()) return this; - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.Crypto.EncryptionRandomness parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.Crypto.EncryptionRandomness) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes data = 1; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - * bytes data = 1; - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - * bytes data = 1; - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.EncryptionRandomness) - } - - // @@protoc_insertion_point(class_scope:meerkat.EncryptionRandomness) - private static final meerkat.protobuf.Crypto.EncryptionRandomness DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.Crypto.EncryptionRandomness(); - } - - public static meerkat.protobuf.Crypto.EncryptionRandomness getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public EncryptionRandomness parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EncryptionRandomness(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public meerkat.protobuf.Crypto.EncryptionRandomness getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface RandomnessGenerationProofOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.RandomnessGenerationProof) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes data = 1; - */ - com.google.protobuf.ByteString getData(); - } - /** - *
-   * A proof that randomness is correctly generated
-   * 
- * - * Protobuf type {@code meerkat.RandomnessGenerationProof} - */ - public static final class RandomnessGenerationProof extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.RandomnessGenerationProof) - RandomnessGenerationProofOrBuilder { - // Use RandomnessGenerationProof.newBuilder() to construct. - private RandomnessGenerationProof(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RandomnessGenerationProof() { - data_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private RandomnessGenerationProof( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - - data_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Crypto.internal_static_meerkat_RandomnessGenerationProof_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Crypto.internal_static_meerkat_RandomnessGenerationProof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Crypto.RandomnessGenerationProof.class, meerkat.protobuf.Crypto.RandomnessGenerationProof.Builder.class); - } - - public static final int DATA_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString data_; - /** - * bytes data = 1; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!data_.isEmpty()) { - output.writeBytes(1, data_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, data_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.Crypto.RandomnessGenerationProof)) { - return super.equals(obj); - } - meerkat.protobuf.Crypto.RandomnessGenerationProof other = (meerkat.protobuf.Crypto.RandomnessGenerationProof) obj; - - boolean result = true; - result = result && getData() - .equals(other.getData()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.Crypto.RandomnessGenerationProof parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Crypto.RandomnessGenerationProof parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Crypto.RandomnessGenerationProof parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Crypto.RandomnessGenerationProof parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Crypto.RandomnessGenerationProof parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Crypto.RandomnessGenerationProof parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Crypto.RandomnessGenerationProof parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.Crypto.RandomnessGenerationProof parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Crypto.RandomnessGenerationProof parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Crypto.RandomnessGenerationProof parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.Crypto.RandomnessGenerationProof prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A proof that randomness is correctly generated
-     * 
- * - * Protobuf type {@code meerkat.RandomnessGenerationProof} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:meerkat.RandomnessGenerationProof) - meerkat.protobuf.Crypto.RandomnessGenerationProofOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Crypto.internal_static_meerkat_RandomnessGenerationProof_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Crypto.internal_static_meerkat_RandomnessGenerationProof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Crypto.RandomnessGenerationProof.class, meerkat.protobuf.Crypto.RandomnessGenerationProof.Builder.class); - } - - // Construct using meerkat.protobuf.Crypto.RandomnessGenerationProof.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - data_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.Crypto.internal_static_meerkat_RandomnessGenerationProof_descriptor; - } - - public meerkat.protobuf.Crypto.RandomnessGenerationProof getDefaultInstanceForType() { - return meerkat.protobuf.Crypto.RandomnessGenerationProof.getDefaultInstance(); - } - - public meerkat.protobuf.Crypto.RandomnessGenerationProof build() { - meerkat.protobuf.Crypto.RandomnessGenerationProof result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.Crypto.RandomnessGenerationProof buildPartial() { - meerkat.protobuf.Crypto.RandomnessGenerationProof result = new meerkat.protobuf.Crypto.RandomnessGenerationProof(this); - result.data_ = data_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.Crypto.RandomnessGenerationProof) { - return mergeFrom((meerkat.protobuf.Crypto.RandomnessGenerationProof)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.Crypto.RandomnessGenerationProof other) { - if (other == meerkat.protobuf.Crypto.RandomnessGenerationProof.getDefaultInstance()) return this; - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.Crypto.RandomnessGenerationProof parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.Crypto.RandomnessGenerationProof) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes data = 1; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - * bytes data = 1; - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - * bytes data = 1; - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.RandomnessGenerationProof) - } - - // @@protoc_insertion_point(class_scope:meerkat.RandomnessGenerationProof) - private static final meerkat.protobuf.Crypto.RandomnessGenerationProof DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.Crypto.RandomnessGenerationProof(); - } - - public static meerkat.protobuf.Crypto.RandomnessGenerationProof getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public RandomnessGenerationProof parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RandomnessGenerationProof(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public meerkat.protobuf.Crypto.RandomnessGenerationProof getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface RerandomizableEncryptedMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.RerandomizableEncryptedMessage) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes data = 1; - */ - com.google.protobuf.ByteString getData(); - } - /** - *
-   * An encrypted message (rerandomizable)
-   * 
- * - * Protobuf type {@code meerkat.RerandomizableEncryptedMessage} - */ - public static final class RerandomizableEncryptedMessage extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.RerandomizableEncryptedMessage) - RerandomizableEncryptedMessageOrBuilder { - // Use RerandomizableEncryptedMessage.newBuilder() to construct. - private RerandomizableEncryptedMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RerandomizableEncryptedMessage() { - data_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private RerandomizableEncryptedMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - - data_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Crypto.internal_static_meerkat_RerandomizableEncryptedMessage_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Crypto.internal_static_meerkat_RerandomizableEncryptedMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Crypto.RerandomizableEncryptedMessage.class, meerkat.protobuf.Crypto.RerandomizableEncryptedMessage.Builder.class); - } - - public static final int DATA_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString data_; - /** - * bytes data = 1; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!data_.isEmpty()) { - output.writeBytes(1, data_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, data_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.Crypto.RerandomizableEncryptedMessage)) { - return super.equals(obj); - } - meerkat.protobuf.Crypto.RerandomizableEncryptedMessage other = (meerkat.protobuf.Crypto.RerandomizableEncryptedMessage) obj; - - boolean result = true; - result = result && getData() - .equals(other.getData()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.Crypto.RerandomizableEncryptedMessage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Crypto.RerandomizableEncryptedMessage parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Crypto.RerandomizableEncryptedMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Crypto.RerandomizableEncryptedMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Crypto.RerandomizableEncryptedMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Crypto.RerandomizableEncryptedMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Crypto.RerandomizableEncryptedMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.Crypto.RerandomizableEncryptedMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Crypto.RerandomizableEncryptedMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Crypto.RerandomizableEncryptedMessage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.Crypto.RerandomizableEncryptedMessage prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * An encrypted message (rerandomizable)
-     * 
- * - * Protobuf type {@code meerkat.RerandomizableEncryptedMessage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:meerkat.RerandomizableEncryptedMessage) - meerkat.protobuf.Crypto.RerandomizableEncryptedMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Crypto.internal_static_meerkat_RerandomizableEncryptedMessage_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Crypto.internal_static_meerkat_RerandomizableEncryptedMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Crypto.RerandomizableEncryptedMessage.class, meerkat.protobuf.Crypto.RerandomizableEncryptedMessage.Builder.class); - } - - // Construct using meerkat.protobuf.Crypto.RerandomizableEncryptedMessage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - data_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.Crypto.internal_static_meerkat_RerandomizableEncryptedMessage_descriptor; - } - - public meerkat.protobuf.Crypto.RerandomizableEncryptedMessage getDefaultInstanceForType() { - return meerkat.protobuf.Crypto.RerandomizableEncryptedMessage.getDefaultInstance(); - } - - public meerkat.protobuf.Crypto.RerandomizableEncryptedMessage build() { - meerkat.protobuf.Crypto.RerandomizableEncryptedMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.Crypto.RerandomizableEncryptedMessage buildPartial() { - meerkat.protobuf.Crypto.RerandomizableEncryptedMessage result = new meerkat.protobuf.Crypto.RerandomizableEncryptedMessage(this); - result.data_ = data_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.Crypto.RerandomizableEncryptedMessage) { - return mergeFrom((meerkat.protobuf.Crypto.RerandomizableEncryptedMessage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.Crypto.RerandomizableEncryptedMessage other) { - if (other == meerkat.protobuf.Crypto.RerandomizableEncryptedMessage.getDefaultInstance()) return this; - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.Crypto.RerandomizableEncryptedMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.Crypto.RerandomizableEncryptedMessage) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes data = 1; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - * bytes data = 1; - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - * bytes data = 1; - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.RerandomizableEncryptedMessage) - } - - // @@protoc_insertion_point(class_scope:meerkat.RerandomizableEncryptedMessage) - private static final meerkat.protobuf.Crypto.RerandomizableEncryptedMessage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.Crypto.RerandomizableEncryptedMessage(); - } - - public static meerkat.protobuf.Crypto.RerandomizableEncryptedMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public RerandomizableEncryptedMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RerandomizableEncryptedMessage(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public meerkat.protobuf.Crypto.RerandomizableEncryptedMessage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_BigInteger_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_BigInteger_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_Signature_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_Signature_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_SignatureVerificationKey_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_SignatureVerificationKey_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_EncryptionPublicKey_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_EncryptionPublicKey_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_EncryptionRandomness_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_EncryptionRandomness_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_RandomnessGenerationProof_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_RandomnessGenerationProof_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_RerandomizableEncryptedMessage_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_RerandomizableEncryptedMessage_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024meerkat/crypto.proto\022\007meerkat\"\032\n\nBigIn" + - "teger\022\014\n\004data\030\001 \001(\014\"R\n\tSignature\022$\n\004type" + - "\030\001 \001(\0162\026.meerkat.SignatureType\022\014\n\004data\030\002" + - " \001(\014\022\021\n\tsigner_id\030\003 \001(\014\"N\n\030SignatureVeri" + - "ficationKey\022$\n\004type\030\001 \001(\0162\026.meerkat.Sign" + - "atureType\022\014\n\004data\030\002 \001(\014\"#\n\023EncryptionPub" + - "licKey\022\014\n\004data\030\001 \001(\014\"$\n\024EncryptionRandom" + - "ness\022\014\n\004data\030\001 \001(\014\")\n\031RandomnessGenerati" + - "onProof\022\014\n\004data\030\001 \001(\014\".\n\036RerandomizableE" + - "ncryptedMessage\022\014\n\004data\030\001 \001(\014*#\n\rSignatu", - "reType\022\t\n\005ECDSA\020\000\022\007\n\003DSA\020\001B\022\n\020meerkat.pr" + - "otobufb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_meerkat_BigInteger_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_meerkat_BigInteger_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_BigInteger_descriptor, - new java.lang.String[] { "Data", }); - internal_static_meerkat_Signature_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_meerkat_Signature_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_Signature_descriptor, - new java.lang.String[] { "Type", "Data", "SignerId", }); - internal_static_meerkat_SignatureVerificationKey_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_meerkat_SignatureVerificationKey_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_SignatureVerificationKey_descriptor, - new java.lang.String[] { "Type", "Data", }); - internal_static_meerkat_EncryptionPublicKey_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_meerkat_EncryptionPublicKey_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_EncryptionPublicKey_descriptor, - new java.lang.String[] { "Data", }); - internal_static_meerkat_EncryptionRandomness_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_meerkat_EncryptionRandomness_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_EncryptionRandomness_descriptor, - new java.lang.String[] { "Data", }); - internal_static_meerkat_RandomnessGenerationProof_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_meerkat_RandomnessGenerationProof_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_RandomnessGenerationProof_descriptor, - new java.lang.String[] { "Data", }); - internal_static_meerkat_RerandomizableEncryptedMessage_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_meerkat_RerandomizableEncryptedMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_RerandomizableEncryptedMessage_descriptor, - new java.lang.String[] { "Data", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/android-scanner/src/main/java/meerkat/protobuf/Mixing.java b/android-scanner/src/main/java/meerkat/protobuf/Mixing.java deleted file mode 100644 index f16bab0..0000000 --- a/android-scanner/src/main/java/meerkat/protobuf/Mixing.java +++ /dev/null @@ -1,5084 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: meerkat/mixing.proto - -package meerkat.protobuf; - -public final class Mixing { - private Mixing() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PlaintextOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.Plaintext) - com.google.protobuf.MessageOrBuilder { - - /** - * optional bytes data = 1; - */ - com.google.protobuf.ByteString getData(); - } - /** - * Protobuf type {@code meerkat.Plaintext} - */ - public static final class Plaintext extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.Plaintext) - PlaintextOrBuilder { - // Use Plaintext.newBuilder() to construct. - private Plaintext(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Plaintext() { - data_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private Plaintext( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - - data_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Mixing.internal_static_meerkat_Plaintext_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Mixing.internal_static_meerkat_Plaintext_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Mixing.Plaintext.class, meerkat.protobuf.Mixing.Plaintext.Builder.class); - } - - public static final int DATA_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString data_; - /** - * optional bytes data = 1; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!data_.isEmpty()) { - output.writeBytes(1, data_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, data_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.Mixing.Plaintext)) { - return super.equals(obj); - } - meerkat.protobuf.Mixing.Plaintext other = (meerkat.protobuf.Mixing.Plaintext) obj; - - boolean result = true; - result = result && getData() - .equals(other.getData()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.Mixing.Plaintext parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Mixing.Plaintext parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Mixing.Plaintext parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Mixing.Plaintext parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Mixing.Plaintext parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Mixing.Plaintext parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Mixing.Plaintext parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.Mixing.Plaintext parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Mixing.Plaintext parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Mixing.Plaintext parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.Mixing.Plaintext prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code meerkat.Plaintext} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:meerkat.Plaintext) - meerkat.protobuf.Mixing.PlaintextOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Mixing.internal_static_meerkat_Plaintext_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Mixing.internal_static_meerkat_Plaintext_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Mixing.Plaintext.class, meerkat.protobuf.Mixing.Plaintext.Builder.class); - } - - // Construct using meerkat.protobuf.Mixing.Plaintext.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - data_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.Mixing.internal_static_meerkat_Plaintext_descriptor; - } - - public meerkat.protobuf.Mixing.Plaintext getDefaultInstanceForType() { - return meerkat.protobuf.Mixing.Plaintext.getDefaultInstance(); - } - - public meerkat.protobuf.Mixing.Plaintext build() { - meerkat.protobuf.Mixing.Plaintext result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.Mixing.Plaintext buildPartial() { - meerkat.protobuf.Mixing.Plaintext result = new meerkat.protobuf.Mixing.Plaintext(this); - result.data_ = data_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.Mixing.Plaintext) { - return mergeFrom((meerkat.protobuf.Mixing.Plaintext)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.Mixing.Plaintext other) { - if (other == meerkat.protobuf.Mixing.Plaintext.getDefaultInstance()) return this; - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.Mixing.Plaintext parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.Mixing.Plaintext) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes data = 1; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - * optional bytes data = 1; - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - * optional bytes data = 1; - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.Plaintext) - } - - // @@protoc_insertion_point(class_scope:meerkat.Plaintext) - private static final meerkat.protobuf.Mixing.Plaintext DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.Mixing.Plaintext(); - } - - public static meerkat.protobuf.Mixing.Plaintext getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser<Plaintext>() { - public Plaintext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Plaintext(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<Plaintext> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<Plaintext> getParserForType() { - return PARSER; - } - - public meerkat.protobuf.Mixing.Plaintext getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ZeroKnowledgeProofOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.ZeroKnowledgeProof) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof first = 1;</code> - */ - boolean hasFirst(); - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof first = 1;</code> - */ - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof getFirst(); - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof first = 1;</code> - */ - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder getFirstOrBuilder(); - - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof second = 2;</code> - */ - boolean hasSecond(); - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof second = 2;</code> - */ - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof getSecond(); - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof second = 2;</code> - */ - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder getSecondOrBuilder(); - - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof third = 3;</code> - */ - boolean hasThird(); - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof third = 3;</code> - */ - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof getThird(); - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof third = 3;</code> - */ - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder getThirdOrBuilder(); - - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof fourth = 4;</code> - */ - boolean hasFourth(); - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof fourth = 4;</code> - */ - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof getFourth(); - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof fourth = 4;</code> - */ - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder getFourthOrBuilder(); - - /** - * <code>optional .meerkat.ZeroKnowledgeProof.Location location = 5;</code> - */ - boolean hasLocation(); - /** - * <code>optional .meerkat.ZeroKnowledgeProof.Location location = 5;</code> - */ - meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location getLocation(); - /** - * <code>optional .meerkat.ZeroKnowledgeProof.Location location = 5;</code> - */ - meerkat.protobuf.Mixing.ZeroKnowledgeProof.LocationOrBuilder getLocationOrBuilder(); - } - /** - * Protobuf type {@code meerkat.ZeroKnowledgeProof} - */ - public static final class ZeroKnowledgeProof extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.ZeroKnowledgeProof) - ZeroKnowledgeProofOrBuilder { - // Use ZeroKnowledgeProof.newBuilder() to construct. - private ZeroKnowledgeProof(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ZeroKnowledgeProof() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private ZeroKnowledgeProof( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder subBuilder = null; - if (first_ != null) { - subBuilder = first_.toBuilder(); - } - first_ = input.readMessage(meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(first_); - first_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder subBuilder = null; - if (second_ != null) { - subBuilder = second_.toBuilder(); - } - second_ = input.readMessage(meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(second_); - second_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder subBuilder = null; - if (third_ != null) { - subBuilder = third_.toBuilder(); - } - third_ = input.readMessage(meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(third_); - third_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder subBuilder = null; - if (fourth_ != null) { - subBuilder = fourth_.toBuilder(); - } - fourth_ = input.readMessage(meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fourth_); - fourth_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location.Builder subBuilder = null; - if (location_ != null) { - subBuilder = location_.toBuilder(); - } - location_ = input.readMessage(meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(location_); - location_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Mixing.internal_static_meerkat_ZeroKnowledgeProof_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Mixing.internal_static_meerkat_ZeroKnowledgeProof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Mixing.ZeroKnowledgeProof.class, meerkat.protobuf.Mixing.ZeroKnowledgeProof.Builder.class); - } - - public interface OrProofOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.ZeroKnowledgeProof.OrProof) - com.google.protobuf.MessageOrBuilder { - - /** - * <pre> - *input : g1,h1, g2, h2, g1Tag, h1Tag, g2Tag, h2Tag; - * </pre> - * - * <code>optional bytes g1 = 1;</code> - */ - com.google.protobuf.ByteString getG1(); - - /** - * <code>optional bytes h1 = 2;</code> - */ - com.google.protobuf.ByteString getH1(); - - /** - * <code>optional bytes g2 = 3;</code> - */ - com.google.protobuf.ByteString getG2(); - - /** - * <code>optional bytes h2 = 4;</code> - */ - com.google.protobuf.ByteString getH2(); - - /** - * <code>optional bytes g1Tag = 5;</code> - */ - com.google.protobuf.ByteString getG1Tag(); - - /** - * <code>optional bytes h1Tag = 6;</code> - */ - com.google.protobuf.ByteString getH1Tag(); - - /** - * <code>optional bytes g2Tag = 7;</code> - */ - com.google.protobuf.ByteString getG2Tag(); - - /** - * <code>optional bytes h2Tag = 8;</code> - */ - com.google.protobuf.ByteString getH2Tag(); - - /** - * <pre> - *calc: u, v, uTag, vTag; - * </pre> - * - * <code>optional bytes u = 9;</code> - */ - com.google.protobuf.ByteString getU(); - - /** - * <code>optional bytes v = 10;</code> - */ - com.google.protobuf.ByteString getV(); - - /** - * <code>optional bytes uTag = 11;</code> - */ - com.google.protobuf.ByteString getUTag(); - - /** - * <code>optional bytes vTag = 12;</code> - */ - com.google.protobuf.ByteString getVTag(); - - /** - * <pre> - *generated: c1,c2,z,zTag - * </pre> - * - * <code>optional bytes c1 = 13;</code> - */ - com.google.protobuf.ByteString getC1(); - - /** - * <code>optional bytes c2 = 14;</code> - */ - com.google.protobuf.ByteString getC2(); - - /** - * <code>optional bytes z = 15;</code> - */ - com.google.protobuf.ByteString getZ(); - - /** - * <code>optional bytes zTag = 16;</code> - */ - com.google.protobuf.ByteString getZTag(); - } - /** - * Protobuf type {@code meerkat.ZeroKnowledgeProof.OrProof} - */ - public static final class OrProof extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.ZeroKnowledgeProof.OrProof) - OrProofOrBuilder { - // Use OrProof.newBuilder() to construct. - private OrProof(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private OrProof() { - g1_ = com.google.protobuf.ByteString.EMPTY; - h1_ = com.google.protobuf.ByteString.EMPTY; - g2_ = com.google.protobuf.ByteString.EMPTY; - h2_ = com.google.protobuf.ByteString.EMPTY; - g1Tag_ = com.google.protobuf.ByteString.EMPTY; - h1Tag_ = com.google.protobuf.ByteString.EMPTY; - g2Tag_ = com.google.protobuf.ByteString.EMPTY; - h2Tag_ = com.google.protobuf.ByteString.EMPTY; - u_ = com.google.protobuf.ByteString.EMPTY; - v_ = com.google.protobuf.ByteString.EMPTY; - uTag_ = com.google.protobuf.ByteString.EMPTY; - vTag_ = com.google.protobuf.ByteString.EMPTY; - c1_ = com.google.protobuf.ByteString.EMPTY; - c2_ = com.google.protobuf.ByteString.EMPTY; - z_ = com.google.protobuf.ByteString.EMPTY; - zTag_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private OrProof( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - - g1_ = input.readBytes(); - break; - } - case 18: { - - h1_ = input.readBytes(); - break; - } - case 26: { - - g2_ = input.readBytes(); - break; - } - case 34: { - - h2_ = input.readBytes(); - break; - } - case 42: { - - g1Tag_ = input.readBytes(); - break; - } - case 50: { - - h1Tag_ = input.readBytes(); - break; - } - case 58: { - - g2Tag_ = input.readBytes(); - break; - } - case 66: { - - h2Tag_ = input.readBytes(); - break; - } - case 74: { - - u_ = input.readBytes(); - break; - } - case 82: { - - v_ = input.readBytes(); - break; - } - case 90: { - - uTag_ = input.readBytes(); - break; - } - case 98: { - - vTag_ = input.readBytes(); - break; - } - case 106: { - - c1_ = input.readBytes(); - break; - } - case 114: { - - c2_ = input.readBytes(); - break; - } - case 122: { - - z_ = input.readBytes(); - break; - } - case 130: { - - zTag_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Mixing.internal_static_meerkat_ZeroKnowledgeProof_OrProof_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Mixing.internal_static_meerkat_ZeroKnowledgeProof_OrProof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.class, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder.class); - } - - public interface ForRandomOracleOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.ZeroKnowledgeProof.OrProof.ForRandomOracle) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>optional bytes g1 = 1;</code> - */ - com.google.protobuf.ByteString getG1(); - - /** - * <code>optional bytes h1 = 2;</code> - */ - com.google.protobuf.ByteString getH1(); - - /** - * <code>optional bytes g2 = 3;</code> - */ - com.google.protobuf.ByteString getG2(); - - /** - * <code>optional bytes h2 = 4;</code> - */ - com.google.protobuf.ByteString getH2(); - - /** - * <code>optional bytes g1Tag = 5;</code> - */ - com.google.protobuf.ByteString getG1Tag(); - - /** - * <code>optional bytes h1Tag = 6;</code> - */ - com.google.protobuf.ByteString getH1Tag(); - - /** - * <code>optional bytes g2Tag = 7;</code> - */ - com.google.protobuf.ByteString getG2Tag(); - - /** - * <code>optional bytes h2Tag = 8;</code> - */ - com.google.protobuf.ByteString getH2Tag(); - - /** - * <code>optional bytes u = 9;</code> - */ - com.google.protobuf.ByteString getU(); - - /** - * <code>optional bytes v = 10;</code> - */ - com.google.protobuf.ByteString getV(); - - /** - * <code>optional bytes uTag = 11;</code> - */ - com.google.protobuf.ByteString getUTag(); - - /** - * <code>optional bytes vTag = 12;</code> - */ - com.google.protobuf.ByteString getVTag(); - } - /** - * Protobuf type {@code meerkat.ZeroKnowledgeProof.OrProof.ForRandomOracle} - */ - public static final class ForRandomOracle extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.ZeroKnowledgeProof.OrProof.ForRandomOracle) - ForRandomOracleOrBuilder { - // Use ForRandomOracle.newBuilder() to construct. - private ForRandomOracle(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ForRandomOracle() { - g1_ = com.google.protobuf.ByteString.EMPTY; - h1_ = com.google.protobuf.ByteString.EMPTY; - g2_ = com.google.protobuf.ByteString.EMPTY; - h2_ = com.google.protobuf.ByteString.EMPTY; - g1Tag_ = com.google.protobuf.ByteString.EMPTY; - h1Tag_ = com.google.protobuf.ByteString.EMPTY; - g2Tag_ = com.google.protobuf.ByteString.EMPTY; - h2Tag_ = com.google.protobuf.ByteString.EMPTY; - u_ = com.google.protobuf.ByteString.EMPTY; - v_ = com.google.protobuf.ByteString.EMPTY; - uTag_ = com.google.protobuf.ByteString.EMPTY; - vTag_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private ForRandomOracle( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - - g1_ = input.readBytes(); - break; - } - case 18: { - - h1_ = input.readBytes(); - break; - } - case 26: { - - g2_ = input.readBytes(); - break; - } - case 34: { - - h2_ = input.readBytes(); - break; - } - case 42: { - - g1Tag_ = input.readBytes(); - break; - } - case 50: { - - h1Tag_ = input.readBytes(); - break; - } - case 58: { - - g2Tag_ = input.readBytes(); - break; - } - case 66: { - - h2Tag_ = input.readBytes(); - break; - } - case 74: { - - u_ = input.readBytes(); - break; - } - case 82: { - - v_ = input.readBytes(); - break; - } - case 90: { - - uTag_ = input.readBytes(); - break; - } - case 98: { - - vTag_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Mixing.internal_static_meerkat_ZeroKnowledgeProof_OrProof_ForRandomOracle_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Mixing.internal_static_meerkat_ZeroKnowledgeProof_OrProof_ForRandomOracle_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle.class, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle.Builder.class); - } - - public static final int G1_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString g1_; - /** - * <code>optional bytes g1 = 1;</code> - */ - public com.google.protobuf.ByteString getG1() { - return g1_; - } - - public static final int H1_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString h1_; - /** - * <code>optional bytes h1 = 2;</code> - */ - public com.google.protobuf.ByteString getH1() { - return h1_; - } - - public static final int G2_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString g2_; - /** - * <code>optional bytes g2 = 3;</code> - */ - public com.google.protobuf.ByteString getG2() { - return g2_; - } - - public static final int H2_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString h2_; - /** - * <code>optional bytes h2 = 4;</code> - */ - public com.google.protobuf.ByteString getH2() { - return h2_; - } - - public static final int G1TAG_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString g1Tag_; - /** - * <code>optional bytes g1Tag = 5;</code> - */ - public com.google.protobuf.ByteString getG1Tag() { - return g1Tag_; - } - - public static final int H1TAG_FIELD_NUMBER = 6; - private com.google.protobuf.ByteString h1Tag_; - /** - * <code>optional bytes h1Tag = 6;</code> - */ - public com.google.protobuf.ByteString getH1Tag() { - return h1Tag_; - } - - public static final int G2TAG_FIELD_NUMBER = 7; - private com.google.protobuf.ByteString g2Tag_; - /** - * <code>optional bytes g2Tag = 7;</code> - */ - public com.google.protobuf.ByteString getG2Tag() { - return g2Tag_; - } - - public static final int H2TAG_FIELD_NUMBER = 8; - private com.google.protobuf.ByteString h2Tag_; - /** - * <code>optional bytes h2Tag = 8;</code> - */ - public com.google.protobuf.ByteString getH2Tag() { - return h2Tag_; - } - - public static final int U_FIELD_NUMBER = 9; - private com.google.protobuf.ByteString u_; - /** - * <code>optional bytes u = 9;</code> - */ - public com.google.protobuf.ByteString getU() { - return u_; - } - - public static final int V_FIELD_NUMBER = 10; - private com.google.protobuf.ByteString v_; - /** - * <code>optional bytes v = 10;</code> - */ - public com.google.protobuf.ByteString getV() { - return v_; - } - - public static final int UTAG_FIELD_NUMBER = 11; - private com.google.protobuf.ByteString uTag_; - /** - * <code>optional bytes uTag = 11;</code> - */ - public com.google.protobuf.ByteString getUTag() { - return uTag_; - } - - public static final int VTAG_FIELD_NUMBER = 12; - private com.google.protobuf.ByteString vTag_; - /** - * <code>optional bytes vTag = 12;</code> - */ - public com.google.protobuf.ByteString getVTag() { - return vTag_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!g1_.isEmpty()) { - output.writeBytes(1, g1_); - } - if (!h1_.isEmpty()) { - output.writeBytes(2, h1_); - } - if (!g2_.isEmpty()) { - output.writeBytes(3, g2_); - } - if (!h2_.isEmpty()) { - output.writeBytes(4, h2_); - } - if (!g1Tag_.isEmpty()) { - output.writeBytes(5, g1Tag_); - } - if (!h1Tag_.isEmpty()) { - output.writeBytes(6, h1Tag_); - } - if (!g2Tag_.isEmpty()) { - output.writeBytes(7, g2Tag_); - } - if (!h2Tag_.isEmpty()) { - output.writeBytes(8, h2Tag_); - } - if (!u_.isEmpty()) { - output.writeBytes(9, u_); - } - if (!v_.isEmpty()) { - output.writeBytes(10, v_); - } - if (!uTag_.isEmpty()) { - output.writeBytes(11, uTag_); - } - if (!vTag_.isEmpty()) { - output.writeBytes(12, vTag_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!g1_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, g1_); - } - if (!h1_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, h1_); - } - if (!g2_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, g2_); - } - if (!h2_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, h2_); - } - if (!g1Tag_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, g1Tag_); - } - if (!h1Tag_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, h1Tag_); - } - if (!g2Tag_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, g2Tag_); - } - if (!h2Tag_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(8, h2Tag_); - } - if (!u_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(9, u_); - } - if (!v_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(10, v_); - } - if (!uTag_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(11, uTag_); - } - if (!vTag_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(12, vTag_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle)) { - return super.equals(obj); - } - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle other = (meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle) obj; - - boolean result = true; - result = result && getG1() - .equals(other.getG1()); - result = result && getH1() - .equals(other.getH1()); - result = result && getG2() - .equals(other.getG2()); - result = result && getH2() - .equals(other.getH2()); - result = result && getG1Tag() - .equals(other.getG1Tag()); - result = result && getH1Tag() - .equals(other.getH1Tag()); - result = result && getG2Tag() - .equals(other.getG2Tag()); - result = result && getH2Tag() - .equals(other.getH2Tag()); - result = result && getU() - .equals(other.getU()); - result = result && getV() - .equals(other.getV()); - result = result && getUTag() - .equals(other.getUTag()); - result = result && getVTag() - .equals(other.getVTag()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); - hash = (37 * hash) + G1_FIELD_NUMBER; - hash = (53 * hash) + getG1().hashCode(); - hash = (37 * hash) + H1_FIELD_NUMBER; - hash = (53 * hash) + getH1().hashCode(); - hash = (37 * hash) + G2_FIELD_NUMBER; - hash = (53 * hash) + getG2().hashCode(); - hash = (37 * hash) + H2_FIELD_NUMBER; - hash = (53 * hash) + getH2().hashCode(); - hash = (37 * hash) + G1TAG_FIELD_NUMBER; - hash = (53 * hash) + getG1Tag().hashCode(); - hash = (37 * hash) + H1TAG_FIELD_NUMBER; - hash = (53 * hash) + getH1Tag().hashCode(); - hash = (37 * hash) + G2TAG_FIELD_NUMBER; - hash = (53 * hash) + getG2Tag().hashCode(); - hash = (37 * hash) + H2TAG_FIELD_NUMBER; - hash = (53 * hash) + getH2Tag().hashCode(); - hash = (37 * hash) + U_FIELD_NUMBER; - hash = (53 * hash) + getU().hashCode(); - hash = (37 * hash) + V_FIELD_NUMBER; - hash = (53 * hash) + getV().hashCode(); - hash = (37 * hash) + UTAG_FIELD_NUMBER; - hash = (53 * hash) + getUTag().hashCode(); - hash = (37 * hash) + VTAG_FIELD_NUMBER; - hash = (53 * hash) + getVTag().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code meerkat.ZeroKnowledgeProof.OrProof.ForRandomOracle} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:meerkat.ZeroKnowledgeProof.OrProof.ForRandomOracle) - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Mixing.internal_static_meerkat_ZeroKnowledgeProof_OrProof_ForRandomOracle_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Mixing.internal_static_meerkat_ZeroKnowledgeProof_OrProof_ForRandomOracle_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle.class, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle.Builder.class); - } - - // Construct using meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - g1_ = com.google.protobuf.ByteString.EMPTY; - - h1_ = com.google.protobuf.ByteString.EMPTY; - - g2_ = com.google.protobuf.ByteString.EMPTY; - - h2_ = com.google.protobuf.ByteString.EMPTY; - - g1Tag_ = com.google.protobuf.ByteString.EMPTY; - - h1Tag_ = com.google.protobuf.ByteString.EMPTY; - - g2Tag_ = com.google.protobuf.ByteString.EMPTY; - - h2Tag_ = com.google.protobuf.ByteString.EMPTY; - - u_ = com.google.protobuf.ByteString.EMPTY; - - v_ = com.google.protobuf.ByteString.EMPTY; - - uTag_ = com.google.protobuf.ByteString.EMPTY; - - vTag_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.Mixing.internal_static_meerkat_ZeroKnowledgeProof_OrProof_ForRandomOracle_descriptor; - } - - public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle getDefaultInstanceForType() { - return meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle.getDefaultInstance(); - } - - public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle build() { - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle buildPartial() { - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle result = new meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle(this); - result.g1_ = g1_; - result.h1_ = h1_; - result.g2_ = g2_; - result.h2_ = h2_; - result.g1Tag_ = g1Tag_; - result.h1Tag_ = h1Tag_; - result.g2Tag_ = g2Tag_; - result.h2Tag_ = h2Tag_; - result.u_ = u_; - result.v_ = v_; - result.uTag_ = uTag_; - result.vTag_ = vTag_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle) { - return mergeFrom((meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle other) { - if (other == meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle.getDefaultInstance()) return this; - if (other.getG1() != com.google.protobuf.ByteString.EMPTY) { - setG1(other.getG1()); - } - if (other.getH1() != com.google.protobuf.ByteString.EMPTY) { - setH1(other.getH1()); - } - if (other.getG2() != com.google.protobuf.ByteString.EMPTY) { - setG2(other.getG2()); - } - if (other.getH2() != com.google.protobuf.ByteString.EMPTY) { - setH2(other.getH2()); - } - if (other.getG1Tag() != com.google.protobuf.ByteString.EMPTY) { - setG1Tag(other.getG1Tag()); - } - if (other.getH1Tag() != com.google.protobuf.ByteString.EMPTY) { - setH1Tag(other.getH1Tag()); - } - if (other.getG2Tag() != com.google.protobuf.ByteString.EMPTY) { - setG2Tag(other.getG2Tag()); - } - if (other.getH2Tag() != com.google.protobuf.ByteString.EMPTY) { - setH2Tag(other.getH2Tag()); - } - if (other.getU() != com.google.protobuf.ByteString.EMPTY) { - setU(other.getU()); - } - if (other.getV() != com.google.protobuf.ByteString.EMPTY) { - setV(other.getV()); - } - if (other.getUTag() != com.google.protobuf.ByteString.EMPTY) { - setUTag(other.getUTag()); - } - if (other.getVTag() != com.google.protobuf.ByteString.EMPTY) { - setVTag(other.getVTag()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString g1_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>optional bytes g1 = 1;</code> - */ - public com.google.protobuf.ByteString getG1() { - return g1_; - } - /** - * <code>optional bytes g1 = 1;</code> - */ - public Builder setG1(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - g1_ = value; - onChanged(); - return this; - } - /** - * <code>optional bytes g1 = 1;</code> - */ - public Builder clearG1() { - - g1_ = getDefaultInstance().getG1(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString h1_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>optional bytes h1 = 2;</code> - */ - public com.google.protobuf.ByteString getH1() { - return h1_; - } - /** - * <code>optional bytes h1 = 2;</code> - */ - public Builder setH1(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - h1_ = value; - onChanged(); - return this; - } - /** - * <code>optional bytes h1 = 2;</code> - */ - public Builder clearH1() { - - h1_ = getDefaultInstance().getH1(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString g2_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>optional bytes g2 = 3;</code> - */ - public com.google.protobuf.ByteString getG2() { - return g2_; - } - /** - * <code>optional bytes g2 = 3;</code> - */ - public Builder setG2(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - g2_ = value; - onChanged(); - return this; - } - /** - * <code>optional bytes g2 = 3;</code> - */ - public Builder clearG2() { - - g2_ = getDefaultInstance().getG2(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString h2_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>optional bytes h2 = 4;</code> - */ - public com.google.protobuf.ByteString getH2() { - return h2_; - } - /** - * <code>optional bytes h2 = 4;</code> - */ - public Builder setH2(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - h2_ = value; - onChanged(); - return this; - } - /** - * <code>optional bytes h2 = 4;</code> - */ - public Builder clearH2() { - - h2_ = getDefaultInstance().getH2(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString g1Tag_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>optional bytes g1Tag = 5;</code> - */ - public com.google.protobuf.ByteString getG1Tag() { - return g1Tag_; - } - /** - * <code>optional bytes g1Tag = 5;</code> - */ - public Builder setG1Tag(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - g1Tag_ = value; - onChanged(); - return this; - } - /** - * <code>optional bytes g1Tag = 5;</code> - */ - public Builder clearG1Tag() { - - g1Tag_ = getDefaultInstance().getG1Tag(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString h1Tag_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>optional bytes h1Tag = 6;</code> - */ - public com.google.protobuf.ByteString getH1Tag() { - return h1Tag_; - } - /** - * <code>optional bytes h1Tag = 6;</code> - */ - public Builder setH1Tag(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - h1Tag_ = value; - onChanged(); - return this; - } - /** - * <code>optional bytes h1Tag = 6;</code> - */ - public Builder clearH1Tag() { - - h1Tag_ = getDefaultInstance().getH1Tag(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString g2Tag_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>optional bytes g2Tag = 7;</code> - */ - public com.google.protobuf.ByteString getG2Tag() { - return g2Tag_; - } - /** - * <code>optional bytes g2Tag = 7;</code> - */ - public Builder setG2Tag(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - g2Tag_ = value; - onChanged(); - return this; - } - /** - * <code>optional bytes g2Tag = 7;</code> - */ - public Builder clearG2Tag() { - - g2Tag_ = getDefaultInstance().getG2Tag(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString h2Tag_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>optional bytes h2Tag = 8;</code> - */ - public com.google.protobuf.ByteString getH2Tag() { - return h2Tag_; - } - /** - * <code>optional bytes h2Tag = 8;</code> - */ - public Builder setH2Tag(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - h2Tag_ = value; - onChanged(); - return this; - } - /** - * <code>optional bytes h2Tag = 8;</code> - */ - public Builder clearH2Tag() { - - h2Tag_ = getDefaultInstance().getH2Tag(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString u_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>optional bytes u = 9;</code> - */ - public com.google.protobuf.ByteString getU() { - return u_; - } - /** - * <code>optional bytes u = 9;</code> - */ - public Builder setU(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - u_ = value; - onChanged(); - return this; - } - /** - * <code>optional bytes u = 9;</code> - */ - public Builder clearU() { - - u_ = getDefaultInstance().getU(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString v_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>optional bytes v = 10;</code> - */ - public com.google.protobuf.ByteString getV() { - return v_; - } - /** - * <code>optional bytes v = 10;</code> - */ - public Builder setV(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - v_ = value; - onChanged(); - return this; - } - /** - * <code>optional bytes v = 10;</code> - */ - public Builder clearV() { - - v_ = getDefaultInstance().getV(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString uTag_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>optional bytes uTag = 11;</code> - */ - public com.google.protobuf.ByteString getUTag() { - return uTag_; - } - /** - * <code>optional bytes uTag = 11;</code> - */ - public Builder setUTag(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - uTag_ = value; - onChanged(); - return this; - } - /** - * <code>optional bytes uTag = 11;</code> - */ - public Builder clearUTag() { - - uTag_ = getDefaultInstance().getUTag(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString vTag_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>optional bytes vTag = 12;</code> - */ - public com.google.protobuf.ByteString getVTag() { - return vTag_; - } - /** - * <code>optional bytes vTag = 12;</code> - */ - public Builder setVTag(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - vTag_ = value; - onChanged(); - return this; - } - /** - * <code>optional bytes vTag = 12;</code> - */ - public Builder clearVTag() { - - vTag_ = getDefaultInstance().getVTag(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.ZeroKnowledgeProof.OrProof.ForRandomOracle) - } - - // @@protoc_insertion_point(class_scope:meerkat.ZeroKnowledgeProof.OrProof.ForRandomOracle) - private static final meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle(); - } - - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ForRandomOracle> - PARSER = new com.google.protobuf.AbstractParser<ForRandomOracle>() { - public ForRandomOracle parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ForRandomOracle(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ForRandomOracle> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ForRandomOracle> getParserForType() { - return PARSER; - } - - public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int G1_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString g1_; - /** - * <pre> - *input : g1,h1, g2, h2, g1Tag, h1Tag, g2Tag, h2Tag; - * </pre> - * - * <code>optional bytes g1 = 1;</code> - */ - public com.google.protobuf.ByteString getG1() { - return g1_; - } - - public static final int H1_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString h1_; - /** - * <code>optional bytes h1 = 2;</code> - */ - public com.google.protobuf.ByteString getH1() { - return h1_; - } - - public static final int G2_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString g2_; - /** - * <code>optional bytes g2 = 3;</code> - */ - public com.google.protobuf.ByteString getG2() { - return g2_; - } - - public static final int H2_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString h2_; - /** - * <code>optional bytes h2 = 4;</code> - */ - public com.google.protobuf.ByteString getH2() { - return h2_; - } - - public static final int G1TAG_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString g1Tag_; - /** - * <code>optional bytes g1Tag = 5;</code> - */ - public com.google.protobuf.ByteString getG1Tag() { - return g1Tag_; - } - - public static final int H1TAG_FIELD_NUMBER = 6; - private com.google.protobuf.ByteString h1Tag_; - /** - * <code>optional bytes h1Tag = 6;</code> - */ - public com.google.protobuf.ByteString getH1Tag() { - return h1Tag_; - } - - public static final int G2TAG_FIELD_NUMBER = 7; - private com.google.protobuf.ByteString g2Tag_; - /** - * <code>optional bytes g2Tag = 7;</code> - */ - public com.google.protobuf.ByteString getG2Tag() { - return g2Tag_; - } - - public static final int H2TAG_FIELD_NUMBER = 8; - private com.google.protobuf.ByteString h2Tag_; - /** - * <code>optional bytes h2Tag = 8;</code> - */ - public com.google.protobuf.ByteString getH2Tag() { - return h2Tag_; - } - - public static final int U_FIELD_NUMBER = 9; - private com.google.protobuf.ByteString u_; - /** - * <pre> - *calc: u, v, uTag, vTag; - * </pre> - * - * <code>optional bytes u = 9;</code> - */ - public com.google.protobuf.ByteString getU() { - return u_; - } - - public static final int V_FIELD_NUMBER = 10; - private com.google.protobuf.ByteString v_; - /** - * <code>optional bytes v = 10;</code> - */ - public com.google.protobuf.ByteString getV() { - return v_; - } - - public static final int UTAG_FIELD_NUMBER = 11; - private com.google.protobuf.ByteString uTag_; - /** - * <code>optional bytes uTag = 11;</code> - */ - public com.google.protobuf.ByteString getUTag() { - return uTag_; - } - - public static final int VTAG_FIELD_NUMBER = 12; - private com.google.protobuf.ByteString vTag_; - /** - * <code>optional bytes vTag = 12;</code> - */ - public com.google.protobuf.ByteString getVTag() { - return vTag_; - } - - public static final int C1_FIELD_NUMBER = 13; - private com.google.protobuf.ByteString c1_; - /** - * <pre> - *generated: c1,c2,z,zTag - * </pre> - * - * <code>optional bytes c1 = 13;</code> - */ - public com.google.protobuf.ByteString getC1() { - return c1_; - } - - public static final int C2_FIELD_NUMBER = 14; - private com.google.protobuf.ByteString c2_; - /** - * <code>optional bytes c2 = 14;</code> - */ - public com.google.protobuf.ByteString getC2() { - return c2_; - } - - public static final int Z_FIELD_NUMBER = 15; - private com.google.protobuf.ByteString z_; - /** - * <code>optional bytes z = 15;</code> - */ - public com.google.protobuf.ByteString getZ() { - return z_; - } - - public static final int ZTAG_FIELD_NUMBER = 16; - private com.google.protobuf.ByteString zTag_; - /** - * <code>optional bytes zTag = 16;</code> - */ - public com.google.protobuf.ByteString getZTag() { - return zTag_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!g1_.isEmpty()) { - output.writeBytes(1, g1_); - } - if (!h1_.isEmpty()) { - output.writeBytes(2, h1_); - } - if (!g2_.isEmpty()) { - output.writeBytes(3, g2_); - } - if (!h2_.isEmpty()) { - output.writeBytes(4, h2_); - } - if (!g1Tag_.isEmpty()) { - output.writeBytes(5, g1Tag_); - } - if (!h1Tag_.isEmpty()) { - output.writeBytes(6, h1Tag_); - } - if (!g2Tag_.isEmpty()) { - output.writeBytes(7, g2Tag_); - } - if (!h2Tag_.isEmpty()) { - output.writeBytes(8, h2Tag_); - } - if (!u_.isEmpty()) { - output.writeBytes(9, u_); - } - if (!v_.isEmpty()) { - output.writeBytes(10, v_); - } - if (!uTag_.isEmpty()) { - output.writeBytes(11, uTag_); - } - if (!vTag_.isEmpty()) { - output.writeBytes(12, vTag_); - } - if (!c1_.isEmpty()) { - output.writeBytes(13, c1_); - } - if (!c2_.isEmpty()) { - output.writeBytes(14, c2_); - } - if (!z_.isEmpty()) { - output.writeBytes(15, z_); - } - if (!zTag_.isEmpty()) { - output.writeBytes(16, zTag_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!g1_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, g1_); - } - if (!h1_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, h1_); - } - if (!g2_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, g2_); - } - if (!h2_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, h2_); - } - if (!g1Tag_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, g1Tag_); - } - if (!h1Tag_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, h1Tag_); - } - if (!g2Tag_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, g2Tag_); - } - if (!h2Tag_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(8, h2Tag_); - } - if (!u_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(9, u_); - } - if (!v_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(10, v_); - } - if (!uTag_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(11, uTag_); - } - if (!vTag_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(12, vTag_); - } - if (!c1_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(13, c1_); - } - if (!c2_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(14, c2_); - } - if (!z_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(15, z_); - } - if (!zTag_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(16, zTag_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof)) { - return super.equals(obj); - } - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof other = (meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof) obj; - - boolean result = true; - result = result && getG1() - .equals(other.getG1()); - result = result && getH1() - .equals(other.getH1()); - result = result && getG2() - .equals(other.getG2()); - result = result && getH2() - .equals(other.getH2()); - result = result && getG1Tag() - .equals(other.getG1Tag()); - result = result && getH1Tag() - .equals(other.getH1Tag()); - result = result && getG2Tag() - .equals(other.getG2Tag()); - result = result && getH2Tag() - .equals(other.getH2Tag()); - result = result && getU() - .equals(other.getU()); - result = result && getV() - .equals(other.getV()); - result = result && getUTag() - .equals(other.getUTag()); - result = result && getVTag() - .equals(other.getVTag()); - result = result && getC1() - .equals(other.getC1()); - result = result && getC2() - .equals(other.getC2()); - result = result && getZ() - .equals(other.getZ()); - result = result && getZTag() - .equals(other.getZTag()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); - hash = (37 * hash) + G1_FIELD_NUMBER; - hash = (53 * hash) + getG1().hashCode(); - hash = (37 * hash) + H1_FIELD_NUMBER; - hash = (53 * hash) + getH1().hashCode(); - hash = (37 * hash) + G2_FIELD_NUMBER; - hash = (53 * hash) + getG2().hashCode(); - hash = (37 * hash) + H2_FIELD_NUMBER; - hash = (53 * hash) + getH2().hashCode(); - hash = (37 * hash) + G1TAG_FIELD_NUMBER; - hash = (53 * hash) + getG1Tag().hashCode(); - hash = (37 * hash) + H1TAG_FIELD_NUMBER; - hash = (53 * hash) + getH1Tag().hashCode(); - hash = (37 * hash) + G2TAG_FIELD_NUMBER; - hash = (53 * hash) + getG2Tag().hashCode(); - hash = (37 * hash) + H2TAG_FIELD_NUMBER; - hash = (53 * hash) + getH2Tag().hashCode(); - hash = (37 * hash) + U_FIELD_NUMBER; - hash = (53 * hash) + getU().hashCode(); - hash = (37 * hash) + V_FIELD_NUMBER; - hash = (53 * hash) + getV().hashCode(); - hash = (37 * hash) + UTAG_FIELD_NUMBER; - hash = (53 * hash) + getUTag().hashCode(); - hash = (37 * hash) + VTAG_FIELD_NUMBER; - hash = (53 * hash) + getVTag().hashCode(); - hash = (37 * hash) + C1_FIELD_NUMBER; - hash = (53 * hash) + getC1().hashCode(); - hash = (37 * hash) + C2_FIELD_NUMBER; - hash = (53 * hash) + getC2().hashCode(); - hash = (37 * hash) + Z_FIELD_NUMBER; - hash = (53 * hash) + getZ().hashCode(); - hash = (37 * hash) + ZTAG_FIELD_NUMBER; - hash = (53 * hash) + getZTag().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code meerkat.ZeroKnowledgeProof.OrProof} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:meerkat.ZeroKnowledgeProof.OrProof) - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Mixing.internal_static_meerkat_ZeroKnowledgeProof_OrProof_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Mixing.internal_static_meerkat_ZeroKnowledgeProof_OrProof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.class, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder.class); - } - - // Construct using meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - g1_ = com.google.protobuf.ByteString.EMPTY; - - h1_ = com.google.protobuf.ByteString.EMPTY; - - g2_ = com.google.protobuf.ByteString.EMPTY; - - h2_ = com.google.protobuf.ByteString.EMPTY; - - g1Tag_ = com.google.protobuf.ByteString.EMPTY; - - h1Tag_ = com.google.protobuf.ByteString.EMPTY; - - g2Tag_ = com.google.protobuf.ByteString.EMPTY; - - h2Tag_ = com.google.protobuf.ByteString.EMPTY; - - u_ = com.google.protobuf.ByteString.EMPTY; - - v_ = com.google.protobuf.ByteString.EMPTY; - - uTag_ = com.google.protobuf.ByteString.EMPTY; - - vTag_ = com.google.protobuf.ByteString.EMPTY; - - c1_ = com.google.protobuf.ByteString.EMPTY; - - c2_ = com.google.protobuf.ByteString.EMPTY; - - z_ = com.google.protobuf.ByteString.EMPTY; - - zTag_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.Mixing.internal_static_meerkat_ZeroKnowledgeProof_OrProof_descriptor; - } - - public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof getDefaultInstanceForType() { - return meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.getDefaultInstance(); - } - - public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof build() { - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof buildPartial() { - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof result = new meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof(this); - result.g1_ = g1_; - result.h1_ = h1_; - result.g2_ = g2_; - result.h2_ = h2_; - result.g1Tag_ = g1Tag_; - result.h1Tag_ = h1Tag_; - result.g2Tag_ = g2Tag_; - result.h2Tag_ = h2Tag_; - result.u_ = u_; - result.v_ = v_; - result.uTag_ = uTag_; - result.vTag_ = vTag_; - result.c1_ = c1_; - result.c2_ = c2_; - result.z_ = z_; - result.zTag_ = zTag_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof) { - return mergeFrom((meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof other) { - if (other == meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.getDefaultInstance()) return this; - if (other.getG1() != com.google.protobuf.ByteString.EMPTY) { - setG1(other.getG1()); - } - if (other.getH1() != com.google.protobuf.ByteString.EMPTY) { - setH1(other.getH1()); - } - if (other.getG2() != com.google.protobuf.ByteString.EMPTY) { - setG2(other.getG2()); - } - if (other.getH2() != com.google.protobuf.ByteString.EMPTY) { - setH2(other.getH2()); - } - if (other.getG1Tag() != com.google.protobuf.ByteString.EMPTY) { - setG1Tag(other.getG1Tag()); - } - if (other.getH1Tag() != com.google.protobuf.ByteString.EMPTY) { - setH1Tag(other.getH1Tag()); - } - if (other.getG2Tag() != com.google.protobuf.ByteString.EMPTY) { - setG2Tag(other.getG2Tag()); - } - if (other.getH2Tag() != com.google.protobuf.ByteString.EMPTY) { - setH2Tag(other.getH2Tag()); - } - if (other.getU() != com.google.protobuf.ByteString.EMPTY) { - setU(other.getU()); - } - if (other.getV() != com.google.protobuf.ByteString.EMPTY) { - setV(other.getV()); - } - if (other.getUTag() != com.google.protobuf.ByteString.EMPTY) { - setUTag(other.getUTag()); - } - if (other.getVTag() != com.google.protobuf.ByteString.EMPTY) { - setVTag(other.getVTag()); - } - if (other.getC1() != com.google.protobuf.ByteString.EMPTY) { - setC1(other.getC1()); - } - if (other.getC2() != com.google.protobuf.ByteString.EMPTY) { - setC2(other.getC2()); - } - if (other.getZ() != com.google.protobuf.ByteString.EMPTY) { - setZ(other.getZ()); - } - if (other.getZTag() != com.google.protobuf.ByteString.EMPTY) { - setZTag(other.getZTag()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString g1_ = com.google.protobuf.ByteString.EMPTY; - /** - * <pre> - *input : g1,h1, g2, h2, g1Tag, h1Tag, g2Tag, h2Tag; - * </pre> - * - * <code>optional bytes g1 = 1;</code> - */ - public com.google.protobuf.ByteString getG1() { - return g1_; - } - /** - * <pre> - *input : g1,h1, g2, h2, g1Tag, h1Tag, g2Tag, h2Tag; - * </pre> - * - * <code>optional bytes g1 = 1;</code> - */ - public Builder setG1(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - g1_ = value; - onChanged(); - return this; - } - /** - * <pre> - *input : g1,h1, g2, h2, g1Tag, h1Tag, g2Tag, h2Tag; - * </pre> - * - * <code>optional bytes g1 = 1;</code> - */ - public Builder clearG1() { - - g1_ = getDefaultInstance().getG1(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString h1_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>optional bytes h1 = 2;</code> - */ - public com.google.protobuf.ByteString getH1() { - return h1_; - } - /** - * <code>optional bytes h1 = 2;</code> - */ - public Builder setH1(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - h1_ = value; - onChanged(); - return this; - } - /** - * <code>optional bytes h1 = 2;</code> - */ - public Builder clearH1() { - - h1_ = getDefaultInstance().getH1(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString g2_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>optional bytes g2 = 3;</code> - */ - public com.google.protobuf.ByteString getG2() { - return g2_; - } - /** - * <code>optional bytes g2 = 3;</code> - */ - public Builder setG2(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - g2_ = value; - onChanged(); - return this; - } - /** - * <code>optional bytes g2 = 3;</code> - */ - public Builder clearG2() { - - g2_ = getDefaultInstance().getG2(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString h2_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>optional bytes h2 = 4;</code> - */ - public com.google.protobuf.ByteString getH2() { - return h2_; - } - /** - * <code>optional bytes h2 = 4;</code> - */ - public Builder setH2(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - h2_ = value; - onChanged(); - return this; - } - /** - * <code>optional bytes h2 = 4;</code> - */ - public Builder clearH2() { - - h2_ = getDefaultInstance().getH2(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString g1Tag_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>optional bytes g1Tag = 5;</code> - */ - public com.google.protobuf.ByteString getG1Tag() { - return g1Tag_; - } - /** - * <code>optional bytes g1Tag = 5;</code> - */ - public Builder setG1Tag(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - g1Tag_ = value; - onChanged(); - return this; - } - /** - * <code>optional bytes g1Tag = 5;</code> - */ - public Builder clearG1Tag() { - - g1Tag_ = getDefaultInstance().getG1Tag(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString h1Tag_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>optional bytes h1Tag = 6;</code> - */ - public com.google.protobuf.ByteString getH1Tag() { - return h1Tag_; - } - /** - * <code>optional bytes h1Tag = 6;</code> - */ - public Builder setH1Tag(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - h1Tag_ = value; - onChanged(); - return this; - } - /** - * <code>optional bytes h1Tag = 6;</code> - */ - public Builder clearH1Tag() { - - h1Tag_ = getDefaultInstance().getH1Tag(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString g2Tag_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>optional bytes g2Tag = 7;</code> - */ - public com.google.protobuf.ByteString getG2Tag() { - return g2Tag_; - } - /** - * <code>optional bytes g2Tag = 7;</code> - */ - public Builder setG2Tag(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - g2Tag_ = value; - onChanged(); - return this; - } - /** - * <code>optional bytes g2Tag = 7;</code> - */ - public Builder clearG2Tag() { - - g2Tag_ = getDefaultInstance().getG2Tag(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString h2Tag_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>optional bytes h2Tag = 8;</code> - */ - public com.google.protobuf.ByteString getH2Tag() { - return h2Tag_; - } - /** - * <code>optional bytes h2Tag = 8;</code> - */ - public Builder setH2Tag(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - h2Tag_ = value; - onChanged(); - return this; - } - /** - * <code>optional bytes h2Tag = 8;</code> - */ - public Builder clearH2Tag() { - - h2Tag_ = getDefaultInstance().getH2Tag(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString u_ = com.google.protobuf.ByteString.EMPTY; - /** - * <pre> - *calc: u, v, uTag, vTag; - * </pre> - * - * <code>optional bytes u = 9;</code> - */ - public com.google.protobuf.ByteString getU() { - return u_; - } - /** - * <pre> - *calc: u, v, uTag, vTag; - * </pre> - * - * <code>optional bytes u = 9;</code> - */ - public Builder setU(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - u_ = value; - onChanged(); - return this; - } - /** - * <pre> - *calc: u, v, uTag, vTag; - * </pre> - * - * <code>optional bytes u = 9;</code> - */ - public Builder clearU() { - - u_ = getDefaultInstance().getU(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString v_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>optional bytes v = 10;</code> - */ - public com.google.protobuf.ByteString getV() { - return v_; - } - /** - * <code>optional bytes v = 10;</code> - */ - public Builder setV(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - v_ = value; - onChanged(); - return this; - } - /** - * <code>optional bytes v = 10;</code> - */ - public Builder clearV() { - - v_ = getDefaultInstance().getV(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString uTag_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>optional bytes uTag = 11;</code> - */ - public com.google.protobuf.ByteString getUTag() { - return uTag_; - } - /** - * <code>optional bytes uTag = 11;</code> - */ - public Builder setUTag(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - uTag_ = value; - onChanged(); - return this; - } - /** - * <code>optional bytes uTag = 11;</code> - */ - public Builder clearUTag() { - - uTag_ = getDefaultInstance().getUTag(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString vTag_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>optional bytes vTag = 12;</code> - */ - public com.google.protobuf.ByteString getVTag() { - return vTag_; - } - /** - * <code>optional bytes vTag = 12;</code> - */ - public Builder setVTag(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - vTag_ = value; - onChanged(); - return this; - } - /** - * <code>optional bytes vTag = 12;</code> - */ - public Builder clearVTag() { - - vTag_ = getDefaultInstance().getVTag(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString c1_ = com.google.protobuf.ByteString.EMPTY; - /** - * <pre> - *generated: c1,c2,z,zTag - * </pre> - * - * <code>optional bytes c1 = 13;</code> - */ - public com.google.protobuf.ByteString getC1() { - return c1_; - } - /** - * <pre> - *generated: c1,c2,z,zTag - * </pre> - * - * <code>optional bytes c1 = 13;</code> - */ - public Builder setC1(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - c1_ = value; - onChanged(); - return this; - } - /** - * <pre> - *generated: c1,c2,z,zTag - * </pre> - * - * <code>optional bytes c1 = 13;</code> - */ - public Builder clearC1() { - - c1_ = getDefaultInstance().getC1(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString c2_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>optional bytes c2 = 14;</code> - */ - public com.google.protobuf.ByteString getC2() { - return c2_; - } - /** - * <code>optional bytes c2 = 14;</code> - */ - public Builder setC2(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - c2_ = value; - onChanged(); - return this; - } - /** - * <code>optional bytes c2 = 14;</code> - */ - public Builder clearC2() { - - c2_ = getDefaultInstance().getC2(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString z_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>optional bytes z = 15;</code> - */ - public com.google.protobuf.ByteString getZ() { - return z_; - } - /** - * <code>optional bytes z = 15;</code> - */ - public Builder setZ(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - z_ = value; - onChanged(); - return this; - } - /** - * <code>optional bytes z = 15;</code> - */ - public Builder clearZ() { - - z_ = getDefaultInstance().getZ(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString zTag_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>optional bytes zTag = 16;</code> - */ - public com.google.protobuf.ByteString getZTag() { - return zTag_; - } - /** - * <code>optional bytes zTag = 16;</code> - */ - public Builder setZTag(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - zTag_ = value; - onChanged(); - return this; - } - /** - * <code>optional bytes zTag = 16;</code> - */ - public Builder clearZTag() { - - zTag_ = getDefaultInstance().getZTag(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.ZeroKnowledgeProof.OrProof) - } - - // @@protoc_insertion_point(class_scope:meerkat.ZeroKnowledgeProof.OrProof) - private static final meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof(); - } - - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<OrProof> - PARSER = new com.google.protobuf.AbstractParser<OrProof>() { - public OrProof parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OrProof(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<OrProof> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<OrProof> getParserForType() { - return PARSER; - } - - public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LocationOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.ZeroKnowledgeProof.Location) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>optional int32 i = 1;</code> - */ - int getI(); - - /** - * <code>optional int32 j = 2;</code> - */ - int getJ(); - - /** - * <code>optional int32 layer = 3;</code> - */ - int getLayer(); - } - /** - * Protobuf type {@code meerkat.ZeroKnowledgeProof.Location} - */ - public static final class Location extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.ZeroKnowledgeProof.Location) - LocationOrBuilder { - // Use Location.newBuilder() to construct. - private Location(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private Location() { - i_ = 0; - j_ = 0; - layer_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private Location( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - i_ = input.readInt32(); - break; - } - case 16: { - - j_ = input.readInt32(); - break; - } - case 24: { - - layer_ = input.readInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Mixing.internal_static_meerkat_ZeroKnowledgeProof_Location_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Mixing.internal_static_meerkat_ZeroKnowledgeProof_Location_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location.class, meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location.Builder.class); - } - - public static final int I_FIELD_NUMBER = 1; - private int i_; - /** - * <code>optional int32 i = 1;</code> - */ - public int getI() { - return i_; - } - - public static final int J_FIELD_NUMBER = 2; - private int j_; - /** - * <code>optional int32 j = 2;</code> - */ - public int getJ() { - return j_; - } - - public static final int LAYER_FIELD_NUMBER = 3; - private int layer_; - /** - * <code>optional int32 layer = 3;</code> - */ - public int getLayer() { - return layer_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (i_ != 0) { - output.writeInt32(1, i_); - } - if (j_ != 0) { - output.writeInt32(2, j_); - } - if (layer_ != 0) { - output.writeInt32(3, layer_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (i_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, i_); - } - if (j_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, j_); - } - if (layer_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, layer_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location)) { - return super.equals(obj); - } - meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location other = (meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location) obj; - - boolean result = true; - result = result && (getI() - == other.getI()); - result = result && (getJ() - == other.getJ()); - result = result && (getLayer() - == other.getLayer()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); - hash = (37 * hash) + I_FIELD_NUMBER; - hash = (53 * hash) + getI(); - hash = (37 * hash) + J_FIELD_NUMBER; - hash = (53 * hash) + getJ(); - hash = (37 * hash) + LAYER_FIELD_NUMBER; - hash = (53 * hash) + getLayer(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code meerkat.ZeroKnowledgeProof.Location} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:meerkat.ZeroKnowledgeProof.Location) - meerkat.protobuf.Mixing.ZeroKnowledgeProof.LocationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Mixing.internal_static_meerkat_ZeroKnowledgeProof_Location_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Mixing.internal_static_meerkat_ZeroKnowledgeProof_Location_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location.class, meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location.Builder.class); - } - - // Construct using meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - i_ = 0; - - j_ = 0; - - layer_ = 0; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.Mixing.internal_static_meerkat_ZeroKnowledgeProof_Location_descriptor; - } - - public meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location getDefaultInstanceForType() { - return meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location.getDefaultInstance(); - } - - public meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location build() { - meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location buildPartial() { - meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location result = new meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location(this); - result.i_ = i_; - result.j_ = j_; - result.layer_ = layer_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location) { - return mergeFrom((meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location other) { - if (other == meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location.getDefaultInstance()) return this; - if (other.getI() != 0) { - setI(other.getI()); - } - if (other.getJ() != 0) { - setJ(other.getJ()); - } - if (other.getLayer() != 0) { - setLayer(other.getLayer()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int i_ ; - /** - * <code>optional int32 i = 1;</code> - */ - public int getI() { - return i_; - } - /** - * <code>optional int32 i = 1;</code> - */ - public Builder setI(int value) { - - i_ = value; - onChanged(); - return this; - } - /** - * <code>optional int32 i = 1;</code> - */ - public Builder clearI() { - - i_ = 0; - onChanged(); - return this; - } - - private int j_ ; - /** - * <code>optional int32 j = 2;</code> - */ - public int getJ() { - return j_; - } - /** - * <code>optional int32 j = 2;</code> - */ - public Builder setJ(int value) { - - j_ = value; - onChanged(); - return this; - } - /** - * <code>optional int32 j = 2;</code> - */ - public Builder clearJ() { - - j_ = 0; - onChanged(); - return this; - } - - private int layer_ ; - /** - * <code>optional int32 layer = 3;</code> - */ - public int getLayer() { - return layer_; - } - /** - * <code>optional int32 layer = 3;</code> - */ - public Builder setLayer(int value) { - - layer_ = value; - onChanged(); - return this; - } - /** - * <code>optional int32 layer = 3;</code> - */ - public Builder clearLayer() { - - layer_ = 0; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.ZeroKnowledgeProof.Location) - } - - // @@protoc_insertion_point(class_scope:meerkat.ZeroKnowledgeProof.Location) - private static final meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location(); - } - - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<Location> - PARSER = new com.google.protobuf.AbstractParser<Location>() { - public Location parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Location(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<Location> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<Location> getParserForType() { - return PARSER; - } - - public meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int FIRST_FIELD_NUMBER = 1; - private meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof first_; - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof first = 1;</code> - */ - public boolean hasFirst() { - return first_ != null; - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof first = 1;</code> - */ - public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof getFirst() { - return first_ == null ? meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.getDefaultInstance() : first_; - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof first = 1;</code> - */ - public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder getFirstOrBuilder() { - return getFirst(); - } - - public static final int SECOND_FIELD_NUMBER = 2; - private meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof second_; - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof second = 2;</code> - */ - public boolean hasSecond() { - return second_ != null; - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof second = 2;</code> - */ - public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof getSecond() { - return second_ == null ? meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.getDefaultInstance() : second_; - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof second = 2;</code> - */ - public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder getSecondOrBuilder() { - return getSecond(); - } - - public static final int THIRD_FIELD_NUMBER = 3; - private meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof third_; - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof third = 3;</code> - */ - public boolean hasThird() { - return third_ != null; - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof third = 3;</code> - */ - public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof getThird() { - return third_ == null ? meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.getDefaultInstance() : third_; - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof third = 3;</code> - */ - public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder getThirdOrBuilder() { - return getThird(); - } - - public static final int FOURTH_FIELD_NUMBER = 4; - private meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof fourth_; - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof fourth = 4;</code> - */ - public boolean hasFourth() { - return fourth_ != null; - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof fourth = 4;</code> - */ - public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof getFourth() { - return fourth_ == null ? meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.getDefaultInstance() : fourth_; - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof fourth = 4;</code> - */ - public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder getFourthOrBuilder() { - return getFourth(); - } - - public static final int LOCATION_FIELD_NUMBER = 5; - private meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location location_; - /** - * <code>optional .meerkat.ZeroKnowledgeProof.Location location = 5;</code> - */ - public boolean hasLocation() { - return location_ != null; - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.Location location = 5;</code> - */ - public meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location getLocation() { - return location_ == null ? meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location.getDefaultInstance() : location_; - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.Location location = 5;</code> - */ - public meerkat.protobuf.Mixing.ZeroKnowledgeProof.LocationOrBuilder getLocationOrBuilder() { - return getLocation(); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (first_ != null) { - output.writeMessage(1, getFirst()); - } - if (second_ != null) { - output.writeMessage(2, getSecond()); - } - if (third_ != null) { - output.writeMessage(3, getThird()); - } - if (fourth_ != null) { - output.writeMessage(4, getFourth()); - } - if (location_ != null) { - output.writeMessage(5, getLocation()); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (first_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getFirst()); - } - if (second_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSecond()); - } - if (third_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getThird()); - } - if (fourth_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getFourth()); - } - if (location_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getLocation()); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.Mixing.ZeroKnowledgeProof)) { - return super.equals(obj); - } - meerkat.protobuf.Mixing.ZeroKnowledgeProof other = (meerkat.protobuf.Mixing.ZeroKnowledgeProof) obj; - - boolean result = true; - result = result && (hasFirst() == other.hasFirst()); - if (hasFirst()) { - result = result && getFirst() - .equals(other.getFirst()); - } - result = result && (hasSecond() == other.hasSecond()); - if (hasSecond()) { - result = result && getSecond() - .equals(other.getSecond()); - } - result = result && (hasThird() == other.hasThird()); - if (hasThird()) { - result = result && getThird() - .equals(other.getThird()); - } - result = result && (hasFourth() == other.hasFourth()); - if (hasFourth()) { - result = result && getFourth() - .equals(other.getFourth()); - } - result = result && (hasLocation() == other.hasLocation()); - if (hasLocation()) { - result = result && getLocation() - .equals(other.getLocation()); - } - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); - if (hasFirst()) { - hash = (37 * hash) + FIRST_FIELD_NUMBER; - hash = (53 * hash) + getFirst().hashCode(); - } - if (hasSecond()) { - hash = (37 * hash) + SECOND_FIELD_NUMBER; - hash = (53 * hash) + getSecond().hashCode(); - } - if (hasThird()) { - hash = (37 * hash) + THIRD_FIELD_NUMBER; - hash = (53 * hash) + getThird().hashCode(); - } - if (hasFourth()) { - hash = (37 * hash) + FOURTH_FIELD_NUMBER; - hash = (53 * hash) + getFourth().hashCode(); - } - if (hasLocation()) { - hash = (37 * hash) + LOCATION_FIELD_NUMBER; - hash = (53 * hash) + getLocation().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.Mixing.ZeroKnowledgeProof prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code meerkat.ZeroKnowledgeProof} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:meerkat.ZeroKnowledgeProof) - meerkat.protobuf.Mixing.ZeroKnowledgeProofOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Mixing.internal_static_meerkat_ZeroKnowledgeProof_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Mixing.internal_static_meerkat_ZeroKnowledgeProof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Mixing.ZeroKnowledgeProof.class, meerkat.protobuf.Mixing.ZeroKnowledgeProof.Builder.class); - } - - // Construct using meerkat.protobuf.Mixing.ZeroKnowledgeProof.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - if (firstBuilder_ == null) { - first_ = null; - } else { - first_ = null; - firstBuilder_ = null; - } - if (secondBuilder_ == null) { - second_ = null; - } else { - second_ = null; - secondBuilder_ = null; - } - if (thirdBuilder_ == null) { - third_ = null; - } else { - third_ = null; - thirdBuilder_ = null; - } - if (fourthBuilder_ == null) { - fourth_ = null; - } else { - fourth_ = null; - fourthBuilder_ = null; - } - if (locationBuilder_ == null) { - location_ = null; - } else { - location_ = null; - locationBuilder_ = null; - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.Mixing.internal_static_meerkat_ZeroKnowledgeProof_descriptor; - } - - public meerkat.protobuf.Mixing.ZeroKnowledgeProof getDefaultInstanceForType() { - return meerkat.protobuf.Mixing.ZeroKnowledgeProof.getDefaultInstance(); - } - - public meerkat.protobuf.Mixing.ZeroKnowledgeProof build() { - meerkat.protobuf.Mixing.ZeroKnowledgeProof result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.Mixing.ZeroKnowledgeProof buildPartial() { - meerkat.protobuf.Mixing.ZeroKnowledgeProof result = new meerkat.protobuf.Mixing.ZeroKnowledgeProof(this); - if (firstBuilder_ == null) { - result.first_ = first_; - } else { - result.first_ = firstBuilder_.build(); - } - if (secondBuilder_ == null) { - result.second_ = second_; - } else { - result.second_ = secondBuilder_.build(); - } - if (thirdBuilder_ == null) { - result.third_ = third_; - } else { - result.third_ = thirdBuilder_.build(); - } - if (fourthBuilder_ == null) { - result.fourth_ = fourth_; - } else { - result.fourth_ = fourthBuilder_.build(); - } - if (locationBuilder_ == null) { - result.location_ = location_; - } else { - result.location_ = locationBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.Mixing.ZeroKnowledgeProof) { - return mergeFrom((meerkat.protobuf.Mixing.ZeroKnowledgeProof)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.Mixing.ZeroKnowledgeProof other) { - if (other == meerkat.protobuf.Mixing.ZeroKnowledgeProof.getDefaultInstance()) return this; - if (other.hasFirst()) { - mergeFirst(other.getFirst()); - } - if (other.hasSecond()) { - mergeSecond(other.getSecond()); - } - if (other.hasThird()) { - mergeThird(other.getThird()); - } - if (other.hasFourth()) { - mergeFourth(other.getFourth()); - } - if (other.hasLocation()) { - mergeLocation(other.getLocation()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.Mixing.ZeroKnowledgeProof parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.Mixing.ZeroKnowledgeProof) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof first_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder> firstBuilder_; - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof first = 1;</code> - */ - public boolean hasFirst() { - return firstBuilder_ != null || first_ != null; - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof first = 1;</code> - */ - public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof getFirst() { - if (firstBuilder_ == null) { - return first_ == null ? meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.getDefaultInstance() : first_; - } else { - return firstBuilder_.getMessage(); - } - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof first = 1;</code> - */ - public Builder setFirst(meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof value) { - if (firstBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - first_ = value; - onChanged(); - } else { - firstBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof first = 1;</code> - */ - public Builder setFirst( - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder builderForValue) { - if (firstBuilder_ == null) { - first_ = builderForValue.build(); - onChanged(); - } else { - firstBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof first = 1;</code> - */ - public Builder mergeFirst(meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof value) { - if (firstBuilder_ == null) { - if (first_ != null) { - first_ = - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.newBuilder(first_).mergeFrom(value).buildPartial(); - } else { - first_ = value; - } - onChanged(); - } else { - firstBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof first = 1;</code> - */ - public Builder clearFirst() { - if (firstBuilder_ == null) { - first_ = null; - onChanged(); - } else { - first_ = null; - firstBuilder_ = null; - } - - return this; - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof first = 1;</code> - */ - public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder getFirstBuilder() { - - onChanged(); - return getFirstFieldBuilder().getBuilder(); - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof first = 1;</code> - */ - public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder getFirstOrBuilder() { - if (firstBuilder_ != null) { - return firstBuilder_.getMessageOrBuilder(); - } else { - return first_ == null ? - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.getDefaultInstance() : first_; - } - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof first = 1;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder> - getFirstFieldBuilder() { - if (firstBuilder_ == null) { - firstBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder>( - getFirst(), - getParentForChildren(), - isClean()); - first_ = null; - } - return firstBuilder_; - } - - private meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof second_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder> secondBuilder_; - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof second = 2;</code> - */ - public boolean hasSecond() { - return secondBuilder_ != null || second_ != null; - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof second = 2;</code> - */ - public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof getSecond() { - if (secondBuilder_ == null) { - return second_ == null ? meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.getDefaultInstance() : second_; - } else { - return secondBuilder_.getMessage(); - } - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof second = 2;</code> - */ - public Builder setSecond(meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof value) { - if (secondBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - second_ = value; - onChanged(); - } else { - secondBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof second = 2;</code> - */ - public Builder setSecond( - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder builderForValue) { - if (secondBuilder_ == null) { - second_ = builderForValue.build(); - onChanged(); - } else { - secondBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof second = 2;</code> - */ - public Builder mergeSecond(meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof value) { - if (secondBuilder_ == null) { - if (second_ != null) { - second_ = - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.newBuilder(second_).mergeFrom(value).buildPartial(); - } else { - second_ = value; - } - onChanged(); - } else { - secondBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof second = 2;</code> - */ - public Builder clearSecond() { - if (secondBuilder_ == null) { - second_ = null; - onChanged(); - } else { - second_ = null; - secondBuilder_ = null; - } - - return this; - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof second = 2;</code> - */ - public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder getSecondBuilder() { - - onChanged(); - return getSecondFieldBuilder().getBuilder(); - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof second = 2;</code> - */ - public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder getSecondOrBuilder() { - if (secondBuilder_ != null) { - return secondBuilder_.getMessageOrBuilder(); - } else { - return second_ == null ? - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.getDefaultInstance() : second_; - } - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof second = 2;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder> - getSecondFieldBuilder() { - if (secondBuilder_ == null) { - secondBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder>( - getSecond(), - getParentForChildren(), - isClean()); - second_ = null; - } - return secondBuilder_; - } - - private meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof third_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder> thirdBuilder_; - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof third = 3;</code> - */ - public boolean hasThird() { - return thirdBuilder_ != null || third_ != null; - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof third = 3;</code> - */ - public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof getThird() { - if (thirdBuilder_ == null) { - return third_ == null ? meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.getDefaultInstance() : third_; - } else { - return thirdBuilder_.getMessage(); - } - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof third = 3;</code> - */ - public Builder setThird(meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof value) { - if (thirdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - third_ = value; - onChanged(); - } else { - thirdBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof third = 3;</code> - */ - public Builder setThird( - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder builderForValue) { - if (thirdBuilder_ == null) { - third_ = builderForValue.build(); - onChanged(); - } else { - thirdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof third = 3;</code> - */ - public Builder mergeThird(meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof value) { - if (thirdBuilder_ == null) { - if (third_ != null) { - third_ = - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.newBuilder(third_).mergeFrom(value).buildPartial(); - } else { - third_ = value; - } - onChanged(); - } else { - thirdBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof third = 3;</code> - */ - public Builder clearThird() { - if (thirdBuilder_ == null) { - third_ = null; - onChanged(); - } else { - third_ = null; - thirdBuilder_ = null; - } - - return this; - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof third = 3;</code> - */ - public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder getThirdBuilder() { - - onChanged(); - return getThirdFieldBuilder().getBuilder(); - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof third = 3;</code> - */ - public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder getThirdOrBuilder() { - if (thirdBuilder_ != null) { - return thirdBuilder_.getMessageOrBuilder(); - } else { - return third_ == null ? - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.getDefaultInstance() : third_; - } - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof third = 3;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder> - getThirdFieldBuilder() { - if (thirdBuilder_ == null) { - thirdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder>( - getThird(), - getParentForChildren(), - isClean()); - third_ = null; - } - return thirdBuilder_; - } - - private meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof fourth_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder> fourthBuilder_; - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof fourth = 4;</code> - */ - public boolean hasFourth() { - return fourthBuilder_ != null || fourth_ != null; - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof fourth = 4;</code> - */ - public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof getFourth() { - if (fourthBuilder_ == null) { - return fourth_ == null ? meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.getDefaultInstance() : fourth_; - } else { - return fourthBuilder_.getMessage(); - } - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof fourth = 4;</code> - */ - public Builder setFourth(meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof value) { - if (fourthBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - fourth_ = value; - onChanged(); - } else { - fourthBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof fourth = 4;</code> - */ - public Builder setFourth( - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder builderForValue) { - if (fourthBuilder_ == null) { - fourth_ = builderForValue.build(); - onChanged(); - } else { - fourthBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof fourth = 4;</code> - */ - public Builder mergeFourth(meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof value) { - if (fourthBuilder_ == null) { - if (fourth_ != null) { - fourth_ = - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.newBuilder(fourth_).mergeFrom(value).buildPartial(); - } else { - fourth_ = value; - } - onChanged(); - } else { - fourthBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof fourth = 4;</code> - */ - public Builder clearFourth() { - if (fourthBuilder_ == null) { - fourth_ = null; - onChanged(); - } else { - fourth_ = null; - fourthBuilder_ = null; - } - - return this; - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof fourth = 4;</code> - */ - public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder getFourthBuilder() { - - onChanged(); - return getFourthFieldBuilder().getBuilder(); - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof fourth = 4;</code> - */ - public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder getFourthOrBuilder() { - if (fourthBuilder_ != null) { - return fourthBuilder_.getMessageOrBuilder(); - } else { - return fourth_ == null ? - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.getDefaultInstance() : fourth_; - } - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.OrProof fourth = 4;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder> - getFourthFieldBuilder() { - if (fourthBuilder_ == null) { - fourthBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder>( - getFourth(), - getParentForChildren(), - isClean()); - fourth_ = null; - } - return fourthBuilder_; - } - - private meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location location_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location, meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location.Builder, meerkat.protobuf.Mixing.ZeroKnowledgeProof.LocationOrBuilder> locationBuilder_; - /** - * <code>optional .meerkat.ZeroKnowledgeProof.Location location = 5;</code> - */ - public boolean hasLocation() { - return locationBuilder_ != null || location_ != null; - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.Location location = 5;</code> - */ - public meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location getLocation() { - if (locationBuilder_ == null) { - return location_ == null ? meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location.getDefaultInstance() : location_; - } else { - return locationBuilder_.getMessage(); - } - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.Location location = 5;</code> - */ - public Builder setLocation(meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location value) { - if (locationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - location_ = value; - onChanged(); - } else { - locationBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.Location location = 5;</code> - */ - public Builder setLocation( - meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location.Builder builderForValue) { - if (locationBuilder_ == null) { - location_ = builderForValue.build(); - onChanged(); - } else { - locationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.Location location = 5;</code> - */ - public Builder mergeLocation(meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location value) { - if (locationBuilder_ == null) { - if (location_ != null) { - location_ = - meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location.newBuilder(location_).mergeFrom(value).buildPartial(); - } else { - location_ = value; - } - onChanged(); - } else { - locationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.Location location = 5;</code> - */ - public Builder clearLocation() { - if (locationBuilder_ == null) { - location_ = null; - onChanged(); - } else { - location_ = null; - locationBuilder_ = null; - } - - return this; - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.Location location = 5;</code> - */ - public meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location.Builder getLocationBuilder() { - - onChanged(); - return getLocationFieldBuilder().getBuilder(); - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.Location location = 5;</code> - */ - public meerkat.protobuf.Mixing.ZeroKnowledgeProof.LocationOrBuilder getLocationOrBuilder() { - if (locationBuilder_ != null) { - return locationBuilder_.getMessageOrBuilder(); - } else { - return location_ == null ? - meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location.getDefaultInstance() : location_; - } - } - /** - * <code>optional .meerkat.ZeroKnowledgeProof.Location location = 5;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location, meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location.Builder, meerkat.protobuf.Mixing.ZeroKnowledgeProof.LocationOrBuilder> - getLocationFieldBuilder() { - if (locationBuilder_ == null) { - locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location, meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location.Builder, meerkat.protobuf.Mixing.ZeroKnowledgeProof.LocationOrBuilder>( - getLocation(), - getParentForChildren(), - isClean()); - location_ = null; - } - return locationBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.ZeroKnowledgeProof) - } - - // @@protoc_insertion_point(class_scope:meerkat.ZeroKnowledgeProof) - private static final meerkat.protobuf.Mixing.ZeroKnowledgeProof DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.Mixing.ZeroKnowledgeProof(); - } - - public static meerkat.protobuf.Mixing.ZeroKnowledgeProof getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ZeroKnowledgeProof> - PARSER = new com.google.protobuf.AbstractParser<ZeroKnowledgeProof>() { - public ZeroKnowledgeProof parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ZeroKnowledgeProof(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ZeroKnowledgeProof> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ZeroKnowledgeProof> getParserForType() { - return PARSER; - } - - public meerkat.protobuf.Mixing.ZeroKnowledgeProof getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_Plaintext_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_Plaintext_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_ZeroKnowledgeProof_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_ZeroKnowledgeProof_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_ZeroKnowledgeProof_OrProof_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_ZeroKnowledgeProof_OrProof_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_ZeroKnowledgeProof_OrProof_ForRandomOracle_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_ZeroKnowledgeProof_OrProof_ForRandomOracle_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_ZeroKnowledgeProof_Location_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_ZeroKnowledgeProof_Location_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024meerkat/mixing.proto\022\007meerkat\032\024meerkat" + - "/crypto.proto\"\031\n\tPlaintext\022\014\n\004data\030\001 \001(\014" + - "\"\334\005\n\022ZeroKnowledgeProof\0222\n\005first\030\001 \001(\0132#" + - ".meerkat.ZeroKnowledgeProof.OrProof\0223\n\006s" + - "econd\030\002 \001(\0132#.meerkat.ZeroKnowledgeProof" + - ".OrProof\0222\n\005third\030\003 \001(\0132#.meerkat.ZeroKn" + - "owledgeProof.OrProof\0223\n\006fourth\030\004 \001(\0132#.m" + - "eerkat.ZeroKnowledgeProof.OrProof\0226\n\010loc" + - "ation\030\005 \001(\0132$.meerkat.ZeroKnowledgeProof" + - ".Location\032\212\003\n\007OrProof\022\n\n\002g1\030\001 \001(\014\022\n\n\002h1\030", - "\002 \001(\014\022\n\n\002g2\030\003 \001(\014\022\n\n\002h2\030\004 \001(\014\022\r\n\005g1Tag\030\005" + - " \001(\014\022\r\n\005h1Tag\030\006 \001(\014\022\r\n\005g2Tag\030\007 \001(\014\022\r\n\005h2" + - "Tag\030\010 \001(\014\022\t\n\001u\030\t \001(\014\022\t\n\001v\030\n \001(\014\022\014\n\004uTag\030" + - "\013 \001(\014\022\014\n\004vTag\030\014 \001(\014\022\n\n\002c1\030\r \001(\014\022\n\n\002c2\030\016 " + - "\001(\014\022\t\n\001z\030\017 \001(\014\022\014\n\004zTag\030\020 \001(\014\032\257\001\n\017ForRand" + - "omOracle\022\n\n\002g1\030\001 \001(\014\022\n\n\002h1\030\002 \001(\014\022\n\n\002g2\030\003" + - " \001(\014\022\n\n\002h2\030\004 \001(\014\022\r\n\005g1Tag\030\005 \001(\014\022\r\n\005h1Tag" + - "\030\006 \001(\014\022\r\n\005g2Tag\030\007 \001(\014\022\r\n\005h2Tag\030\010 \001(\014\022\t\n\001" + - "u\030\t \001(\014\022\t\n\001v\030\n \001(\014\022\014\n\004uTag\030\013 \001(\014\022\014\n\004vTag" + - "\030\014 \001(\014\032/\n\010Location\022\t\n\001i\030\001 \001(\005\022\t\n\001j\030\002 \001(\005", - "\022\r\n\005layer\030\003 \001(\005B\022\n\020meerkat.protobufb\006pro" + - "to3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - meerkat.protobuf.Crypto.getDescriptor(), - }, assigner); - internal_static_meerkat_Plaintext_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_meerkat_Plaintext_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_Plaintext_descriptor, - new java.lang.String[] { "Data", }); - internal_static_meerkat_ZeroKnowledgeProof_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_meerkat_ZeroKnowledgeProof_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_ZeroKnowledgeProof_descriptor, - new java.lang.String[] { "First", "Second", "Third", "Fourth", "Location", }); - internal_static_meerkat_ZeroKnowledgeProof_OrProof_descriptor = - internal_static_meerkat_ZeroKnowledgeProof_descriptor.getNestedTypes().get(0); - internal_static_meerkat_ZeroKnowledgeProof_OrProof_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_ZeroKnowledgeProof_OrProof_descriptor, - new java.lang.String[] { "G1", "H1", "G2", "H2", "G1Tag", "H1Tag", "G2Tag", "H2Tag", "U", "V", "UTag", "VTag", "C1", "C2", "Z", "ZTag", }); - internal_static_meerkat_ZeroKnowledgeProof_OrProof_ForRandomOracle_descriptor = - internal_static_meerkat_ZeroKnowledgeProof_OrProof_descriptor.getNestedTypes().get(0); - internal_static_meerkat_ZeroKnowledgeProof_OrProof_ForRandomOracle_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_ZeroKnowledgeProof_OrProof_ForRandomOracle_descriptor, - new java.lang.String[] { "G1", "H1", "G2", "H2", "G1Tag", "H1Tag", "G2Tag", "H2Tag", "U", "V", "UTag", "VTag", }); - internal_static_meerkat_ZeroKnowledgeProof_Location_descriptor = - internal_static_meerkat_ZeroKnowledgeProof_descriptor.getNestedTypes().get(1); - internal_static_meerkat_ZeroKnowledgeProof_Location_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_ZeroKnowledgeProof_Location_descriptor, - new java.lang.String[] { "I", "J", "Layer", }); - meerkat.protobuf.Crypto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/android-scanner/src/main/java/meerkat/protobuf/PollingStation.java b/android-scanner/src/main/java/meerkat/protobuf/PollingStation.java deleted file mode 100644 index 6dee487..0000000 --- a/android-scanner/src/main/java/meerkat/protobuf/PollingStation.java +++ /dev/null @@ -1,1217 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: meerkat/PollingStation.proto - -package meerkat.protobuf; - -public final class PollingStation { - private PollingStation() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ScannedDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.ScannedData) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>bytes channel = 1;</code> - */ - com.google.protobuf.ByteString getChannel(); - - /** - * <code>.meerkat.SignedEncryptedBallot signed_encrypted_ballot = 2;</code> - */ - boolean hasSignedEncryptedBallot(); - /** - * <code>.meerkat.SignedEncryptedBallot signed_encrypted_ballot = 2;</code> - */ - meerkat.protobuf.Voting.SignedEncryptedBallot getSignedEncryptedBallot(); - /** - * <code>.meerkat.SignedEncryptedBallot signed_encrypted_ballot = 2;</code> - */ - meerkat.protobuf.Voting.SignedEncryptedBallotOrBuilder getSignedEncryptedBallotOrBuilder(); - } - /** - * <pre> - * Container for scanned data - * </pre> - * - * Protobuf type {@code meerkat.ScannedData} - */ - public static final class ScannedData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.ScannedData) - ScannedDataOrBuilder { - // Use ScannedData.newBuilder() to construct. - private ScannedData(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ScannedData() { - channel_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private ScannedData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - - channel_ = input.readBytes(); - break; - } - case 18: { - meerkat.protobuf.Voting.SignedEncryptedBallot.Builder subBuilder = null; - if (signedEncryptedBallot_ != null) { - subBuilder = signedEncryptedBallot_.toBuilder(); - } - signedEncryptedBallot_ = input.readMessage(meerkat.protobuf.Voting.SignedEncryptedBallot.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(signedEncryptedBallot_); - signedEncryptedBallot_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.PollingStation.internal_static_meerkat_ScannedData_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.PollingStation.internal_static_meerkat_ScannedData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.PollingStation.ScannedData.class, meerkat.protobuf.PollingStation.ScannedData.Builder.class); - } - - public static final int CHANNEL_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString channel_; - /** - * <code>bytes channel = 1;</code> - */ - public com.google.protobuf.ByteString getChannel() { - return channel_; - } - - public static final int SIGNED_ENCRYPTED_BALLOT_FIELD_NUMBER = 2; - private meerkat.protobuf.Voting.SignedEncryptedBallot signedEncryptedBallot_; - /** - * <code>.meerkat.SignedEncryptedBallot signed_encrypted_ballot = 2;</code> - */ - public boolean hasSignedEncryptedBallot() { - return signedEncryptedBallot_ != null; - } - /** - * <code>.meerkat.SignedEncryptedBallot signed_encrypted_ballot = 2;</code> - */ - public meerkat.protobuf.Voting.SignedEncryptedBallot getSignedEncryptedBallot() { - return signedEncryptedBallot_ == null ? meerkat.protobuf.Voting.SignedEncryptedBallot.getDefaultInstance() : signedEncryptedBallot_; - } - /** - * <code>.meerkat.SignedEncryptedBallot signed_encrypted_ballot = 2;</code> - */ - public meerkat.protobuf.Voting.SignedEncryptedBallotOrBuilder getSignedEncryptedBallotOrBuilder() { - return getSignedEncryptedBallot(); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!channel_.isEmpty()) { - output.writeBytes(1, channel_); - } - if (signedEncryptedBallot_ != null) { - output.writeMessage(2, getSignedEncryptedBallot()); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!channel_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, channel_); - } - if (signedEncryptedBallot_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSignedEncryptedBallot()); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.PollingStation.ScannedData)) { - return super.equals(obj); - } - meerkat.protobuf.PollingStation.ScannedData other = (meerkat.protobuf.PollingStation.ScannedData) obj; - - boolean result = true; - result = result && getChannel() - .equals(other.getChannel()); - result = result && (hasSignedEncryptedBallot() == other.hasSignedEncryptedBallot()); - if (hasSignedEncryptedBallot()) { - result = result && getSignedEncryptedBallot() - .equals(other.getSignedEncryptedBallot()); - } - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CHANNEL_FIELD_NUMBER; - hash = (53 * hash) + getChannel().hashCode(); - if (hasSignedEncryptedBallot()) { - hash = (37 * hash) + SIGNED_ENCRYPTED_BALLOT_FIELD_NUMBER; - hash = (53 * hash) + getSignedEncryptedBallot().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.PollingStation.ScannedData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.PollingStation.ScannedData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.PollingStation.ScannedData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.PollingStation.ScannedData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.PollingStation.ScannedData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.PollingStation.ScannedData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.PollingStation.ScannedData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.PollingStation.ScannedData parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.PollingStation.ScannedData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.PollingStation.ScannedData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.PollingStation.ScannedData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * <pre> - * Container for scanned data - * </pre> - * - * Protobuf type {@code meerkat.ScannedData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:meerkat.ScannedData) - meerkat.protobuf.PollingStation.ScannedDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.PollingStation.internal_static_meerkat_ScannedData_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.PollingStation.internal_static_meerkat_ScannedData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.PollingStation.ScannedData.class, meerkat.protobuf.PollingStation.ScannedData.Builder.class); - } - - // Construct using meerkat.protobuf.PollingStation.ScannedData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - channel_ = com.google.protobuf.ByteString.EMPTY; - - if (signedEncryptedBallotBuilder_ == null) { - signedEncryptedBallot_ = null; - } else { - signedEncryptedBallot_ = null; - signedEncryptedBallotBuilder_ = null; - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.PollingStation.internal_static_meerkat_ScannedData_descriptor; - } - - public meerkat.protobuf.PollingStation.ScannedData getDefaultInstanceForType() { - return meerkat.protobuf.PollingStation.ScannedData.getDefaultInstance(); - } - - public meerkat.protobuf.PollingStation.ScannedData build() { - meerkat.protobuf.PollingStation.ScannedData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.PollingStation.ScannedData buildPartial() { - meerkat.protobuf.PollingStation.ScannedData result = new meerkat.protobuf.PollingStation.ScannedData(this); - result.channel_ = channel_; - if (signedEncryptedBallotBuilder_ == null) { - result.signedEncryptedBallot_ = signedEncryptedBallot_; - } else { - result.signedEncryptedBallot_ = signedEncryptedBallotBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.PollingStation.ScannedData) { - return mergeFrom((meerkat.protobuf.PollingStation.ScannedData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.PollingStation.ScannedData other) { - if (other == meerkat.protobuf.PollingStation.ScannedData.getDefaultInstance()) return this; - if (other.getChannel() != com.google.protobuf.ByteString.EMPTY) { - setChannel(other.getChannel()); - } - if (other.hasSignedEncryptedBallot()) { - mergeSignedEncryptedBallot(other.getSignedEncryptedBallot()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.PollingStation.ScannedData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.PollingStation.ScannedData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString channel_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>bytes channel = 1;</code> - */ - public com.google.protobuf.ByteString getChannel() { - return channel_; - } - /** - * <code>bytes channel = 1;</code> - */ - public Builder setChannel(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - channel_ = value; - onChanged(); - return this; - } - /** - * <code>bytes channel = 1;</code> - */ - public Builder clearChannel() { - - channel_ = getDefaultInstance().getChannel(); - onChanged(); - return this; - } - - private meerkat.protobuf.Voting.SignedEncryptedBallot signedEncryptedBallot_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Voting.SignedEncryptedBallot, meerkat.protobuf.Voting.SignedEncryptedBallot.Builder, meerkat.protobuf.Voting.SignedEncryptedBallotOrBuilder> signedEncryptedBallotBuilder_; - /** - * <code>.meerkat.SignedEncryptedBallot signed_encrypted_ballot = 2;</code> - */ - public boolean hasSignedEncryptedBallot() { - return signedEncryptedBallotBuilder_ != null || signedEncryptedBallot_ != null; - } - /** - * <code>.meerkat.SignedEncryptedBallot signed_encrypted_ballot = 2;</code> - */ - public meerkat.protobuf.Voting.SignedEncryptedBallot getSignedEncryptedBallot() { - if (signedEncryptedBallotBuilder_ == null) { - return signedEncryptedBallot_ == null ? meerkat.protobuf.Voting.SignedEncryptedBallot.getDefaultInstance() : signedEncryptedBallot_; - } else { - return signedEncryptedBallotBuilder_.getMessage(); - } - } - /** - * <code>.meerkat.SignedEncryptedBallot signed_encrypted_ballot = 2;</code> - */ - public Builder setSignedEncryptedBallot(meerkat.protobuf.Voting.SignedEncryptedBallot value) { - if (signedEncryptedBallotBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - signedEncryptedBallot_ = value; - onChanged(); - } else { - signedEncryptedBallotBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.meerkat.SignedEncryptedBallot signed_encrypted_ballot = 2;</code> - */ - public Builder setSignedEncryptedBallot( - meerkat.protobuf.Voting.SignedEncryptedBallot.Builder builderForValue) { - if (signedEncryptedBallotBuilder_ == null) { - signedEncryptedBallot_ = builderForValue.build(); - onChanged(); - } else { - signedEncryptedBallotBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.meerkat.SignedEncryptedBallot signed_encrypted_ballot = 2;</code> - */ - public Builder mergeSignedEncryptedBallot(meerkat.protobuf.Voting.SignedEncryptedBallot value) { - if (signedEncryptedBallotBuilder_ == null) { - if (signedEncryptedBallot_ != null) { - signedEncryptedBallot_ = - meerkat.protobuf.Voting.SignedEncryptedBallot.newBuilder(signedEncryptedBallot_).mergeFrom(value).buildPartial(); - } else { - signedEncryptedBallot_ = value; - } - onChanged(); - } else { - signedEncryptedBallotBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.meerkat.SignedEncryptedBallot signed_encrypted_ballot = 2;</code> - */ - public Builder clearSignedEncryptedBallot() { - if (signedEncryptedBallotBuilder_ == null) { - signedEncryptedBallot_ = null; - onChanged(); - } else { - signedEncryptedBallot_ = null; - signedEncryptedBallotBuilder_ = null; - } - - return this; - } - /** - * <code>.meerkat.SignedEncryptedBallot signed_encrypted_ballot = 2;</code> - */ - public meerkat.protobuf.Voting.SignedEncryptedBallot.Builder getSignedEncryptedBallotBuilder() { - - onChanged(); - return getSignedEncryptedBallotFieldBuilder().getBuilder(); - } - /** - * <code>.meerkat.SignedEncryptedBallot signed_encrypted_ballot = 2;</code> - */ - public meerkat.protobuf.Voting.SignedEncryptedBallotOrBuilder getSignedEncryptedBallotOrBuilder() { - if (signedEncryptedBallotBuilder_ != null) { - return signedEncryptedBallotBuilder_.getMessageOrBuilder(); - } else { - return signedEncryptedBallot_ == null ? - meerkat.protobuf.Voting.SignedEncryptedBallot.getDefaultInstance() : signedEncryptedBallot_; - } - } - /** - * <code>.meerkat.SignedEncryptedBallot signed_encrypted_ballot = 2;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Voting.SignedEncryptedBallot, meerkat.protobuf.Voting.SignedEncryptedBallot.Builder, meerkat.protobuf.Voting.SignedEncryptedBallotOrBuilder> - getSignedEncryptedBallotFieldBuilder() { - if (signedEncryptedBallotBuilder_ == null) { - signedEncryptedBallotBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Voting.SignedEncryptedBallot, meerkat.protobuf.Voting.SignedEncryptedBallot.Builder, meerkat.protobuf.Voting.SignedEncryptedBallotOrBuilder>( - getSignedEncryptedBallot(), - getParentForChildren(), - isClean()); - signedEncryptedBallot_ = null; - } - return signedEncryptedBallotBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.ScannedData) - } - - // @@protoc_insertion_point(class_scope:meerkat.ScannedData) - private static final meerkat.protobuf.PollingStation.ScannedData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.PollingStation.ScannedData(); - } - - public static meerkat.protobuf.PollingStation.ScannedData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ScannedData> - PARSER = new com.google.protobuf.AbstractParser<ScannedData>() { - public ScannedData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScannedData(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ScannedData> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ScannedData> getParserForType() { - return PARSER; - } - - public meerkat.protobuf.PollingStation.ScannedData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ErrorMsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.ErrorMsg) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>string msg = 1;</code> - */ - java.lang.String getMsg(); - /** - * <code>string msg = 1;</code> - */ - com.google.protobuf.ByteString - getMsgBytes(); - } - /** - * <pre> - * Container for error messages - * </pre> - * - * Protobuf type {@code meerkat.ErrorMsg} - */ - public static final class ErrorMsg extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.ErrorMsg) - ErrorMsgOrBuilder { - // Use ErrorMsg.newBuilder() to construct. - private ErrorMsg(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ErrorMsg() { - msg_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private ErrorMsg( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - msg_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.PollingStation.internal_static_meerkat_ErrorMsg_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.PollingStation.internal_static_meerkat_ErrorMsg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.PollingStation.ErrorMsg.class, meerkat.protobuf.PollingStation.ErrorMsg.Builder.class); - } - - public static final int MSG_FIELD_NUMBER = 1; - private volatile java.lang.Object msg_; - /** - * <code>string msg = 1;</code> - */ - public java.lang.String getMsg() { - java.lang.Object ref = msg_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - msg_ = s; - return s; - } - } - /** - * <code>string msg = 1;</code> - */ - public com.google.protobuf.ByteString - getMsgBytes() { - java.lang.Object ref = msg_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getMsgBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, msg_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getMsgBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, msg_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.PollingStation.ErrorMsg)) { - return super.equals(obj); - } - meerkat.protobuf.PollingStation.ErrorMsg other = (meerkat.protobuf.PollingStation.ErrorMsg) obj; - - boolean result = true; - result = result && getMsg() - .equals(other.getMsg()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MSG_FIELD_NUMBER; - hash = (53 * hash) + getMsg().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.PollingStation.ErrorMsg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.PollingStation.ErrorMsg parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.PollingStation.ErrorMsg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.PollingStation.ErrorMsg parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.PollingStation.ErrorMsg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.PollingStation.ErrorMsg parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.PollingStation.ErrorMsg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.PollingStation.ErrorMsg parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.PollingStation.ErrorMsg parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.PollingStation.ErrorMsg parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.PollingStation.ErrorMsg prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * <pre> - * Container for error messages - * </pre> - * - * Protobuf type {@code meerkat.ErrorMsg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:meerkat.ErrorMsg) - meerkat.protobuf.PollingStation.ErrorMsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.PollingStation.internal_static_meerkat_ErrorMsg_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.PollingStation.internal_static_meerkat_ErrorMsg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.PollingStation.ErrorMsg.class, meerkat.protobuf.PollingStation.ErrorMsg.Builder.class); - } - - // Construct using meerkat.protobuf.PollingStation.ErrorMsg.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - msg_ = ""; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.PollingStation.internal_static_meerkat_ErrorMsg_descriptor; - } - - public meerkat.protobuf.PollingStation.ErrorMsg getDefaultInstanceForType() { - return meerkat.protobuf.PollingStation.ErrorMsg.getDefaultInstance(); - } - - public meerkat.protobuf.PollingStation.ErrorMsg build() { - meerkat.protobuf.PollingStation.ErrorMsg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.PollingStation.ErrorMsg buildPartial() { - meerkat.protobuf.PollingStation.ErrorMsg result = new meerkat.protobuf.PollingStation.ErrorMsg(this); - result.msg_ = msg_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.PollingStation.ErrorMsg) { - return mergeFrom((meerkat.protobuf.PollingStation.ErrorMsg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.PollingStation.ErrorMsg other) { - if (other == meerkat.protobuf.PollingStation.ErrorMsg.getDefaultInstance()) return this; - if (!other.getMsg().isEmpty()) { - msg_ = other.msg_; - onChanged(); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.PollingStation.ErrorMsg parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.PollingStation.ErrorMsg) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object msg_ = ""; - /** - * <code>string msg = 1;</code> - */ - public java.lang.String getMsg() { - java.lang.Object ref = msg_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - msg_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * <code>string msg = 1;</code> - */ - public com.google.protobuf.ByteString - getMsgBytes() { - java.lang.Object ref = msg_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * <code>string msg = 1;</code> - */ - public Builder setMsg( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - msg_ = value; - onChanged(); - return this; - } - /** - * <code>string msg = 1;</code> - */ - public Builder clearMsg() { - - msg_ = getDefaultInstance().getMsg(); - onChanged(); - return this; - } - /** - * <code>string msg = 1;</code> - */ - public Builder setMsgBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - msg_ = value; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.ErrorMsg) - } - - // @@protoc_insertion_point(class_scope:meerkat.ErrorMsg) - private static final meerkat.protobuf.PollingStation.ErrorMsg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.PollingStation.ErrorMsg(); - } - - public static meerkat.protobuf.PollingStation.ErrorMsg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ErrorMsg> - PARSER = new com.google.protobuf.AbstractParser<ErrorMsg>() { - public ErrorMsg parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ErrorMsg(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ErrorMsg> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ErrorMsg> getParserForType() { - return PARSER; - } - - public meerkat.protobuf.PollingStation.ErrorMsg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_ScannedData_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_ScannedData_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_ErrorMsg_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_ErrorMsg_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034meerkat/PollingStation.proto\022\007meerkat\032" + - "\024meerkat/voting.proto\"_\n\013ScannedData\022\017\n\007" + - "channel\030\001 \001(\014\022?\n\027signed_encrypted_ballot" + - "\030\002 \001(\0132\036.meerkat.SignedEncryptedBallot\"\027" + - "\n\010ErrorMsg\022\013\n\003msg\030\001 \001(\tB\022\n\020meerkat.proto" + - "bufb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - meerkat.protobuf.Voting.getDescriptor(), - }, assigner); - internal_static_meerkat_ScannedData_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_meerkat_ScannedData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_ScannedData_descriptor, - new java.lang.String[] { "Channel", "SignedEncryptedBallot", }); - internal_static_meerkat_ErrorMsg_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_meerkat_ErrorMsg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_ErrorMsg_descriptor, - new java.lang.String[] { "Msg", }); - meerkat.protobuf.Voting.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/android-scanner/src/main/java/meerkat/protobuf/Voting.java b/android-scanner/src/main/java/meerkat/protobuf/Voting.java deleted file mode 100644 index 0201180..0000000 --- a/android-scanner/src/main/java/meerkat/protobuf/Voting.java +++ /dev/null @@ -1,15529 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: meerkat/voting.proto - -package meerkat.protobuf; - -public final class Voting { - private Voting() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * <pre> - * Type of the element data to be presented by UI - * </pre> - * - * Protobuf enum {@code meerkat.UIElementDataType} - */ - public enum UIElementDataType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <code>TEXT = 0;</code> - */ - TEXT(0), - /** - * <code>IMAGE = 1;</code> - */ - IMAGE(1), - /** - * <code>VOICE = 2;</code> - */ - VOICE(2), - UNRECOGNIZED(-1), - ; - - /** - * <code>TEXT = 0;</code> - */ - public static final int TEXT_VALUE = 0; - /** - * <code>IMAGE = 1;</code> - */ - public static final int IMAGE_VALUE = 1; - /** - * <code>VOICE = 2;</code> - */ - public static final int VOICE_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static UIElementDataType valueOf(int value) { - return forNumber(value); - } - - public static UIElementDataType forNumber(int value) { - switch (value) { - case 0: return TEXT; - case 1: return IMAGE; - case 2: return VOICE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<UIElementDataType> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - UIElementDataType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<UIElementDataType>() { - public UIElementDataType findValueByNumber(int number) { - return UIElementDataType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return meerkat.protobuf.Voting.getDescriptor().getEnumTypes().get(0); - } - - private static final UIElementDataType[] VALUES = values(); - - public static UIElementDataType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private UIElementDataType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:meerkat.UIElementDataType) - } - - /** - * <pre> - * Type of question - * </pre> - * - * Protobuf enum {@code meerkat.QuestionType} - */ - public enum QuestionType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * <code>MULTIPLE_CHOICE = 0;</code> - */ - MULTIPLE_CHOICE(0), - /** - * <code>MULTIPLE_SELECTION = 1;</code> - */ - MULTIPLE_SELECTION(1), - /** - * <code>ORDER = 2;</code> - */ - ORDER(2), - UNRECOGNIZED(-1), - ; - - /** - * <code>MULTIPLE_CHOICE = 0;</code> - */ - public static final int MULTIPLE_CHOICE_VALUE = 0; - /** - * <code>MULTIPLE_SELECTION = 1;</code> - */ - public static final int MULTIPLE_SELECTION_VALUE = 1; - /** - * <code>ORDER = 2;</code> - */ - public static final int ORDER_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static QuestionType valueOf(int value) { - return forNumber(value); - } - - public static QuestionType forNumber(int value) { - switch (value) { - case 0: return MULTIPLE_CHOICE; - case 1: return MULTIPLE_SELECTION; - case 2: return ORDER; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap<QuestionType> - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - QuestionType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap<QuestionType>() { - public QuestionType findValueByNumber(int number) { - return QuestionType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return meerkat.protobuf.Voting.getDescriptor().getEnumTypes().get(1); - } - - private static final QuestionType[] VALUES = values(); - - public static QuestionType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private QuestionType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:meerkat.QuestionType) - } - - public interface UIElementOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.UIElement) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>.meerkat.UIElementDataType type = 1;</code> - */ - int getTypeValue(); - /** - * <code>.meerkat.UIElementDataType type = 1;</code> - */ - meerkat.protobuf.Voting.UIElementDataType getType(); - - /** - * <code>bytes data = 2;</code> - */ - com.google.protobuf.ByteString getData(); - } - /** - * <pre> - * An element to be presented by UI - * </pre> - * - * Protobuf type {@code meerkat.UIElement} - */ - public static final class UIElement extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.UIElement) - UIElementOrBuilder { - // Use UIElement.newBuilder() to construct. - private UIElement(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private UIElement() { - type_ = 0; - data_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private UIElement( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 18: { - - data_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Voting.internal_static_meerkat_UIElement_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Voting.internal_static_meerkat_UIElement_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Voting.UIElement.class, meerkat.protobuf.Voting.UIElement.Builder.class); - } - - public static final int TYPE_FIELD_NUMBER = 1; - private int type_; - /** - * <code>.meerkat.UIElementDataType type = 1;</code> - */ - public int getTypeValue() { - return type_; - } - /** - * <code>.meerkat.UIElementDataType type = 1;</code> - */ - public meerkat.protobuf.Voting.UIElementDataType getType() { - meerkat.protobuf.Voting.UIElementDataType result = meerkat.protobuf.Voting.UIElementDataType.valueOf(type_); - return result == null ? meerkat.protobuf.Voting.UIElementDataType.UNRECOGNIZED : result; - } - - public static final int DATA_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString data_; - /** - * <code>bytes data = 2;</code> - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (type_ != meerkat.protobuf.Voting.UIElementDataType.TEXT.getNumber()) { - output.writeEnum(1, type_); - } - if (!data_.isEmpty()) { - output.writeBytes(2, data_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (type_ != meerkat.protobuf.Voting.UIElementDataType.TEXT.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); - } - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, data_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.Voting.UIElement)) { - return super.equals(obj); - } - meerkat.protobuf.Voting.UIElement other = (meerkat.protobuf.Voting.UIElement) obj; - - boolean result = true; - result = result && type_ == other.type_; - result = result && getData() - .equals(other.getData()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.Voting.UIElement parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Voting.UIElement parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Voting.UIElement parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Voting.UIElement parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Voting.UIElement parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.UIElement parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Voting.UIElement parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.UIElement parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Voting.UIElement parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.UIElement parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.Voting.UIElement prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * <pre> - * An element to be presented by UI - * </pre> - * - * Protobuf type {@code meerkat.UIElement} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:meerkat.UIElement) - meerkat.protobuf.Voting.UIElementOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Voting.internal_static_meerkat_UIElement_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Voting.internal_static_meerkat_UIElement_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Voting.UIElement.class, meerkat.protobuf.Voting.UIElement.Builder.class); - } - - // Construct using meerkat.protobuf.Voting.UIElement.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - type_ = 0; - - data_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.Voting.internal_static_meerkat_UIElement_descriptor; - } - - public meerkat.protobuf.Voting.UIElement getDefaultInstanceForType() { - return meerkat.protobuf.Voting.UIElement.getDefaultInstance(); - } - - public meerkat.protobuf.Voting.UIElement build() { - meerkat.protobuf.Voting.UIElement result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.Voting.UIElement buildPartial() { - meerkat.protobuf.Voting.UIElement result = new meerkat.protobuf.Voting.UIElement(this); - result.type_ = type_; - result.data_ = data_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.Voting.UIElement) { - return mergeFrom((meerkat.protobuf.Voting.UIElement)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.Voting.UIElement other) { - if (other == meerkat.protobuf.Voting.UIElement.getDefaultInstance()) return this; - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.Voting.UIElement parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.Voting.UIElement) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int type_ = 0; - /** - * <code>.meerkat.UIElementDataType type = 1;</code> - */ - public int getTypeValue() { - return type_; - } - /** - * <code>.meerkat.UIElementDataType type = 1;</code> - */ - public Builder setTypeValue(int value) { - type_ = value; - onChanged(); - return this; - } - /** - * <code>.meerkat.UIElementDataType type = 1;</code> - */ - public meerkat.protobuf.Voting.UIElementDataType getType() { - meerkat.protobuf.Voting.UIElementDataType result = meerkat.protobuf.Voting.UIElementDataType.valueOf(type_); - return result == null ? meerkat.protobuf.Voting.UIElementDataType.UNRECOGNIZED : result; - } - /** - * <code>.meerkat.UIElementDataType type = 1;</code> - */ - public Builder setType(meerkat.protobuf.Voting.UIElementDataType value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - * <code>.meerkat.UIElementDataType type = 1;</code> - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>bytes data = 2;</code> - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - * <code>bytes data = 2;</code> - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - * <code>bytes data = 2;</code> - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.UIElement) - } - - // @@protoc_insertion_point(class_scope:meerkat.UIElement) - private static final meerkat.protobuf.Voting.UIElement DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.Voting.UIElement(); - } - - public static meerkat.protobuf.Voting.UIElement getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<UIElement> - PARSER = new com.google.protobuf.AbstractParser<UIElement>() { - public UIElement parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UIElement(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<UIElement> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<UIElement> getParserForType() { - return PARSER; - } - - public meerkat.protobuf.Voting.UIElement getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BallotQuestionOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.BallotQuestion) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>bool is_mandatory = 1;</code> - */ - boolean getIsMandatory(); - - /** - * <code>.meerkat.UIElement question = 2;</code> - */ - boolean hasQuestion(); - /** - * <code>.meerkat.UIElement question = 2;</code> - */ - meerkat.protobuf.Voting.UIElement getQuestion(); - /** - * <code>.meerkat.UIElement question = 2;</code> - */ - meerkat.protobuf.Voting.UIElementOrBuilder getQuestionOrBuilder(); - - /** - * <code>.meerkat.UIElement description = 3;</code> - */ - boolean hasDescription(); - /** - * <code>.meerkat.UIElement description = 3;</code> - */ - meerkat.protobuf.Voting.UIElement getDescription(); - /** - * <code>.meerkat.UIElement description = 3;</code> - */ - meerkat.protobuf.Voting.UIElementOrBuilder getDescriptionOrBuilder(); - - /** - * <code>repeated .meerkat.UIElement answer = 4;</code> - */ - java.util.List<meerkat.protobuf.Voting.UIElement> - getAnswerList(); - /** - * <code>repeated .meerkat.UIElement answer = 4;</code> - */ - meerkat.protobuf.Voting.UIElement getAnswer(int index); - /** - * <code>repeated .meerkat.UIElement answer = 4;</code> - */ - int getAnswerCount(); - /** - * <code>repeated .meerkat.UIElement answer = 4;</code> - */ - java.util.List<? extends meerkat.protobuf.Voting.UIElementOrBuilder> - getAnswerOrBuilderList(); - /** - * <code>repeated .meerkat.UIElement answer = 4;</code> - */ - meerkat.protobuf.Voting.UIElementOrBuilder getAnswerOrBuilder( - int index); - } - /** - * <pre> - * A question in the ballot - * is_mandatory determines whether the question may be skipped with no answer - * description might hold information/guidlines for the voter - * </pre> - * - * Protobuf type {@code meerkat.BallotQuestion} - */ - public static final class BallotQuestion extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.BallotQuestion) - BallotQuestionOrBuilder { - // Use BallotQuestion.newBuilder() to construct. - private BallotQuestion(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private BallotQuestion() { - isMandatory_ = false; - answer_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private BallotQuestion( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - isMandatory_ = input.readBool(); - break; - } - case 18: { - meerkat.protobuf.Voting.UIElement.Builder subBuilder = null; - if (question_ != null) { - subBuilder = question_.toBuilder(); - } - question_ = input.readMessage(meerkat.protobuf.Voting.UIElement.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(question_); - question_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - meerkat.protobuf.Voting.UIElement.Builder subBuilder = null; - if (description_ != null) { - subBuilder = description_.toBuilder(); - } - description_ = input.readMessage(meerkat.protobuf.Voting.UIElement.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(description_); - description_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - answer_ = new java.util.ArrayList<meerkat.protobuf.Voting.UIElement>(); - mutable_bitField0_ |= 0x00000008; - } - answer_.add( - input.readMessage(meerkat.protobuf.Voting.UIElement.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - answer_ = java.util.Collections.unmodifiableList(answer_); - } - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Voting.internal_static_meerkat_BallotQuestion_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Voting.internal_static_meerkat_BallotQuestion_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Voting.BallotQuestion.class, meerkat.protobuf.Voting.BallotQuestion.Builder.class); - } - - private int bitField0_; - public static final int IS_MANDATORY_FIELD_NUMBER = 1; - private boolean isMandatory_; - /** - * <code>bool is_mandatory = 1;</code> - */ - public boolean getIsMandatory() { - return isMandatory_; - } - - public static final int QUESTION_FIELD_NUMBER = 2; - private meerkat.protobuf.Voting.UIElement question_; - /** - * <code>.meerkat.UIElement question = 2;</code> - */ - public boolean hasQuestion() { - return question_ != null; - } - /** - * <code>.meerkat.UIElement question = 2;</code> - */ - public meerkat.protobuf.Voting.UIElement getQuestion() { - return question_ == null ? meerkat.protobuf.Voting.UIElement.getDefaultInstance() : question_; - } - /** - * <code>.meerkat.UIElement question = 2;</code> - */ - public meerkat.protobuf.Voting.UIElementOrBuilder getQuestionOrBuilder() { - return getQuestion(); - } - - public static final int DESCRIPTION_FIELD_NUMBER = 3; - private meerkat.protobuf.Voting.UIElement description_; - /** - * <code>.meerkat.UIElement description = 3;</code> - */ - public boolean hasDescription() { - return description_ != null; - } - /** - * <code>.meerkat.UIElement description = 3;</code> - */ - public meerkat.protobuf.Voting.UIElement getDescription() { - return description_ == null ? meerkat.protobuf.Voting.UIElement.getDefaultInstance() : description_; - } - /** - * <code>.meerkat.UIElement description = 3;</code> - */ - public meerkat.protobuf.Voting.UIElementOrBuilder getDescriptionOrBuilder() { - return getDescription(); - } - - public static final int ANSWER_FIELD_NUMBER = 4; - private java.util.List<meerkat.protobuf.Voting.UIElement> answer_; - /** - * <code>repeated .meerkat.UIElement answer = 4;</code> - */ - public java.util.List<meerkat.protobuf.Voting.UIElement> getAnswerList() { - return answer_; - } - /** - * <code>repeated .meerkat.UIElement answer = 4;</code> - */ - public java.util.List<? extends meerkat.protobuf.Voting.UIElementOrBuilder> - getAnswerOrBuilderList() { - return answer_; - } - /** - * <code>repeated .meerkat.UIElement answer = 4;</code> - */ - public int getAnswerCount() { - return answer_.size(); - } - /** - * <code>repeated .meerkat.UIElement answer = 4;</code> - */ - public meerkat.protobuf.Voting.UIElement getAnswer(int index) { - return answer_.get(index); - } - /** - * <code>repeated .meerkat.UIElement answer = 4;</code> - */ - public meerkat.protobuf.Voting.UIElementOrBuilder getAnswerOrBuilder( - int index) { - return answer_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (isMandatory_ != false) { - output.writeBool(1, isMandatory_); - } - if (question_ != null) { - output.writeMessage(2, getQuestion()); - } - if (description_ != null) { - output.writeMessage(3, getDescription()); - } - for (int i = 0; i < answer_.size(); i++) { - output.writeMessage(4, answer_.get(i)); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (isMandatory_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, isMandatory_); - } - if (question_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getQuestion()); - } - if (description_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getDescription()); - } - for (int i = 0; i < answer_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, answer_.get(i)); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.Voting.BallotQuestion)) { - return super.equals(obj); - } - meerkat.protobuf.Voting.BallotQuestion other = (meerkat.protobuf.Voting.BallotQuestion) obj; - - boolean result = true; - result = result && (getIsMandatory() - == other.getIsMandatory()); - result = result && (hasQuestion() == other.hasQuestion()); - if (hasQuestion()) { - result = result && getQuestion() - .equals(other.getQuestion()); - } - result = result && (hasDescription() == other.hasDescription()); - if (hasDescription()) { - result = result && getDescription() - .equals(other.getDescription()); - } - result = result && getAnswerList() - .equals(other.getAnswerList()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + IS_MANDATORY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsMandatory()); - if (hasQuestion()) { - hash = (37 * hash) + QUESTION_FIELD_NUMBER; - hash = (53 * hash) + getQuestion().hashCode(); - } - if (hasDescription()) { - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - } - if (getAnswerCount() > 0) { - hash = (37 * hash) + ANSWER_FIELD_NUMBER; - hash = (53 * hash) + getAnswerList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.Voting.BallotQuestion parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Voting.BallotQuestion parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Voting.BallotQuestion parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Voting.BallotQuestion parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Voting.BallotQuestion parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.BallotQuestion parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Voting.BallotQuestion parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.BallotQuestion parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Voting.BallotQuestion parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.BallotQuestion parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.Voting.BallotQuestion prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * <pre> - * A question in the ballot - * is_mandatory determines whether the question may be skipped with no answer - * description might hold information/guidlines for the voter - * </pre> - * - * Protobuf type {@code meerkat.BallotQuestion} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:meerkat.BallotQuestion) - meerkat.protobuf.Voting.BallotQuestionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Voting.internal_static_meerkat_BallotQuestion_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Voting.internal_static_meerkat_BallotQuestion_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Voting.BallotQuestion.class, meerkat.protobuf.Voting.BallotQuestion.Builder.class); - } - - // Construct using meerkat.protobuf.Voting.BallotQuestion.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getAnswerFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - isMandatory_ = false; - - if (questionBuilder_ == null) { - question_ = null; - } else { - question_ = null; - questionBuilder_ = null; - } - if (descriptionBuilder_ == null) { - description_ = null; - } else { - description_ = null; - descriptionBuilder_ = null; - } - if (answerBuilder_ == null) { - answer_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - answerBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.Voting.internal_static_meerkat_BallotQuestion_descriptor; - } - - public meerkat.protobuf.Voting.BallotQuestion getDefaultInstanceForType() { - return meerkat.protobuf.Voting.BallotQuestion.getDefaultInstance(); - } - - public meerkat.protobuf.Voting.BallotQuestion build() { - meerkat.protobuf.Voting.BallotQuestion result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.Voting.BallotQuestion buildPartial() { - meerkat.protobuf.Voting.BallotQuestion result = new meerkat.protobuf.Voting.BallotQuestion(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.isMandatory_ = isMandatory_; - if (questionBuilder_ == null) { - result.question_ = question_; - } else { - result.question_ = questionBuilder_.build(); - } - if (descriptionBuilder_ == null) { - result.description_ = description_; - } else { - result.description_ = descriptionBuilder_.build(); - } - if (answerBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008)) { - answer_ = java.util.Collections.unmodifiableList(answer_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.answer_ = answer_; - } else { - result.answer_ = answerBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.Voting.BallotQuestion) { - return mergeFrom((meerkat.protobuf.Voting.BallotQuestion)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.Voting.BallotQuestion other) { - if (other == meerkat.protobuf.Voting.BallotQuestion.getDefaultInstance()) return this; - if (other.getIsMandatory() != false) { - setIsMandatory(other.getIsMandatory()); - } - if (other.hasQuestion()) { - mergeQuestion(other.getQuestion()); - } - if (other.hasDescription()) { - mergeDescription(other.getDescription()); - } - if (answerBuilder_ == null) { - if (!other.answer_.isEmpty()) { - if (answer_.isEmpty()) { - answer_ = other.answer_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureAnswerIsMutable(); - answer_.addAll(other.answer_); - } - onChanged(); - } - } else { - if (!other.answer_.isEmpty()) { - if (answerBuilder_.isEmpty()) { - answerBuilder_.dispose(); - answerBuilder_ = null; - answer_ = other.answer_; - bitField0_ = (bitField0_ & ~0x00000008); - answerBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAnswerFieldBuilder() : null; - } else { - answerBuilder_.addAllMessages(other.answer_); - } - } - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.Voting.BallotQuestion parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.Voting.BallotQuestion) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private boolean isMandatory_ ; - /** - * <code>bool is_mandatory = 1;</code> - */ - public boolean getIsMandatory() { - return isMandatory_; - } - /** - * <code>bool is_mandatory = 1;</code> - */ - public Builder setIsMandatory(boolean value) { - - isMandatory_ = value; - onChanged(); - return this; - } - /** - * <code>bool is_mandatory = 1;</code> - */ - public Builder clearIsMandatory() { - - isMandatory_ = false; - onChanged(); - return this; - } - - private meerkat.protobuf.Voting.UIElement question_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Voting.UIElement, meerkat.protobuf.Voting.UIElement.Builder, meerkat.protobuf.Voting.UIElementOrBuilder> questionBuilder_; - /** - * <code>.meerkat.UIElement question = 2;</code> - */ - public boolean hasQuestion() { - return questionBuilder_ != null || question_ != null; - } - /** - * <code>.meerkat.UIElement question = 2;</code> - */ - public meerkat.protobuf.Voting.UIElement getQuestion() { - if (questionBuilder_ == null) { - return question_ == null ? meerkat.protobuf.Voting.UIElement.getDefaultInstance() : question_; - } else { - return questionBuilder_.getMessage(); - } - } - /** - * <code>.meerkat.UIElement question = 2;</code> - */ - public Builder setQuestion(meerkat.protobuf.Voting.UIElement value) { - if (questionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - question_ = value; - onChanged(); - } else { - questionBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.meerkat.UIElement question = 2;</code> - */ - public Builder setQuestion( - meerkat.protobuf.Voting.UIElement.Builder builderForValue) { - if (questionBuilder_ == null) { - question_ = builderForValue.build(); - onChanged(); - } else { - questionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.meerkat.UIElement question = 2;</code> - */ - public Builder mergeQuestion(meerkat.protobuf.Voting.UIElement value) { - if (questionBuilder_ == null) { - if (question_ != null) { - question_ = - meerkat.protobuf.Voting.UIElement.newBuilder(question_).mergeFrom(value).buildPartial(); - } else { - question_ = value; - } - onChanged(); - } else { - questionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.meerkat.UIElement question = 2;</code> - */ - public Builder clearQuestion() { - if (questionBuilder_ == null) { - question_ = null; - onChanged(); - } else { - question_ = null; - questionBuilder_ = null; - } - - return this; - } - /** - * <code>.meerkat.UIElement question = 2;</code> - */ - public meerkat.protobuf.Voting.UIElement.Builder getQuestionBuilder() { - - onChanged(); - return getQuestionFieldBuilder().getBuilder(); - } - /** - * <code>.meerkat.UIElement question = 2;</code> - */ - public meerkat.protobuf.Voting.UIElementOrBuilder getQuestionOrBuilder() { - if (questionBuilder_ != null) { - return questionBuilder_.getMessageOrBuilder(); - } else { - return question_ == null ? - meerkat.protobuf.Voting.UIElement.getDefaultInstance() : question_; - } - } - /** - * <code>.meerkat.UIElement question = 2;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Voting.UIElement, meerkat.protobuf.Voting.UIElement.Builder, meerkat.protobuf.Voting.UIElementOrBuilder> - getQuestionFieldBuilder() { - if (questionBuilder_ == null) { - questionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Voting.UIElement, meerkat.protobuf.Voting.UIElement.Builder, meerkat.protobuf.Voting.UIElementOrBuilder>( - getQuestion(), - getParentForChildren(), - isClean()); - question_ = null; - } - return questionBuilder_; - } - - private meerkat.protobuf.Voting.UIElement description_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Voting.UIElement, meerkat.protobuf.Voting.UIElement.Builder, meerkat.protobuf.Voting.UIElementOrBuilder> descriptionBuilder_; - /** - * <code>.meerkat.UIElement description = 3;</code> - */ - public boolean hasDescription() { - return descriptionBuilder_ != null || description_ != null; - } - /** - * <code>.meerkat.UIElement description = 3;</code> - */ - public meerkat.protobuf.Voting.UIElement getDescription() { - if (descriptionBuilder_ == null) { - return description_ == null ? meerkat.protobuf.Voting.UIElement.getDefaultInstance() : description_; - } else { - return descriptionBuilder_.getMessage(); - } - } - /** - * <code>.meerkat.UIElement description = 3;</code> - */ - public Builder setDescription(meerkat.protobuf.Voting.UIElement value) { - if (descriptionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - description_ = value; - onChanged(); - } else { - descriptionBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.meerkat.UIElement description = 3;</code> - */ - public Builder setDescription( - meerkat.protobuf.Voting.UIElement.Builder builderForValue) { - if (descriptionBuilder_ == null) { - description_ = builderForValue.build(); - onChanged(); - } else { - descriptionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.meerkat.UIElement description = 3;</code> - */ - public Builder mergeDescription(meerkat.protobuf.Voting.UIElement value) { - if (descriptionBuilder_ == null) { - if (description_ != null) { - description_ = - meerkat.protobuf.Voting.UIElement.newBuilder(description_).mergeFrom(value).buildPartial(); - } else { - description_ = value; - } - onChanged(); - } else { - descriptionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.meerkat.UIElement description = 3;</code> - */ - public Builder clearDescription() { - if (descriptionBuilder_ == null) { - description_ = null; - onChanged(); - } else { - description_ = null; - descriptionBuilder_ = null; - } - - return this; - } - /** - * <code>.meerkat.UIElement description = 3;</code> - */ - public meerkat.protobuf.Voting.UIElement.Builder getDescriptionBuilder() { - - onChanged(); - return getDescriptionFieldBuilder().getBuilder(); - } - /** - * <code>.meerkat.UIElement description = 3;</code> - */ - public meerkat.protobuf.Voting.UIElementOrBuilder getDescriptionOrBuilder() { - if (descriptionBuilder_ != null) { - return descriptionBuilder_.getMessageOrBuilder(); - } else { - return description_ == null ? - meerkat.protobuf.Voting.UIElement.getDefaultInstance() : description_; - } - } - /** - * <code>.meerkat.UIElement description = 3;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Voting.UIElement, meerkat.protobuf.Voting.UIElement.Builder, meerkat.protobuf.Voting.UIElementOrBuilder> - getDescriptionFieldBuilder() { - if (descriptionBuilder_ == null) { - descriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Voting.UIElement, meerkat.protobuf.Voting.UIElement.Builder, meerkat.protobuf.Voting.UIElementOrBuilder>( - getDescription(), - getParentForChildren(), - isClean()); - description_ = null; - } - return descriptionBuilder_; - } - - private java.util.List<meerkat.protobuf.Voting.UIElement> answer_ = - java.util.Collections.emptyList(); - private void ensureAnswerIsMutable() { - if (!((bitField0_ & 0x00000008) == 0x00000008)) { - answer_ = new java.util.ArrayList<meerkat.protobuf.Voting.UIElement>(answer_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.Voting.UIElement, meerkat.protobuf.Voting.UIElement.Builder, meerkat.protobuf.Voting.UIElementOrBuilder> answerBuilder_; - - /** - * <code>repeated .meerkat.UIElement answer = 4;</code> - */ - public java.util.List<meerkat.protobuf.Voting.UIElement> getAnswerList() { - if (answerBuilder_ == null) { - return java.util.Collections.unmodifiableList(answer_); - } else { - return answerBuilder_.getMessageList(); - } - } - /** - * <code>repeated .meerkat.UIElement answer = 4;</code> - */ - public int getAnswerCount() { - if (answerBuilder_ == null) { - return answer_.size(); - } else { - return answerBuilder_.getCount(); - } - } - /** - * <code>repeated .meerkat.UIElement answer = 4;</code> - */ - public meerkat.protobuf.Voting.UIElement getAnswer(int index) { - if (answerBuilder_ == null) { - return answer_.get(index); - } else { - return answerBuilder_.getMessage(index); - } - } - /** - * <code>repeated .meerkat.UIElement answer = 4;</code> - */ - public Builder setAnswer( - int index, meerkat.protobuf.Voting.UIElement value) { - if (answerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAnswerIsMutable(); - answer_.set(index, value); - onChanged(); - } else { - answerBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .meerkat.UIElement answer = 4;</code> - */ - public Builder setAnswer( - int index, meerkat.protobuf.Voting.UIElement.Builder builderForValue) { - if (answerBuilder_ == null) { - ensureAnswerIsMutable(); - answer_.set(index, builderForValue.build()); - onChanged(); - } else { - answerBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .meerkat.UIElement answer = 4;</code> - */ - public Builder addAnswer(meerkat.protobuf.Voting.UIElement value) { - if (answerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAnswerIsMutable(); - answer_.add(value); - onChanged(); - } else { - answerBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .meerkat.UIElement answer = 4;</code> - */ - public Builder addAnswer( - int index, meerkat.protobuf.Voting.UIElement value) { - if (answerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAnswerIsMutable(); - answer_.add(index, value); - onChanged(); - } else { - answerBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .meerkat.UIElement answer = 4;</code> - */ - public Builder addAnswer( - meerkat.protobuf.Voting.UIElement.Builder builderForValue) { - if (answerBuilder_ == null) { - ensureAnswerIsMutable(); - answer_.add(builderForValue.build()); - onChanged(); - } else { - answerBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .meerkat.UIElement answer = 4;</code> - */ - public Builder addAnswer( - int index, meerkat.protobuf.Voting.UIElement.Builder builderForValue) { - if (answerBuilder_ == null) { - ensureAnswerIsMutable(); - answer_.add(index, builderForValue.build()); - onChanged(); - } else { - answerBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .meerkat.UIElement answer = 4;</code> - */ - public Builder addAllAnswer( - java.lang.Iterable<? extends meerkat.protobuf.Voting.UIElement> values) { - if (answerBuilder_ == null) { - ensureAnswerIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, answer_); - onChanged(); - } else { - answerBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .meerkat.UIElement answer = 4;</code> - */ - public Builder clearAnswer() { - if (answerBuilder_ == null) { - answer_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - answerBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .meerkat.UIElement answer = 4;</code> - */ - public Builder removeAnswer(int index) { - if (answerBuilder_ == null) { - ensureAnswerIsMutable(); - answer_.remove(index); - onChanged(); - } else { - answerBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .meerkat.UIElement answer = 4;</code> - */ - public meerkat.protobuf.Voting.UIElement.Builder getAnswerBuilder( - int index) { - return getAnswerFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .meerkat.UIElement answer = 4;</code> - */ - public meerkat.protobuf.Voting.UIElementOrBuilder getAnswerOrBuilder( - int index) { - if (answerBuilder_ == null) { - return answer_.get(index); } else { - return answerBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .meerkat.UIElement answer = 4;</code> - */ - public java.util.List<? extends meerkat.protobuf.Voting.UIElementOrBuilder> - getAnswerOrBuilderList() { - if (answerBuilder_ != null) { - return answerBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(answer_); - } - } - /** - * <code>repeated .meerkat.UIElement answer = 4;</code> - */ - public meerkat.protobuf.Voting.UIElement.Builder addAnswerBuilder() { - return getAnswerFieldBuilder().addBuilder( - meerkat.protobuf.Voting.UIElement.getDefaultInstance()); - } - /** - * <code>repeated .meerkat.UIElement answer = 4;</code> - */ - public meerkat.protobuf.Voting.UIElement.Builder addAnswerBuilder( - int index) { - return getAnswerFieldBuilder().addBuilder( - index, meerkat.protobuf.Voting.UIElement.getDefaultInstance()); - } - /** - * <code>repeated .meerkat.UIElement answer = 4;</code> - */ - public java.util.List<meerkat.protobuf.Voting.UIElement.Builder> - getAnswerBuilderList() { - return getAnswerFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.Voting.UIElement, meerkat.protobuf.Voting.UIElement.Builder, meerkat.protobuf.Voting.UIElementOrBuilder> - getAnswerFieldBuilder() { - if (answerBuilder_ == null) { - answerBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.Voting.UIElement, meerkat.protobuf.Voting.UIElement.Builder, meerkat.protobuf.Voting.UIElementOrBuilder>( - answer_, - ((bitField0_ & 0x00000008) == 0x00000008), - getParentForChildren(), - isClean()); - answer_ = null; - } - return answerBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.BallotQuestion) - } - - // @@protoc_insertion_point(class_scope:meerkat.BallotQuestion) - private static final meerkat.protobuf.Voting.BallotQuestion DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.Voting.BallotQuestion(); - } - - public static meerkat.protobuf.Voting.BallotQuestion getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<BallotQuestion> - PARSER = new com.google.protobuf.AbstractParser<BallotQuestion>() { - public BallotQuestion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BallotQuestion(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<BallotQuestion> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<BallotQuestion> getParserForType() { - return PARSER; - } - - public meerkat.protobuf.Voting.BallotQuestion getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface QuestionClusterOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.QuestionCluster) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>.meerkat.UIElement cluster_description = 1;</code> - */ - boolean hasClusterDescription(); - /** - * <code>.meerkat.UIElement cluster_description = 1;</code> - */ - meerkat.protobuf.Voting.UIElement getClusterDescription(); - /** - * <code>.meerkat.UIElement cluster_description = 1;</code> - */ - meerkat.protobuf.Voting.UIElementOrBuilder getClusterDescriptionOrBuilder(); - - /** - * <code>repeated int32 question_index = 2;</code> - */ - java.util.List<java.lang.Integer> getQuestionIndexList(); - /** - * <code>repeated int32 question_index = 2;</code> - */ - int getQuestionIndexCount(); - /** - * <code>repeated int32 question_index = 2;</code> - */ - int getQuestionIndex(int index); - } - /** - * Protobuf type {@code meerkat.QuestionCluster} - */ - public static final class QuestionCluster extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.QuestionCluster) - QuestionClusterOrBuilder { - // Use QuestionCluster.newBuilder() to construct. - private QuestionCluster(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private QuestionCluster() { - questionIndex_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private QuestionCluster( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - meerkat.protobuf.Voting.UIElement.Builder subBuilder = null; - if (clusterDescription_ != null) { - subBuilder = clusterDescription_.toBuilder(); - } - clusterDescription_ = input.readMessage(meerkat.protobuf.Voting.UIElement.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(clusterDescription_); - clusterDescription_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - questionIndex_ = new java.util.ArrayList<java.lang.Integer>(); - mutable_bitField0_ |= 0x00000002; - } - questionIndex_.add(input.readInt32()); - break; - } - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { - questionIndex_ = new java.util.ArrayList<java.lang.Integer>(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - questionIndex_.add(input.readInt32()); - } - input.popLimit(limit); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - questionIndex_ = java.util.Collections.unmodifiableList(questionIndex_); - } - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Voting.internal_static_meerkat_QuestionCluster_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Voting.internal_static_meerkat_QuestionCluster_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Voting.QuestionCluster.class, meerkat.protobuf.Voting.QuestionCluster.Builder.class); - } - - private int bitField0_; - public static final int CLUSTER_DESCRIPTION_FIELD_NUMBER = 1; - private meerkat.protobuf.Voting.UIElement clusterDescription_; - /** - * <code>.meerkat.UIElement cluster_description = 1;</code> - */ - public boolean hasClusterDescription() { - return clusterDescription_ != null; - } - /** - * <code>.meerkat.UIElement cluster_description = 1;</code> - */ - public meerkat.protobuf.Voting.UIElement getClusterDescription() { - return clusterDescription_ == null ? meerkat.protobuf.Voting.UIElement.getDefaultInstance() : clusterDescription_; - } - /** - * <code>.meerkat.UIElement cluster_description = 1;</code> - */ - public meerkat.protobuf.Voting.UIElementOrBuilder getClusterDescriptionOrBuilder() { - return getClusterDescription(); - } - - public static final int QUESTION_INDEX_FIELD_NUMBER = 2; - private java.util.List<java.lang.Integer> questionIndex_; - /** - * <code>repeated int32 question_index = 2;</code> - */ - public java.util.List<java.lang.Integer> - getQuestionIndexList() { - return questionIndex_; - } - /** - * <code>repeated int32 question_index = 2;</code> - */ - public int getQuestionIndexCount() { - return questionIndex_.size(); - } - /** - * <code>repeated int32 question_index = 2;</code> - */ - public int getQuestionIndex(int index) { - return questionIndex_.get(index); - } - private int questionIndexMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (clusterDescription_ != null) { - output.writeMessage(1, getClusterDescription()); - } - if (getQuestionIndexList().size() > 0) { - output.writeUInt32NoTag(18); - output.writeUInt32NoTag(questionIndexMemoizedSerializedSize); - } - for (int i = 0; i < questionIndex_.size(); i++) { - output.writeInt32NoTag(questionIndex_.get(i)); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (clusterDescription_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getClusterDescription()); - } - { - int dataSize = 0; - for (int i = 0; i < questionIndex_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(questionIndex_.get(i)); - } - size += dataSize; - if (!getQuestionIndexList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - questionIndexMemoizedSerializedSize = dataSize; - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.Voting.QuestionCluster)) { - return super.equals(obj); - } - meerkat.protobuf.Voting.QuestionCluster other = (meerkat.protobuf.Voting.QuestionCluster) obj; - - boolean result = true; - result = result && (hasClusterDescription() == other.hasClusterDescription()); - if (hasClusterDescription()) { - result = result && getClusterDescription() - .equals(other.getClusterDescription()); - } - result = result && getQuestionIndexList() - .equals(other.getQuestionIndexList()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasClusterDescription()) { - hash = (37 * hash) + CLUSTER_DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getClusterDescription().hashCode(); - } - if (getQuestionIndexCount() > 0) { - hash = (37 * hash) + QUESTION_INDEX_FIELD_NUMBER; - hash = (53 * hash) + getQuestionIndexList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.Voting.QuestionCluster parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Voting.QuestionCluster parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Voting.QuestionCluster parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Voting.QuestionCluster parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Voting.QuestionCluster parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.QuestionCluster parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Voting.QuestionCluster parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.QuestionCluster parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Voting.QuestionCluster parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.QuestionCluster parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.Voting.QuestionCluster prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code meerkat.QuestionCluster} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:meerkat.QuestionCluster) - meerkat.protobuf.Voting.QuestionClusterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Voting.internal_static_meerkat_QuestionCluster_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Voting.internal_static_meerkat_QuestionCluster_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Voting.QuestionCluster.class, meerkat.protobuf.Voting.QuestionCluster.Builder.class); - } - - // Construct using meerkat.protobuf.Voting.QuestionCluster.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - if (clusterDescriptionBuilder_ == null) { - clusterDescription_ = null; - } else { - clusterDescription_ = null; - clusterDescriptionBuilder_ = null; - } - questionIndex_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.Voting.internal_static_meerkat_QuestionCluster_descriptor; - } - - public meerkat.protobuf.Voting.QuestionCluster getDefaultInstanceForType() { - return meerkat.protobuf.Voting.QuestionCluster.getDefaultInstance(); - } - - public meerkat.protobuf.Voting.QuestionCluster build() { - meerkat.protobuf.Voting.QuestionCluster result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.Voting.QuestionCluster buildPartial() { - meerkat.protobuf.Voting.QuestionCluster result = new meerkat.protobuf.Voting.QuestionCluster(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (clusterDescriptionBuilder_ == null) { - result.clusterDescription_ = clusterDescription_; - } else { - result.clusterDescription_ = clusterDescriptionBuilder_.build(); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - questionIndex_ = java.util.Collections.unmodifiableList(questionIndex_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.questionIndex_ = questionIndex_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.Voting.QuestionCluster) { - return mergeFrom((meerkat.protobuf.Voting.QuestionCluster)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.Voting.QuestionCluster other) { - if (other == meerkat.protobuf.Voting.QuestionCluster.getDefaultInstance()) return this; - if (other.hasClusterDescription()) { - mergeClusterDescription(other.getClusterDescription()); - } - if (!other.questionIndex_.isEmpty()) { - if (questionIndex_.isEmpty()) { - questionIndex_ = other.questionIndex_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureQuestionIndexIsMutable(); - questionIndex_.addAll(other.questionIndex_); - } - onChanged(); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.Voting.QuestionCluster parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.Voting.QuestionCluster) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private meerkat.protobuf.Voting.UIElement clusterDescription_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Voting.UIElement, meerkat.protobuf.Voting.UIElement.Builder, meerkat.protobuf.Voting.UIElementOrBuilder> clusterDescriptionBuilder_; - /** - * <code>.meerkat.UIElement cluster_description = 1;</code> - */ - public boolean hasClusterDescription() { - return clusterDescriptionBuilder_ != null || clusterDescription_ != null; - } - /** - * <code>.meerkat.UIElement cluster_description = 1;</code> - */ - public meerkat.protobuf.Voting.UIElement getClusterDescription() { - if (clusterDescriptionBuilder_ == null) { - return clusterDescription_ == null ? meerkat.protobuf.Voting.UIElement.getDefaultInstance() : clusterDescription_; - } else { - return clusterDescriptionBuilder_.getMessage(); - } - } - /** - * <code>.meerkat.UIElement cluster_description = 1;</code> - */ - public Builder setClusterDescription(meerkat.protobuf.Voting.UIElement value) { - if (clusterDescriptionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - clusterDescription_ = value; - onChanged(); - } else { - clusterDescriptionBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.meerkat.UIElement cluster_description = 1;</code> - */ - public Builder setClusterDescription( - meerkat.protobuf.Voting.UIElement.Builder builderForValue) { - if (clusterDescriptionBuilder_ == null) { - clusterDescription_ = builderForValue.build(); - onChanged(); - } else { - clusterDescriptionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.meerkat.UIElement cluster_description = 1;</code> - */ - public Builder mergeClusterDescription(meerkat.protobuf.Voting.UIElement value) { - if (clusterDescriptionBuilder_ == null) { - if (clusterDescription_ != null) { - clusterDescription_ = - meerkat.protobuf.Voting.UIElement.newBuilder(clusterDescription_).mergeFrom(value).buildPartial(); - } else { - clusterDescription_ = value; - } - onChanged(); - } else { - clusterDescriptionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.meerkat.UIElement cluster_description = 1;</code> - */ - public Builder clearClusterDescription() { - if (clusterDescriptionBuilder_ == null) { - clusterDescription_ = null; - onChanged(); - } else { - clusterDescription_ = null; - clusterDescriptionBuilder_ = null; - } - - return this; - } - /** - * <code>.meerkat.UIElement cluster_description = 1;</code> - */ - public meerkat.protobuf.Voting.UIElement.Builder getClusterDescriptionBuilder() { - - onChanged(); - return getClusterDescriptionFieldBuilder().getBuilder(); - } - /** - * <code>.meerkat.UIElement cluster_description = 1;</code> - */ - public meerkat.protobuf.Voting.UIElementOrBuilder getClusterDescriptionOrBuilder() { - if (clusterDescriptionBuilder_ != null) { - return clusterDescriptionBuilder_.getMessageOrBuilder(); - } else { - return clusterDescription_ == null ? - meerkat.protobuf.Voting.UIElement.getDefaultInstance() : clusterDescription_; - } - } - /** - * <code>.meerkat.UIElement cluster_description = 1;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Voting.UIElement, meerkat.protobuf.Voting.UIElement.Builder, meerkat.protobuf.Voting.UIElementOrBuilder> - getClusterDescriptionFieldBuilder() { - if (clusterDescriptionBuilder_ == null) { - clusterDescriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Voting.UIElement, meerkat.protobuf.Voting.UIElement.Builder, meerkat.protobuf.Voting.UIElementOrBuilder>( - getClusterDescription(), - getParentForChildren(), - isClean()); - clusterDescription_ = null; - } - return clusterDescriptionBuilder_; - } - - private java.util.List<java.lang.Integer> questionIndex_ = java.util.Collections.emptyList(); - private void ensureQuestionIndexIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - questionIndex_ = new java.util.ArrayList<java.lang.Integer>(questionIndex_); - bitField0_ |= 0x00000002; - } - } - /** - * <code>repeated int32 question_index = 2;</code> - */ - public java.util.List<java.lang.Integer> - getQuestionIndexList() { - return java.util.Collections.unmodifiableList(questionIndex_); - } - /** - * <code>repeated int32 question_index = 2;</code> - */ - public int getQuestionIndexCount() { - return questionIndex_.size(); - } - /** - * <code>repeated int32 question_index = 2;</code> - */ - public int getQuestionIndex(int index) { - return questionIndex_.get(index); - } - /** - * <code>repeated int32 question_index = 2;</code> - */ - public Builder setQuestionIndex( - int index, int value) { - ensureQuestionIndexIsMutable(); - questionIndex_.set(index, value); - onChanged(); - return this; - } - /** - * <code>repeated int32 question_index = 2;</code> - */ - public Builder addQuestionIndex(int value) { - ensureQuestionIndexIsMutable(); - questionIndex_.add(value); - onChanged(); - return this; - } - /** - * <code>repeated int32 question_index = 2;</code> - */ - public Builder addAllQuestionIndex( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureQuestionIndexIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, questionIndex_); - onChanged(); - return this; - } - /** - * <code>repeated int32 question_index = 2;</code> - */ - public Builder clearQuestionIndex() { - questionIndex_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.QuestionCluster) - } - - // @@protoc_insertion_point(class_scope:meerkat.QuestionCluster) - private static final meerkat.protobuf.Voting.QuestionCluster DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.Voting.QuestionCluster(); - } - - public static meerkat.protobuf.Voting.QuestionCluster getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<QuestionCluster> - PARSER = new com.google.protobuf.AbstractParser<QuestionCluster>() { - public QuestionCluster parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QuestionCluster(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<QuestionCluster> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<QuestionCluster> getParserForType() { - return PARSER; - } - - public meerkat.protobuf.Voting.QuestionCluster getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ChannelOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.Channel) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>.meerkat.UIElement channel_description = 1;</code> - */ - boolean hasChannelDescription(); - /** - * <code>.meerkat.UIElement channel_description = 1;</code> - */ - meerkat.protobuf.Voting.UIElement getChannelDescription(); - /** - * <code>.meerkat.UIElement channel_description = 1;</code> - */ - meerkat.protobuf.Voting.UIElementOrBuilder getChannelDescriptionOrBuilder(); - - /** - * <code>repeated int32 cluster_index = 2;</code> - */ - java.util.List<java.lang.Integer> getClusterIndexList(); - /** - * <code>repeated int32 cluster_index = 2;</code> - */ - int getClusterIndexCount(); - /** - * <code>repeated int32 cluster_index = 2;</code> - */ - int getClusterIndex(int index); - } - /** - * Protobuf type {@code meerkat.Channel} - */ - public static final class Channel extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.Channel) - ChannelOrBuilder { - // Use Channel.newBuilder() to construct. - private Channel(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private Channel() { - clusterIndex_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private Channel( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - meerkat.protobuf.Voting.UIElement.Builder subBuilder = null; - if (channelDescription_ != null) { - subBuilder = channelDescription_.toBuilder(); - } - channelDescription_ = input.readMessage(meerkat.protobuf.Voting.UIElement.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(channelDescription_); - channelDescription_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - clusterIndex_ = new java.util.ArrayList<java.lang.Integer>(); - mutable_bitField0_ |= 0x00000002; - } - clusterIndex_.add(input.readInt32()); - break; - } - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { - clusterIndex_ = new java.util.ArrayList<java.lang.Integer>(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - clusterIndex_.add(input.readInt32()); - } - input.popLimit(limit); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - clusterIndex_ = java.util.Collections.unmodifiableList(clusterIndex_); - } - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Voting.internal_static_meerkat_Channel_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Voting.internal_static_meerkat_Channel_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Voting.Channel.class, meerkat.protobuf.Voting.Channel.Builder.class); - } - - private int bitField0_; - public static final int CHANNEL_DESCRIPTION_FIELD_NUMBER = 1; - private meerkat.protobuf.Voting.UIElement channelDescription_; - /** - * <code>.meerkat.UIElement channel_description = 1;</code> - */ - public boolean hasChannelDescription() { - return channelDescription_ != null; - } - /** - * <code>.meerkat.UIElement channel_description = 1;</code> - */ - public meerkat.protobuf.Voting.UIElement getChannelDescription() { - return channelDescription_ == null ? meerkat.protobuf.Voting.UIElement.getDefaultInstance() : channelDescription_; - } - /** - * <code>.meerkat.UIElement channel_description = 1;</code> - */ - public meerkat.protobuf.Voting.UIElementOrBuilder getChannelDescriptionOrBuilder() { - return getChannelDescription(); - } - - public static final int CLUSTER_INDEX_FIELD_NUMBER = 2; - private java.util.List<java.lang.Integer> clusterIndex_; - /** - * <code>repeated int32 cluster_index = 2;</code> - */ - public java.util.List<java.lang.Integer> - getClusterIndexList() { - return clusterIndex_; - } - /** - * <code>repeated int32 cluster_index = 2;</code> - */ - public int getClusterIndexCount() { - return clusterIndex_.size(); - } - /** - * <code>repeated int32 cluster_index = 2;</code> - */ - public int getClusterIndex(int index) { - return clusterIndex_.get(index); - } - private int clusterIndexMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (channelDescription_ != null) { - output.writeMessage(1, getChannelDescription()); - } - if (getClusterIndexList().size() > 0) { - output.writeUInt32NoTag(18); - output.writeUInt32NoTag(clusterIndexMemoizedSerializedSize); - } - for (int i = 0; i < clusterIndex_.size(); i++) { - output.writeInt32NoTag(clusterIndex_.get(i)); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (channelDescription_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getChannelDescription()); - } - { - int dataSize = 0; - for (int i = 0; i < clusterIndex_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(clusterIndex_.get(i)); - } - size += dataSize; - if (!getClusterIndexList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - clusterIndexMemoizedSerializedSize = dataSize; - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.Voting.Channel)) { - return super.equals(obj); - } - meerkat.protobuf.Voting.Channel other = (meerkat.protobuf.Voting.Channel) obj; - - boolean result = true; - result = result && (hasChannelDescription() == other.hasChannelDescription()); - if (hasChannelDescription()) { - result = result && getChannelDescription() - .equals(other.getChannelDescription()); - } - result = result && getClusterIndexList() - .equals(other.getClusterIndexList()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasChannelDescription()) { - hash = (37 * hash) + CHANNEL_DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getChannelDescription().hashCode(); - } - if (getClusterIndexCount() > 0) { - hash = (37 * hash) + CLUSTER_INDEX_FIELD_NUMBER; - hash = (53 * hash) + getClusterIndexList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.Voting.Channel parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Voting.Channel parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Voting.Channel parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Voting.Channel parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Voting.Channel parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.Channel parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Voting.Channel parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.Channel parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Voting.Channel parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.Channel parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.Voting.Channel prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code meerkat.Channel} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:meerkat.Channel) - meerkat.protobuf.Voting.ChannelOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Voting.internal_static_meerkat_Channel_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Voting.internal_static_meerkat_Channel_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Voting.Channel.class, meerkat.protobuf.Voting.Channel.Builder.class); - } - - // Construct using meerkat.protobuf.Voting.Channel.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - if (channelDescriptionBuilder_ == null) { - channelDescription_ = null; - } else { - channelDescription_ = null; - channelDescriptionBuilder_ = null; - } - clusterIndex_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.Voting.internal_static_meerkat_Channel_descriptor; - } - - public meerkat.protobuf.Voting.Channel getDefaultInstanceForType() { - return meerkat.protobuf.Voting.Channel.getDefaultInstance(); - } - - public meerkat.protobuf.Voting.Channel build() { - meerkat.protobuf.Voting.Channel result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.Voting.Channel buildPartial() { - meerkat.protobuf.Voting.Channel result = new meerkat.protobuf.Voting.Channel(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (channelDescriptionBuilder_ == null) { - result.channelDescription_ = channelDescription_; - } else { - result.channelDescription_ = channelDescriptionBuilder_.build(); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - clusterIndex_ = java.util.Collections.unmodifiableList(clusterIndex_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.clusterIndex_ = clusterIndex_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.Voting.Channel) { - return mergeFrom((meerkat.protobuf.Voting.Channel)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.Voting.Channel other) { - if (other == meerkat.protobuf.Voting.Channel.getDefaultInstance()) return this; - if (other.hasChannelDescription()) { - mergeChannelDescription(other.getChannelDescription()); - } - if (!other.clusterIndex_.isEmpty()) { - if (clusterIndex_.isEmpty()) { - clusterIndex_ = other.clusterIndex_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureClusterIndexIsMutable(); - clusterIndex_.addAll(other.clusterIndex_); - } - onChanged(); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.Voting.Channel parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.Voting.Channel) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private meerkat.protobuf.Voting.UIElement channelDescription_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Voting.UIElement, meerkat.protobuf.Voting.UIElement.Builder, meerkat.protobuf.Voting.UIElementOrBuilder> channelDescriptionBuilder_; - /** - * <code>.meerkat.UIElement channel_description = 1;</code> - */ - public boolean hasChannelDescription() { - return channelDescriptionBuilder_ != null || channelDescription_ != null; - } - /** - * <code>.meerkat.UIElement channel_description = 1;</code> - */ - public meerkat.protobuf.Voting.UIElement getChannelDescription() { - if (channelDescriptionBuilder_ == null) { - return channelDescription_ == null ? meerkat.protobuf.Voting.UIElement.getDefaultInstance() : channelDescription_; - } else { - return channelDescriptionBuilder_.getMessage(); - } - } - /** - * <code>.meerkat.UIElement channel_description = 1;</code> - */ - public Builder setChannelDescription(meerkat.protobuf.Voting.UIElement value) { - if (channelDescriptionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - channelDescription_ = value; - onChanged(); - } else { - channelDescriptionBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.meerkat.UIElement channel_description = 1;</code> - */ - public Builder setChannelDescription( - meerkat.protobuf.Voting.UIElement.Builder builderForValue) { - if (channelDescriptionBuilder_ == null) { - channelDescription_ = builderForValue.build(); - onChanged(); - } else { - channelDescriptionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.meerkat.UIElement channel_description = 1;</code> - */ - public Builder mergeChannelDescription(meerkat.protobuf.Voting.UIElement value) { - if (channelDescriptionBuilder_ == null) { - if (channelDescription_ != null) { - channelDescription_ = - meerkat.protobuf.Voting.UIElement.newBuilder(channelDescription_).mergeFrom(value).buildPartial(); - } else { - channelDescription_ = value; - } - onChanged(); - } else { - channelDescriptionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.meerkat.UIElement channel_description = 1;</code> - */ - public Builder clearChannelDescription() { - if (channelDescriptionBuilder_ == null) { - channelDescription_ = null; - onChanged(); - } else { - channelDescription_ = null; - channelDescriptionBuilder_ = null; - } - - return this; - } - /** - * <code>.meerkat.UIElement channel_description = 1;</code> - */ - public meerkat.protobuf.Voting.UIElement.Builder getChannelDescriptionBuilder() { - - onChanged(); - return getChannelDescriptionFieldBuilder().getBuilder(); - } - /** - * <code>.meerkat.UIElement channel_description = 1;</code> - */ - public meerkat.protobuf.Voting.UIElementOrBuilder getChannelDescriptionOrBuilder() { - if (channelDescriptionBuilder_ != null) { - return channelDescriptionBuilder_.getMessageOrBuilder(); - } else { - return channelDescription_ == null ? - meerkat.protobuf.Voting.UIElement.getDefaultInstance() : channelDescription_; - } - } - /** - * <code>.meerkat.UIElement channel_description = 1;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Voting.UIElement, meerkat.protobuf.Voting.UIElement.Builder, meerkat.protobuf.Voting.UIElementOrBuilder> - getChannelDescriptionFieldBuilder() { - if (channelDescriptionBuilder_ == null) { - channelDescriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Voting.UIElement, meerkat.protobuf.Voting.UIElement.Builder, meerkat.protobuf.Voting.UIElementOrBuilder>( - getChannelDescription(), - getParentForChildren(), - isClean()); - channelDescription_ = null; - } - return channelDescriptionBuilder_; - } - - private java.util.List<java.lang.Integer> clusterIndex_ = java.util.Collections.emptyList(); - private void ensureClusterIndexIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - clusterIndex_ = new java.util.ArrayList<java.lang.Integer>(clusterIndex_); - bitField0_ |= 0x00000002; - } - } - /** - * <code>repeated int32 cluster_index = 2;</code> - */ - public java.util.List<java.lang.Integer> - getClusterIndexList() { - return java.util.Collections.unmodifiableList(clusterIndex_); - } - /** - * <code>repeated int32 cluster_index = 2;</code> - */ - public int getClusterIndexCount() { - return clusterIndex_.size(); - } - /** - * <code>repeated int32 cluster_index = 2;</code> - */ - public int getClusterIndex(int index) { - return clusterIndex_.get(index); - } - /** - * <code>repeated int32 cluster_index = 2;</code> - */ - public Builder setClusterIndex( - int index, int value) { - ensureClusterIndexIsMutable(); - clusterIndex_.set(index, value); - onChanged(); - return this; - } - /** - * <code>repeated int32 cluster_index = 2;</code> - */ - public Builder addClusterIndex(int value) { - ensureClusterIndexIsMutable(); - clusterIndex_.add(value); - onChanged(); - return this; - } - /** - * <code>repeated int32 cluster_index = 2;</code> - */ - public Builder addAllClusterIndex( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureClusterIndexIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, clusterIndex_); - onChanged(); - return this; - } - /** - * <code>repeated int32 cluster_index = 2;</code> - */ - public Builder clearClusterIndex() { - clusterIndex_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.Channel) - } - - // @@protoc_insertion_point(class_scope:meerkat.Channel) - private static final meerkat.protobuf.Voting.Channel DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.Voting.Channel(); - } - - public static meerkat.protobuf.Voting.Channel getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<Channel> - PARSER = new com.google.protobuf.AbstractParser<Channel>() { - public Channel parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Channel(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<Channel> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<Channel> getParserForType() { - return PARSER; - } - - public meerkat.protobuf.Voting.Channel getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BallotAnswerOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.BallotAnswer) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>repeated sint64 answer = 1 [packed = true];</code> - */ - java.util.List<java.lang.Long> getAnswerList(); - /** - * <code>repeated sint64 answer = 1 [packed = true];</code> - */ - int getAnswerCount(); - /** - * <code>repeated sint64 answer = 1 [packed = true];</code> - */ - long getAnswer(int index); - } - /** - * <pre> - * An answer to a specific ballot question. - * The answer is a vector of signed integers, - * to encompass voting schemes such as ranked voting - * and STV. - * </pre> - * - * Protobuf type {@code meerkat.BallotAnswer} - */ - public static final class BallotAnswer extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.BallotAnswer) - BallotAnswerOrBuilder { - // Use BallotAnswer.newBuilder() to construct. - private BallotAnswer(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private BallotAnswer() { - answer_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private BallotAnswer( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - answer_ = new java.util.ArrayList<java.lang.Long>(); - mutable_bitField0_ |= 0x00000001; - } - answer_.add(input.readSInt64()); - break; - } - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { - answer_ = new java.util.ArrayList<java.lang.Long>(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - answer_.add(input.readSInt64()); - } - input.popLimit(limit); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - answer_ = java.util.Collections.unmodifiableList(answer_); - } - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Voting.internal_static_meerkat_BallotAnswer_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Voting.internal_static_meerkat_BallotAnswer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Voting.BallotAnswer.class, meerkat.protobuf.Voting.BallotAnswer.Builder.class); - } - - public static final int ANSWER_FIELD_NUMBER = 1; - private java.util.List<java.lang.Long> answer_; - /** - * <code>repeated sint64 answer = 1 [packed = true];</code> - */ - public java.util.List<java.lang.Long> - getAnswerList() { - return answer_; - } - /** - * <code>repeated sint64 answer = 1 [packed = true];</code> - */ - public int getAnswerCount() { - return answer_.size(); - } - /** - * <code>repeated sint64 answer = 1 [packed = true];</code> - */ - public long getAnswer(int index) { - return answer_.get(index); - } - private int answerMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (getAnswerList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(answerMemoizedSerializedSize); - } - for (int i = 0; i < answer_.size(); i++) { - output.writeSInt64NoTag(answer_.get(i)); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < answer_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeSInt64SizeNoTag(answer_.get(i)); - } - size += dataSize; - if (!getAnswerList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - answerMemoizedSerializedSize = dataSize; - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.Voting.BallotAnswer)) { - return super.equals(obj); - } - meerkat.protobuf.Voting.BallotAnswer other = (meerkat.protobuf.Voting.BallotAnswer) obj; - - boolean result = true; - result = result && getAnswerList() - .equals(other.getAnswerList()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getAnswerCount() > 0) { - hash = (37 * hash) + ANSWER_FIELD_NUMBER; - hash = (53 * hash) + getAnswerList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.Voting.BallotAnswer parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Voting.BallotAnswer parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Voting.BallotAnswer parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Voting.BallotAnswer parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Voting.BallotAnswer parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.BallotAnswer parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Voting.BallotAnswer parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.BallotAnswer parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Voting.BallotAnswer parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.BallotAnswer parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.Voting.BallotAnswer prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * <pre> - * An answer to a specific ballot question. - * The answer is a vector of signed integers, - * to encompass voting schemes such as ranked voting - * and STV. - * </pre> - * - * Protobuf type {@code meerkat.BallotAnswer} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:meerkat.BallotAnswer) - meerkat.protobuf.Voting.BallotAnswerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Voting.internal_static_meerkat_BallotAnswer_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Voting.internal_static_meerkat_BallotAnswer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Voting.BallotAnswer.class, meerkat.protobuf.Voting.BallotAnswer.Builder.class); - } - - // Construct using meerkat.protobuf.Voting.BallotAnswer.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - answer_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.Voting.internal_static_meerkat_BallotAnswer_descriptor; - } - - public meerkat.protobuf.Voting.BallotAnswer getDefaultInstanceForType() { - return meerkat.protobuf.Voting.BallotAnswer.getDefaultInstance(); - } - - public meerkat.protobuf.Voting.BallotAnswer build() { - meerkat.protobuf.Voting.BallotAnswer result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.Voting.BallotAnswer buildPartial() { - meerkat.protobuf.Voting.BallotAnswer result = new meerkat.protobuf.Voting.BallotAnswer(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - answer_ = java.util.Collections.unmodifiableList(answer_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.answer_ = answer_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.Voting.BallotAnswer) { - return mergeFrom((meerkat.protobuf.Voting.BallotAnswer)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.Voting.BallotAnswer other) { - if (other == meerkat.protobuf.Voting.BallotAnswer.getDefaultInstance()) return this; - if (!other.answer_.isEmpty()) { - if (answer_.isEmpty()) { - answer_ = other.answer_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAnswerIsMutable(); - answer_.addAll(other.answer_); - } - onChanged(); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.Voting.BallotAnswer parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.Voting.BallotAnswer) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List<java.lang.Long> answer_ = java.util.Collections.emptyList(); - private void ensureAnswerIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - answer_ = new java.util.ArrayList<java.lang.Long>(answer_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated sint64 answer = 1 [packed = true];</code> - */ - public java.util.List<java.lang.Long> - getAnswerList() { - return java.util.Collections.unmodifiableList(answer_); - } - /** - * <code>repeated sint64 answer = 1 [packed = true];</code> - */ - public int getAnswerCount() { - return answer_.size(); - } - /** - * <code>repeated sint64 answer = 1 [packed = true];</code> - */ - public long getAnswer(int index) { - return answer_.get(index); - } - /** - * <code>repeated sint64 answer = 1 [packed = true];</code> - */ - public Builder setAnswer( - int index, long value) { - ensureAnswerIsMutable(); - answer_.set(index, value); - onChanged(); - return this; - } - /** - * <code>repeated sint64 answer = 1 [packed = true];</code> - */ - public Builder addAnswer(long value) { - ensureAnswerIsMutable(); - answer_.add(value); - onChanged(); - return this; - } - /** - * <code>repeated sint64 answer = 1 [packed = true];</code> - */ - public Builder addAllAnswer( - java.lang.Iterable<? extends java.lang.Long> values) { - ensureAnswerIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, answer_); - onChanged(); - return this; - } - /** - * <code>repeated sint64 answer = 1 [packed = true];</code> - */ - public Builder clearAnswer() { - answer_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.BallotAnswer) - } - - // @@protoc_insertion_point(class_scope:meerkat.BallotAnswer) - private static final meerkat.protobuf.Voting.BallotAnswer DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.Voting.BallotAnswer(); - } - - public static meerkat.protobuf.Voting.BallotAnswer getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<BallotAnswer> - PARSER = new com.google.protobuf.AbstractParser<BallotAnswer>() { - public BallotAnswer parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BallotAnswer(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<BallotAnswer> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<BallotAnswer> getParserForType() { - return PARSER; - } - - public meerkat.protobuf.Voting.BallotAnswer getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PlaintextBallotOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.PlaintextBallot) - com.google.protobuf.MessageOrBuilder { - - /** - * <pre> - * Ballot serial number - * </pre> - * - * <code>uint64 serial_number = 1;</code> - */ - long getSerialNumber(); - - /** - * <code>bytes channel_identifier = 2;</code> - */ - com.google.protobuf.ByteString getChannelIdentifier(); - - /** - * <code>repeated .meerkat.BallotAnswer answers = 3;</code> - */ - java.util.List<meerkat.protobuf.Voting.BallotAnswer> - getAnswersList(); - /** - * <code>repeated .meerkat.BallotAnswer answers = 3;</code> - */ - meerkat.protobuf.Voting.BallotAnswer getAnswers(int index); - /** - * <code>repeated .meerkat.BallotAnswer answers = 3;</code> - */ - int getAnswersCount(); - /** - * <code>repeated .meerkat.BallotAnswer answers = 3;</code> - */ - java.util.List<? extends meerkat.protobuf.Voting.BallotAnswerOrBuilder> - getAnswersOrBuilderList(); - /** - * <code>repeated .meerkat.BallotAnswer answers = 3;</code> - */ - meerkat.protobuf.Voting.BallotAnswerOrBuilder getAnswersOrBuilder( - int index); - } - /** - * Protobuf type {@code meerkat.PlaintextBallot} - */ - public static final class PlaintextBallot extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.PlaintextBallot) - PlaintextBallotOrBuilder { - // Use PlaintextBallot.newBuilder() to construct. - private PlaintextBallot(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private PlaintextBallot() { - serialNumber_ = 0L; - channelIdentifier_ = com.google.protobuf.ByteString.EMPTY; - answers_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private PlaintextBallot( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - serialNumber_ = input.readUInt64(); - break; - } - case 18: { - - channelIdentifier_ = input.readBytes(); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - answers_ = new java.util.ArrayList<meerkat.protobuf.Voting.BallotAnswer>(); - mutable_bitField0_ |= 0x00000004; - } - answers_.add( - input.readMessage(meerkat.protobuf.Voting.BallotAnswer.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - answers_ = java.util.Collections.unmodifiableList(answers_); - } - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Voting.internal_static_meerkat_PlaintextBallot_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Voting.internal_static_meerkat_PlaintextBallot_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Voting.PlaintextBallot.class, meerkat.protobuf.Voting.PlaintextBallot.Builder.class); - } - - private int bitField0_; - public static final int SERIAL_NUMBER_FIELD_NUMBER = 1; - private long serialNumber_; - /** - * <pre> - * Ballot serial number - * </pre> - * - * <code>uint64 serial_number = 1;</code> - */ - public long getSerialNumber() { - return serialNumber_; - } - - public static final int CHANNEL_IDENTIFIER_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString channelIdentifier_; - /** - * <code>bytes channel_identifier = 2;</code> - */ - public com.google.protobuf.ByteString getChannelIdentifier() { - return channelIdentifier_; - } - - public static final int ANSWERS_FIELD_NUMBER = 3; - private java.util.List<meerkat.protobuf.Voting.BallotAnswer> answers_; - /** - * <code>repeated .meerkat.BallotAnswer answers = 3;</code> - */ - public java.util.List<meerkat.protobuf.Voting.BallotAnswer> getAnswersList() { - return answers_; - } - /** - * <code>repeated .meerkat.BallotAnswer answers = 3;</code> - */ - public java.util.List<? extends meerkat.protobuf.Voting.BallotAnswerOrBuilder> - getAnswersOrBuilderList() { - return answers_; - } - /** - * <code>repeated .meerkat.BallotAnswer answers = 3;</code> - */ - public int getAnswersCount() { - return answers_.size(); - } - /** - * <code>repeated .meerkat.BallotAnswer answers = 3;</code> - */ - public meerkat.protobuf.Voting.BallotAnswer getAnswers(int index) { - return answers_.get(index); - } - /** - * <code>repeated .meerkat.BallotAnswer answers = 3;</code> - */ - public meerkat.protobuf.Voting.BallotAnswerOrBuilder getAnswersOrBuilder( - int index) { - return answers_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (serialNumber_ != 0L) { - output.writeUInt64(1, serialNumber_); - } - if (!channelIdentifier_.isEmpty()) { - output.writeBytes(2, channelIdentifier_); - } - for (int i = 0; i < answers_.size(); i++) { - output.writeMessage(3, answers_.get(i)); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (serialNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, serialNumber_); - } - if (!channelIdentifier_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, channelIdentifier_); - } - for (int i = 0; i < answers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, answers_.get(i)); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.Voting.PlaintextBallot)) { - return super.equals(obj); - } - meerkat.protobuf.Voting.PlaintextBallot other = (meerkat.protobuf.Voting.PlaintextBallot) obj; - - boolean result = true; - result = result && (getSerialNumber() - == other.getSerialNumber()); - result = result && getChannelIdentifier() - .equals(other.getChannelIdentifier()); - result = result && getAnswersList() - .equals(other.getAnswersList()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SERIAL_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSerialNumber()); - hash = (37 * hash) + CHANNEL_IDENTIFIER_FIELD_NUMBER; - hash = (53 * hash) + getChannelIdentifier().hashCode(); - if (getAnswersCount() > 0) { - hash = (37 * hash) + ANSWERS_FIELD_NUMBER; - hash = (53 * hash) + getAnswersList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.Voting.PlaintextBallot parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Voting.PlaintextBallot parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Voting.PlaintextBallot parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Voting.PlaintextBallot parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Voting.PlaintextBallot parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.PlaintextBallot parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Voting.PlaintextBallot parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.PlaintextBallot parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Voting.PlaintextBallot parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.PlaintextBallot parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.Voting.PlaintextBallot prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code meerkat.PlaintextBallot} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:meerkat.PlaintextBallot) - meerkat.protobuf.Voting.PlaintextBallotOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Voting.internal_static_meerkat_PlaintextBallot_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Voting.internal_static_meerkat_PlaintextBallot_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Voting.PlaintextBallot.class, meerkat.protobuf.Voting.PlaintextBallot.Builder.class); - } - - // Construct using meerkat.protobuf.Voting.PlaintextBallot.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getAnswersFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - serialNumber_ = 0L; - - channelIdentifier_ = com.google.protobuf.ByteString.EMPTY; - - if (answersBuilder_ == null) { - answers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - answersBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.Voting.internal_static_meerkat_PlaintextBallot_descriptor; - } - - public meerkat.protobuf.Voting.PlaintextBallot getDefaultInstanceForType() { - return meerkat.protobuf.Voting.PlaintextBallot.getDefaultInstance(); - } - - public meerkat.protobuf.Voting.PlaintextBallot build() { - meerkat.protobuf.Voting.PlaintextBallot result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.Voting.PlaintextBallot buildPartial() { - meerkat.protobuf.Voting.PlaintextBallot result = new meerkat.protobuf.Voting.PlaintextBallot(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.serialNumber_ = serialNumber_; - result.channelIdentifier_ = channelIdentifier_; - if (answersBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004)) { - answers_ = java.util.Collections.unmodifiableList(answers_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.answers_ = answers_; - } else { - result.answers_ = answersBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.Voting.PlaintextBallot) { - return mergeFrom((meerkat.protobuf.Voting.PlaintextBallot)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.Voting.PlaintextBallot other) { - if (other == meerkat.protobuf.Voting.PlaintextBallot.getDefaultInstance()) return this; - if (other.getSerialNumber() != 0L) { - setSerialNumber(other.getSerialNumber()); - } - if (other.getChannelIdentifier() != com.google.protobuf.ByteString.EMPTY) { - setChannelIdentifier(other.getChannelIdentifier()); - } - if (answersBuilder_ == null) { - if (!other.answers_.isEmpty()) { - if (answers_.isEmpty()) { - answers_ = other.answers_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureAnswersIsMutable(); - answers_.addAll(other.answers_); - } - onChanged(); - } - } else { - if (!other.answers_.isEmpty()) { - if (answersBuilder_.isEmpty()) { - answersBuilder_.dispose(); - answersBuilder_ = null; - answers_ = other.answers_; - bitField0_ = (bitField0_ & ~0x00000004); - answersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAnswersFieldBuilder() : null; - } else { - answersBuilder_.addAllMessages(other.answers_); - } - } - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.Voting.PlaintextBallot parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.Voting.PlaintextBallot) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long serialNumber_ ; - /** - * <pre> - * Ballot serial number - * </pre> - * - * <code>uint64 serial_number = 1;</code> - */ - public long getSerialNumber() { - return serialNumber_; - } - /** - * <pre> - * Ballot serial number - * </pre> - * - * <code>uint64 serial_number = 1;</code> - */ - public Builder setSerialNumber(long value) { - - serialNumber_ = value; - onChanged(); - return this; - } - /** - * <pre> - * Ballot serial number - * </pre> - * - * <code>uint64 serial_number = 1;</code> - */ - public Builder clearSerialNumber() { - - serialNumber_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString channelIdentifier_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>bytes channel_identifier = 2;</code> - */ - public com.google.protobuf.ByteString getChannelIdentifier() { - return channelIdentifier_; - } - /** - * <code>bytes channel_identifier = 2;</code> - */ - public Builder setChannelIdentifier(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - channelIdentifier_ = value; - onChanged(); - return this; - } - /** - * <code>bytes channel_identifier = 2;</code> - */ - public Builder clearChannelIdentifier() { - - channelIdentifier_ = getDefaultInstance().getChannelIdentifier(); - onChanged(); - return this; - } - - private java.util.List<meerkat.protobuf.Voting.BallotAnswer> answers_ = - java.util.Collections.emptyList(); - private void ensureAnswersIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { - answers_ = new java.util.ArrayList<meerkat.protobuf.Voting.BallotAnswer>(answers_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.Voting.BallotAnswer, meerkat.protobuf.Voting.BallotAnswer.Builder, meerkat.protobuf.Voting.BallotAnswerOrBuilder> answersBuilder_; - - /** - * <code>repeated .meerkat.BallotAnswer answers = 3;</code> - */ - public java.util.List<meerkat.protobuf.Voting.BallotAnswer> getAnswersList() { - if (answersBuilder_ == null) { - return java.util.Collections.unmodifiableList(answers_); - } else { - return answersBuilder_.getMessageList(); - } - } - /** - * <code>repeated .meerkat.BallotAnswer answers = 3;</code> - */ - public int getAnswersCount() { - if (answersBuilder_ == null) { - return answers_.size(); - } else { - return answersBuilder_.getCount(); - } - } - /** - * <code>repeated .meerkat.BallotAnswer answers = 3;</code> - */ - public meerkat.protobuf.Voting.BallotAnswer getAnswers(int index) { - if (answersBuilder_ == null) { - return answers_.get(index); - } else { - return answersBuilder_.getMessage(index); - } - } - /** - * <code>repeated .meerkat.BallotAnswer answers = 3;</code> - */ - public Builder setAnswers( - int index, meerkat.protobuf.Voting.BallotAnswer value) { - if (answersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAnswersIsMutable(); - answers_.set(index, value); - onChanged(); - } else { - answersBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .meerkat.BallotAnswer answers = 3;</code> - */ - public Builder setAnswers( - int index, meerkat.protobuf.Voting.BallotAnswer.Builder builderForValue) { - if (answersBuilder_ == null) { - ensureAnswersIsMutable(); - answers_.set(index, builderForValue.build()); - onChanged(); - } else { - answersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .meerkat.BallotAnswer answers = 3;</code> - */ - public Builder addAnswers(meerkat.protobuf.Voting.BallotAnswer value) { - if (answersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAnswersIsMutable(); - answers_.add(value); - onChanged(); - } else { - answersBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .meerkat.BallotAnswer answers = 3;</code> - */ - public Builder addAnswers( - int index, meerkat.protobuf.Voting.BallotAnswer value) { - if (answersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAnswersIsMutable(); - answers_.add(index, value); - onChanged(); - } else { - answersBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .meerkat.BallotAnswer answers = 3;</code> - */ - public Builder addAnswers( - meerkat.protobuf.Voting.BallotAnswer.Builder builderForValue) { - if (answersBuilder_ == null) { - ensureAnswersIsMutable(); - answers_.add(builderForValue.build()); - onChanged(); - } else { - answersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .meerkat.BallotAnswer answers = 3;</code> - */ - public Builder addAnswers( - int index, meerkat.protobuf.Voting.BallotAnswer.Builder builderForValue) { - if (answersBuilder_ == null) { - ensureAnswersIsMutable(); - answers_.add(index, builderForValue.build()); - onChanged(); - } else { - answersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .meerkat.BallotAnswer answers = 3;</code> - */ - public Builder addAllAnswers( - java.lang.Iterable<? extends meerkat.protobuf.Voting.BallotAnswer> values) { - if (answersBuilder_ == null) { - ensureAnswersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, answers_); - onChanged(); - } else { - answersBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .meerkat.BallotAnswer answers = 3;</code> - */ - public Builder clearAnswers() { - if (answersBuilder_ == null) { - answers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - answersBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .meerkat.BallotAnswer answers = 3;</code> - */ - public Builder removeAnswers(int index) { - if (answersBuilder_ == null) { - ensureAnswersIsMutable(); - answers_.remove(index); - onChanged(); - } else { - answersBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .meerkat.BallotAnswer answers = 3;</code> - */ - public meerkat.protobuf.Voting.BallotAnswer.Builder getAnswersBuilder( - int index) { - return getAnswersFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .meerkat.BallotAnswer answers = 3;</code> - */ - public meerkat.protobuf.Voting.BallotAnswerOrBuilder getAnswersOrBuilder( - int index) { - if (answersBuilder_ == null) { - return answers_.get(index); } else { - return answersBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .meerkat.BallotAnswer answers = 3;</code> - */ - public java.util.List<? extends meerkat.protobuf.Voting.BallotAnswerOrBuilder> - getAnswersOrBuilderList() { - if (answersBuilder_ != null) { - return answersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(answers_); - } - } - /** - * <code>repeated .meerkat.BallotAnswer answers = 3;</code> - */ - public meerkat.protobuf.Voting.BallotAnswer.Builder addAnswersBuilder() { - return getAnswersFieldBuilder().addBuilder( - meerkat.protobuf.Voting.BallotAnswer.getDefaultInstance()); - } - /** - * <code>repeated .meerkat.BallotAnswer answers = 3;</code> - */ - public meerkat.protobuf.Voting.BallotAnswer.Builder addAnswersBuilder( - int index) { - return getAnswersFieldBuilder().addBuilder( - index, meerkat.protobuf.Voting.BallotAnswer.getDefaultInstance()); - } - /** - * <code>repeated .meerkat.BallotAnswer answers = 3;</code> - */ - public java.util.List<meerkat.protobuf.Voting.BallotAnswer.Builder> - getAnswersBuilderList() { - return getAnswersFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.Voting.BallotAnswer, meerkat.protobuf.Voting.BallotAnswer.Builder, meerkat.protobuf.Voting.BallotAnswerOrBuilder> - getAnswersFieldBuilder() { - if (answersBuilder_ == null) { - answersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.Voting.BallotAnswer, meerkat.protobuf.Voting.BallotAnswer.Builder, meerkat.protobuf.Voting.BallotAnswerOrBuilder>( - answers_, - ((bitField0_ & 0x00000004) == 0x00000004), - getParentForChildren(), - isClean()); - answers_ = null; - } - return answersBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.PlaintextBallot) - } - - // @@protoc_insertion_point(class_scope:meerkat.PlaintextBallot) - private static final meerkat.protobuf.Voting.PlaintextBallot DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.Voting.PlaintextBallot(); - } - - public static meerkat.protobuf.Voting.PlaintextBallot getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<PlaintextBallot> - PARSER = new com.google.protobuf.AbstractParser<PlaintextBallot>() { - public PlaintextBallot parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlaintextBallot(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<PlaintextBallot> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<PlaintextBallot> getParserForType() { - return PARSER; - } - - public meerkat.protobuf.Voting.PlaintextBallot getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface EncryptedBallotOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.EncryptedBallot) - com.google.protobuf.MessageOrBuilder { - - /** - * <pre> - * Ballot serial number - * </pre> - * - * <code>uint64 serial_number = 1;</code> - */ - long getSerialNumber(); - - /** - * <code>.meerkat.RerandomizableEncryptedMessage data = 2;</code> - */ - boolean hasData(); - /** - * <code>.meerkat.RerandomizableEncryptedMessage data = 2;</code> - */ - meerkat.protobuf.Crypto.RerandomizableEncryptedMessage getData(); - /** - * <code>.meerkat.RerandomizableEncryptedMessage data = 2;</code> - */ - meerkat.protobuf.Crypto.RerandomizableEncryptedMessageOrBuilder getDataOrBuilder(); - } - /** - * Protobuf type {@code meerkat.EncryptedBallot} - */ - public static final class EncryptedBallot extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.EncryptedBallot) - EncryptedBallotOrBuilder { - // Use EncryptedBallot.newBuilder() to construct. - private EncryptedBallot(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private EncryptedBallot() { - serialNumber_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private EncryptedBallot( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - serialNumber_ = input.readUInt64(); - break; - } - case 18: { - meerkat.protobuf.Crypto.RerandomizableEncryptedMessage.Builder subBuilder = null; - if (data_ != null) { - subBuilder = data_.toBuilder(); - } - data_ = input.readMessage(meerkat.protobuf.Crypto.RerandomizableEncryptedMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(data_); - data_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Voting.internal_static_meerkat_EncryptedBallot_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Voting.internal_static_meerkat_EncryptedBallot_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Voting.EncryptedBallot.class, meerkat.protobuf.Voting.EncryptedBallot.Builder.class); - } - - public static final int SERIAL_NUMBER_FIELD_NUMBER = 1; - private long serialNumber_; - /** - * <pre> - * Ballot serial number - * </pre> - * - * <code>uint64 serial_number = 1;</code> - */ - public long getSerialNumber() { - return serialNumber_; - } - - public static final int DATA_FIELD_NUMBER = 2; - private meerkat.protobuf.Crypto.RerandomizableEncryptedMessage data_; - /** - * <code>.meerkat.RerandomizableEncryptedMessage data = 2;</code> - */ - public boolean hasData() { - return data_ != null; - } - /** - * <code>.meerkat.RerandomizableEncryptedMessage data = 2;</code> - */ - public meerkat.protobuf.Crypto.RerandomizableEncryptedMessage getData() { - return data_ == null ? meerkat.protobuf.Crypto.RerandomizableEncryptedMessage.getDefaultInstance() : data_; - } - /** - * <code>.meerkat.RerandomizableEncryptedMessage data = 2;</code> - */ - public meerkat.protobuf.Crypto.RerandomizableEncryptedMessageOrBuilder getDataOrBuilder() { - return getData(); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (serialNumber_ != 0L) { - output.writeUInt64(1, serialNumber_); - } - if (data_ != null) { - output.writeMessage(2, getData()); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (serialNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, serialNumber_); - } - if (data_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getData()); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.Voting.EncryptedBallot)) { - return super.equals(obj); - } - meerkat.protobuf.Voting.EncryptedBallot other = (meerkat.protobuf.Voting.EncryptedBallot) obj; - - boolean result = true; - result = result && (getSerialNumber() - == other.getSerialNumber()); - result = result && (hasData() == other.hasData()); - if (hasData()) { - result = result && getData() - .equals(other.getData()); - } - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SERIAL_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSerialNumber()); - if (hasData()) { - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.Voting.EncryptedBallot parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Voting.EncryptedBallot parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Voting.EncryptedBallot parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Voting.EncryptedBallot parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Voting.EncryptedBallot parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.EncryptedBallot parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Voting.EncryptedBallot parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.EncryptedBallot parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Voting.EncryptedBallot parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.EncryptedBallot parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.Voting.EncryptedBallot prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code meerkat.EncryptedBallot} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:meerkat.EncryptedBallot) - meerkat.protobuf.Voting.EncryptedBallotOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Voting.internal_static_meerkat_EncryptedBallot_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Voting.internal_static_meerkat_EncryptedBallot_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Voting.EncryptedBallot.class, meerkat.protobuf.Voting.EncryptedBallot.Builder.class); - } - - // Construct using meerkat.protobuf.Voting.EncryptedBallot.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - serialNumber_ = 0L; - - if (dataBuilder_ == null) { - data_ = null; - } else { - data_ = null; - dataBuilder_ = null; - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.Voting.internal_static_meerkat_EncryptedBallot_descriptor; - } - - public meerkat.protobuf.Voting.EncryptedBallot getDefaultInstanceForType() { - return meerkat.protobuf.Voting.EncryptedBallot.getDefaultInstance(); - } - - public meerkat.protobuf.Voting.EncryptedBallot build() { - meerkat.protobuf.Voting.EncryptedBallot result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.Voting.EncryptedBallot buildPartial() { - meerkat.protobuf.Voting.EncryptedBallot result = new meerkat.protobuf.Voting.EncryptedBallot(this); - result.serialNumber_ = serialNumber_; - if (dataBuilder_ == null) { - result.data_ = data_; - } else { - result.data_ = dataBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.Voting.EncryptedBallot) { - return mergeFrom((meerkat.protobuf.Voting.EncryptedBallot)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.Voting.EncryptedBallot other) { - if (other == meerkat.protobuf.Voting.EncryptedBallot.getDefaultInstance()) return this; - if (other.getSerialNumber() != 0L) { - setSerialNumber(other.getSerialNumber()); - } - if (other.hasData()) { - mergeData(other.getData()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.Voting.EncryptedBallot parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.Voting.EncryptedBallot) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long serialNumber_ ; - /** - * <pre> - * Ballot serial number - * </pre> - * - * <code>uint64 serial_number = 1;</code> - */ - public long getSerialNumber() { - return serialNumber_; - } - /** - * <pre> - * Ballot serial number - * </pre> - * - * <code>uint64 serial_number = 1;</code> - */ - public Builder setSerialNumber(long value) { - - serialNumber_ = value; - onChanged(); - return this; - } - /** - * <pre> - * Ballot serial number - * </pre> - * - * <code>uint64 serial_number = 1;</code> - */ - public Builder clearSerialNumber() { - - serialNumber_ = 0L; - onChanged(); - return this; - } - - private meerkat.protobuf.Crypto.RerandomizableEncryptedMessage data_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Crypto.RerandomizableEncryptedMessage, meerkat.protobuf.Crypto.RerandomizableEncryptedMessage.Builder, meerkat.protobuf.Crypto.RerandomizableEncryptedMessageOrBuilder> dataBuilder_; - /** - * <code>.meerkat.RerandomizableEncryptedMessage data = 2;</code> - */ - public boolean hasData() { - return dataBuilder_ != null || data_ != null; - } - /** - * <code>.meerkat.RerandomizableEncryptedMessage data = 2;</code> - */ - public meerkat.protobuf.Crypto.RerandomizableEncryptedMessage getData() { - if (dataBuilder_ == null) { - return data_ == null ? meerkat.protobuf.Crypto.RerandomizableEncryptedMessage.getDefaultInstance() : data_; - } else { - return dataBuilder_.getMessage(); - } - } - /** - * <code>.meerkat.RerandomizableEncryptedMessage data = 2;</code> - */ - public Builder setData(meerkat.protobuf.Crypto.RerandomizableEncryptedMessage value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - data_ = value; - onChanged(); - } else { - dataBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.meerkat.RerandomizableEncryptedMessage data = 2;</code> - */ - public Builder setData( - meerkat.protobuf.Crypto.RerandomizableEncryptedMessage.Builder builderForValue) { - if (dataBuilder_ == null) { - data_ = builderForValue.build(); - onChanged(); - } else { - dataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.meerkat.RerandomizableEncryptedMessage data = 2;</code> - */ - public Builder mergeData(meerkat.protobuf.Crypto.RerandomizableEncryptedMessage value) { - if (dataBuilder_ == null) { - if (data_ != null) { - data_ = - meerkat.protobuf.Crypto.RerandomizableEncryptedMessage.newBuilder(data_).mergeFrom(value).buildPartial(); - } else { - data_ = value; - } - onChanged(); - } else { - dataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.meerkat.RerandomizableEncryptedMessage data = 2;</code> - */ - public Builder clearData() { - if (dataBuilder_ == null) { - data_ = null; - onChanged(); - } else { - data_ = null; - dataBuilder_ = null; - } - - return this; - } - /** - * <code>.meerkat.RerandomizableEncryptedMessage data = 2;</code> - */ - public meerkat.protobuf.Crypto.RerandomizableEncryptedMessage.Builder getDataBuilder() { - - onChanged(); - return getDataFieldBuilder().getBuilder(); - } - /** - * <code>.meerkat.RerandomizableEncryptedMessage data = 2;</code> - */ - public meerkat.protobuf.Crypto.RerandomizableEncryptedMessageOrBuilder getDataOrBuilder() { - if (dataBuilder_ != null) { - return dataBuilder_.getMessageOrBuilder(); - } else { - return data_ == null ? - meerkat.protobuf.Crypto.RerandomizableEncryptedMessage.getDefaultInstance() : data_; - } - } - /** - * <code>.meerkat.RerandomizableEncryptedMessage data = 2;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Crypto.RerandomizableEncryptedMessage, meerkat.protobuf.Crypto.RerandomizableEncryptedMessage.Builder, meerkat.protobuf.Crypto.RerandomizableEncryptedMessageOrBuilder> - getDataFieldBuilder() { - if (dataBuilder_ == null) { - dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Crypto.RerandomizableEncryptedMessage, meerkat.protobuf.Crypto.RerandomizableEncryptedMessage.Builder, meerkat.protobuf.Crypto.RerandomizableEncryptedMessageOrBuilder>( - getData(), - getParentForChildren(), - isClean()); - data_ = null; - } - return dataBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.EncryptedBallot) - } - - // @@protoc_insertion_point(class_scope:meerkat.EncryptedBallot) - private static final meerkat.protobuf.Voting.EncryptedBallot DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.Voting.EncryptedBallot(); - } - - public static meerkat.protobuf.Voting.EncryptedBallot getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<EncryptedBallot> - PARSER = new com.google.protobuf.AbstractParser<EncryptedBallot>() { - public EncryptedBallot parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EncryptedBallot(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<EncryptedBallot> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<EncryptedBallot> getParserForType() { - return PARSER; - } - - public meerkat.protobuf.Voting.EncryptedBallot getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SignedEncryptedBallotOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.SignedEncryptedBallot) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>.meerkat.EncryptedBallot encrypted_ballot = 1;</code> - */ - boolean hasEncryptedBallot(); - /** - * <code>.meerkat.EncryptedBallot encrypted_ballot = 1;</code> - */ - meerkat.protobuf.Voting.EncryptedBallot getEncryptedBallot(); - /** - * <code>.meerkat.EncryptedBallot encrypted_ballot = 1;</code> - */ - meerkat.protobuf.Voting.EncryptedBallotOrBuilder getEncryptedBallotOrBuilder(); - - /** - * <code>.meerkat.Signature signature = 2;</code> - */ - boolean hasSignature(); - /** - * <code>.meerkat.Signature signature = 2;</code> - */ - meerkat.protobuf.Crypto.Signature getSignature(); - /** - * <code>.meerkat.Signature signature = 2;</code> - */ - meerkat.protobuf.Crypto.SignatureOrBuilder getSignatureOrBuilder(); - } - /** - * Protobuf type {@code meerkat.SignedEncryptedBallot} - */ - public static final class SignedEncryptedBallot extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.SignedEncryptedBallot) - SignedEncryptedBallotOrBuilder { - // Use SignedEncryptedBallot.newBuilder() to construct. - private SignedEncryptedBallot(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SignedEncryptedBallot() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private SignedEncryptedBallot( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - meerkat.protobuf.Voting.EncryptedBallot.Builder subBuilder = null; - if (encryptedBallot_ != null) { - subBuilder = encryptedBallot_.toBuilder(); - } - encryptedBallot_ = input.readMessage(meerkat.protobuf.Voting.EncryptedBallot.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(encryptedBallot_); - encryptedBallot_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - meerkat.protobuf.Crypto.Signature.Builder subBuilder = null; - if (signature_ != null) { - subBuilder = signature_.toBuilder(); - } - signature_ = input.readMessage(meerkat.protobuf.Crypto.Signature.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(signature_); - signature_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Voting.internal_static_meerkat_SignedEncryptedBallot_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Voting.internal_static_meerkat_SignedEncryptedBallot_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Voting.SignedEncryptedBallot.class, meerkat.protobuf.Voting.SignedEncryptedBallot.Builder.class); - } - - public static final int ENCRYPTED_BALLOT_FIELD_NUMBER = 1; - private meerkat.protobuf.Voting.EncryptedBallot encryptedBallot_; - /** - * <code>.meerkat.EncryptedBallot encrypted_ballot = 1;</code> - */ - public boolean hasEncryptedBallot() { - return encryptedBallot_ != null; - } - /** - * <code>.meerkat.EncryptedBallot encrypted_ballot = 1;</code> - */ - public meerkat.protobuf.Voting.EncryptedBallot getEncryptedBallot() { - return encryptedBallot_ == null ? meerkat.protobuf.Voting.EncryptedBallot.getDefaultInstance() : encryptedBallot_; - } - /** - * <code>.meerkat.EncryptedBallot encrypted_ballot = 1;</code> - */ - public meerkat.protobuf.Voting.EncryptedBallotOrBuilder getEncryptedBallotOrBuilder() { - return getEncryptedBallot(); - } - - public static final int SIGNATURE_FIELD_NUMBER = 2; - private meerkat.protobuf.Crypto.Signature signature_; - /** - * <code>.meerkat.Signature signature = 2;</code> - */ - public boolean hasSignature() { - return signature_ != null; - } - /** - * <code>.meerkat.Signature signature = 2;</code> - */ - public meerkat.protobuf.Crypto.Signature getSignature() { - return signature_ == null ? meerkat.protobuf.Crypto.Signature.getDefaultInstance() : signature_; - } - /** - * <code>.meerkat.Signature signature = 2;</code> - */ - public meerkat.protobuf.Crypto.SignatureOrBuilder getSignatureOrBuilder() { - return getSignature(); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (encryptedBallot_ != null) { - output.writeMessage(1, getEncryptedBallot()); - } - if (signature_ != null) { - output.writeMessage(2, getSignature()); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (encryptedBallot_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getEncryptedBallot()); - } - if (signature_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSignature()); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.Voting.SignedEncryptedBallot)) { - return super.equals(obj); - } - meerkat.protobuf.Voting.SignedEncryptedBallot other = (meerkat.protobuf.Voting.SignedEncryptedBallot) obj; - - boolean result = true; - result = result && (hasEncryptedBallot() == other.hasEncryptedBallot()); - if (hasEncryptedBallot()) { - result = result && getEncryptedBallot() - .equals(other.getEncryptedBallot()); - } - result = result && (hasSignature() == other.hasSignature()); - if (hasSignature()) { - result = result && getSignature() - .equals(other.getSignature()); - } - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasEncryptedBallot()) { - hash = (37 * hash) + ENCRYPTED_BALLOT_FIELD_NUMBER; - hash = (53 * hash) + getEncryptedBallot().hashCode(); - } - if (hasSignature()) { - hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; - hash = (53 * hash) + getSignature().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.Voting.SignedEncryptedBallot parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Voting.SignedEncryptedBallot parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Voting.SignedEncryptedBallot parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Voting.SignedEncryptedBallot parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Voting.SignedEncryptedBallot parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.SignedEncryptedBallot parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Voting.SignedEncryptedBallot parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.SignedEncryptedBallot parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Voting.SignedEncryptedBallot parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.SignedEncryptedBallot parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.Voting.SignedEncryptedBallot prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code meerkat.SignedEncryptedBallot} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:meerkat.SignedEncryptedBallot) - meerkat.protobuf.Voting.SignedEncryptedBallotOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Voting.internal_static_meerkat_SignedEncryptedBallot_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Voting.internal_static_meerkat_SignedEncryptedBallot_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Voting.SignedEncryptedBallot.class, meerkat.protobuf.Voting.SignedEncryptedBallot.Builder.class); - } - - // Construct using meerkat.protobuf.Voting.SignedEncryptedBallot.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - if (encryptedBallotBuilder_ == null) { - encryptedBallot_ = null; - } else { - encryptedBallot_ = null; - encryptedBallotBuilder_ = null; - } - if (signatureBuilder_ == null) { - signature_ = null; - } else { - signature_ = null; - signatureBuilder_ = null; - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.Voting.internal_static_meerkat_SignedEncryptedBallot_descriptor; - } - - public meerkat.protobuf.Voting.SignedEncryptedBallot getDefaultInstanceForType() { - return meerkat.protobuf.Voting.SignedEncryptedBallot.getDefaultInstance(); - } - - public meerkat.protobuf.Voting.SignedEncryptedBallot build() { - meerkat.protobuf.Voting.SignedEncryptedBallot result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.Voting.SignedEncryptedBallot buildPartial() { - meerkat.protobuf.Voting.SignedEncryptedBallot result = new meerkat.protobuf.Voting.SignedEncryptedBallot(this); - if (encryptedBallotBuilder_ == null) { - result.encryptedBallot_ = encryptedBallot_; - } else { - result.encryptedBallot_ = encryptedBallotBuilder_.build(); - } - if (signatureBuilder_ == null) { - result.signature_ = signature_; - } else { - result.signature_ = signatureBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.Voting.SignedEncryptedBallot) { - return mergeFrom((meerkat.protobuf.Voting.SignedEncryptedBallot)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.Voting.SignedEncryptedBallot other) { - if (other == meerkat.protobuf.Voting.SignedEncryptedBallot.getDefaultInstance()) return this; - if (other.hasEncryptedBallot()) { - mergeEncryptedBallot(other.getEncryptedBallot()); - } - if (other.hasSignature()) { - mergeSignature(other.getSignature()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.Voting.SignedEncryptedBallot parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.Voting.SignedEncryptedBallot) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private meerkat.protobuf.Voting.EncryptedBallot encryptedBallot_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Voting.EncryptedBallot, meerkat.protobuf.Voting.EncryptedBallot.Builder, meerkat.protobuf.Voting.EncryptedBallotOrBuilder> encryptedBallotBuilder_; - /** - * <code>.meerkat.EncryptedBallot encrypted_ballot = 1;</code> - */ - public boolean hasEncryptedBallot() { - return encryptedBallotBuilder_ != null || encryptedBallot_ != null; - } - /** - * <code>.meerkat.EncryptedBallot encrypted_ballot = 1;</code> - */ - public meerkat.protobuf.Voting.EncryptedBallot getEncryptedBallot() { - if (encryptedBallotBuilder_ == null) { - return encryptedBallot_ == null ? meerkat.protobuf.Voting.EncryptedBallot.getDefaultInstance() : encryptedBallot_; - } else { - return encryptedBallotBuilder_.getMessage(); - } - } - /** - * <code>.meerkat.EncryptedBallot encrypted_ballot = 1;</code> - */ - public Builder setEncryptedBallot(meerkat.protobuf.Voting.EncryptedBallot value) { - if (encryptedBallotBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - encryptedBallot_ = value; - onChanged(); - } else { - encryptedBallotBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.meerkat.EncryptedBallot encrypted_ballot = 1;</code> - */ - public Builder setEncryptedBallot( - meerkat.protobuf.Voting.EncryptedBallot.Builder builderForValue) { - if (encryptedBallotBuilder_ == null) { - encryptedBallot_ = builderForValue.build(); - onChanged(); - } else { - encryptedBallotBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.meerkat.EncryptedBallot encrypted_ballot = 1;</code> - */ - public Builder mergeEncryptedBallot(meerkat.protobuf.Voting.EncryptedBallot value) { - if (encryptedBallotBuilder_ == null) { - if (encryptedBallot_ != null) { - encryptedBallot_ = - meerkat.protobuf.Voting.EncryptedBallot.newBuilder(encryptedBallot_).mergeFrom(value).buildPartial(); - } else { - encryptedBallot_ = value; - } - onChanged(); - } else { - encryptedBallotBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.meerkat.EncryptedBallot encrypted_ballot = 1;</code> - */ - public Builder clearEncryptedBallot() { - if (encryptedBallotBuilder_ == null) { - encryptedBallot_ = null; - onChanged(); - } else { - encryptedBallot_ = null; - encryptedBallotBuilder_ = null; - } - - return this; - } - /** - * <code>.meerkat.EncryptedBallot encrypted_ballot = 1;</code> - */ - public meerkat.protobuf.Voting.EncryptedBallot.Builder getEncryptedBallotBuilder() { - - onChanged(); - return getEncryptedBallotFieldBuilder().getBuilder(); - } - /** - * <code>.meerkat.EncryptedBallot encrypted_ballot = 1;</code> - */ - public meerkat.protobuf.Voting.EncryptedBallotOrBuilder getEncryptedBallotOrBuilder() { - if (encryptedBallotBuilder_ != null) { - return encryptedBallotBuilder_.getMessageOrBuilder(); - } else { - return encryptedBallot_ == null ? - meerkat.protobuf.Voting.EncryptedBallot.getDefaultInstance() : encryptedBallot_; - } - } - /** - * <code>.meerkat.EncryptedBallot encrypted_ballot = 1;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Voting.EncryptedBallot, meerkat.protobuf.Voting.EncryptedBallot.Builder, meerkat.protobuf.Voting.EncryptedBallotOrBuilder> - getEncryptedBallotFieldBuilder() { - if (encryptedBallotBuilder_ == null) { - encryptedBallotBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Voting.EncryptedBallot, meerkat.protobuf.Voting.EncryptedBallot.Builder, meerkat.protobuf.Voting.EncryptedBallotOrBuilder>( - getEncryptedBallot(), - getParentForChildren(), - isClean()); - encryptedBallot_ = null; - } - return encryptedBallotBuilder_; - } - - private meerkat.protobuf.Crypto.Signature signature_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Crypto.Signature, meerkat.protobuf.Crypto.Signature.Builder, meerkat.protobuf.Crypto.SignatureOrBuilder> signatureBuilder_; - /** - * <code>.meerkat.Signature signature = 2;</code> - */ - public boolean hasSignature() { - return signatureBuilder_ != null || signature_ != null; - } - /** - * <code>.meerkat.Signature signature = 2;</code> - */ - public meerkat.protobuf.Crypto.Signature getSignature() { - if (signatureBuilder_ == null) { - return signature_ == null ? meerkat.protobuf.Crypto.Signature.getDefaultInstance() : signature_; - } else { - return signatureBuilder_.getMessage(); - } - } - /** - * <code>.meerkat.Signature signature = 2;</code> - */ - public Builder setSignature(meerkat.protobuf.Crypto.Signature value) { - if (signatureBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - signature_ = value; - onChanged(); - } else { - signatureBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.meerkat.Signature signature = 2;</code> - */ - public Builder setSignature( - meerkat.protobuf.Crypto.Signature.Builder builderForValue) { - if (signatureBuilder_ == null) { - signature_ = builderForValue.build(); - onChanged(); - } else { - signatureBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.meerkat.Signature signature = 2;</code> - */ - public Builder mergeSignature(meerkat.protobuf.Crypto.Signature value) { - if (signatureBuilder_ == null) { - if (signature_ != null) { - signature_ = - meerkat.protobuf.Crypto.Signature.newBuilder(signature_).mergeFrom(value).buildPartial(); - } else { - signature_ = value; - } - onChanged(); - } else { - signatureBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.meerkat.Signature signature = 2;</code> - */ - public Builder clearSignature() { - if (signatureBuilder_ == null) { - signature_ = null; - onChanged(); - } else { - signature_ = null; - signatureBuilder_ = null; - } - - return this; - } - /** - * <code>.meerkat.Signature signature = 2;</code> - */ - public meerkat.protobuf.Crypto.Signature.Builder getSignatureBuilder() { - - onChanged(); - return getSignatureFieldBuilder().getBuilder(); - } - /** - * <code>.meerkat.Signature signature = 2;</code> - */ - public meerkat.protobuf.Crypto.SignatureOrBuilder getSignatureOrBuilder() { - if (signatureBuilder_ != null) { - return signatureBuilder_.getMessageOrBuilder(); - } else { - return signature_ == null ? - meerkat.protobuf.Crypto.Signature.getDefaultInstance() : signature_; - } - } - /** - * <code>.meerkat.Signature signature = 2;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Crypto.Signature, meerkat.protobuf.Crypto.Signature.Builder, meerkat.protobuf.Crypto.SignatureOrBuilder> - getSignatureFieldBuilder() { - if (signatureBuilder_ == null) { - signatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Crypto.Signature, meerkat.protobuf.Crypto.Signature.Builder, meerkat.protobuf.Crypto.SignatureOrBuilder>( - getSignature(), - getParentForChildren(), - isClean()); - signature_ = null; - } - return signatureBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.SignedEncryptedBallot) - } - - // @@protoc_insertion_point(class_scope:meerkat.SignedEncryptedBallot) - private static final meerkat.protobuf.Voting.SignedEncryptedBallot DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.Voting.SignedEncryptedBallot(); - } - - public static meerkat.protobuf.Voting.SignedEncryptedBallot getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SignedEncryptedBallot> - PARSER = new com.google.protobuf.AbstractParser<SignedEncryptedBallot>() { - public SignedEncryptedBallot parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SignedEncryptedBallot(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SignedEncryptedBallot> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SignedEncryptedBallot> getParserForType() { - return PARSER; - } - - public meerkat.protobuf.Voting.SignedEncryptedBallot getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BallotSecretsOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.BallotSecrets) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>.meerkat.PlaintextBallot plaintext_ballot = 1;</code> - */ - boolean hasPlaintextBallot(); - /** - * <code>.meerkat.PlaintextBallot plaintext_ballot = 1;</code> - */ - meerkat.protobuf.Voting.PlaintextBallot getPlaintextBallot(); - /** - * <code>.meerkat.PlaintextBallot plaintext_ballot = 1;</code> - */ - meerkat.protobuf.Voting.PlaintextBallotOrBuilder getPlaintextBallotOrBuilder(); - - /** - * <code>.meerkat.EncryptionRandomness encryption_randomness = 2;</code> - */ - boolean hasEncryptionRandomness(); - /** - * <code>.meerkat.EncryptionRandomness encryption_randomness = 2;</code> - */ - meerkat.protobuf.Crypto.EncryptionRandomness getEncryptionRandomness(); - /** - * <code>.meerkat.EncryptionRandomness encryption_randomness = 2;</code> - */ - meerkat.protobuf.Crypto.EncryptionRandomnessOrBuilder getEncryptionRandomnessOrBuilder(); - - /** - * <code>.meerkat.RandomnessGenerationProof proof = 3;</code> - */ - boolean hasProof(); - /** - * <code>.meerkat.RandomnessGenerationProof proof = 3;</code> - */ - meerkat.protobuf.Crypto.RandomnessGenerationProof getProof(); - /** - * <code>.meerkat.RandomnessGenerationProof proof = 3;</code> - */ - meerkat.protobuf.Crypto.RandomnessGenerationProofOrBuilder getProofOrBuilder(); - } - /** - * Protobuf type {@code meerkat.BallotSecrets} - */ - public static final class BallotSecrets extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.BallotSecrets) - BallotSecretsOrBuilder { - // Use BallotSecrets.newBuilder() to construct. - private BallotSecrets(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private BallotSecrets() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private BallotSecrets( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - meerkat.protobuf.Voting.PlaintextBallot.Builder subBuilder = null; - if (plaintextBallot_ != null) { - subBuilder = plaintextBallot_.toBuilder(); - } - plaintextBallot_ = input.readMessage(meerkat.protobuf.Voting.PlaintextBallot.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(plaintextBallot_); - plaintextBallot_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - meerkat.protobuf.Crypto.EncryptionRandomness.Builder subBuilder = null; - if (encryptionRandomness_ != null) { - subBuilder = encryptionRandomness_.toBuilder(); - } - encryptionRandomness_ = input.readMessage(meerkat.protobuf.Crypto.EncryptionRandomness.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(encryptionRandomness_); - encryptionRandomness_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - meerkat.protobuf.Crypto.RandomnessGenerationProof.Builder subBuilder = null; - if (proof_ != null) { - subBuilder = proof_.toBuilder(); - } - proof_ = input.readMessage(meerkat.protobuf.Crypto.RandomnessGenerationProof.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(proof_); - proof_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Voting.internal_static_meerkat_BallotSecrets_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Voting.internal_static_meerkat_BallotSecrets_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Voting.BallotSecrets.class, meerkat.protobuf.Voting.BallotSecrets.Builder.class); - } - - public static final int PLAINTEXT_BALLOT_FIELD_NUMBER = 1; - private meerkat.protobuf.Voting.PlaintextBallot plaintextBallot_; - /** - * <code>.meerkat.PlaintextBallot plaintext_ballot = 1;</code> - */ - public boolean hasPlaintextBallot() { - return plaintextBallot_ != null; - } - /** - * <code>.meerkat.PlaintextBallot plaintext_ballot = 1;</code> - */ - public meerkat.protobuf.Voting.PlaintextBallot getPlaintextBallot() { - return plaintextBallot_ == null ? meerkat.protobuf.Voting.PlaintextBallot.getDefaultInstance() : plaintextBallot_; - } - /** - * <code>.meerkat.PlaintextBallot plaintext_ballot = 1;</code> - */ - public meerkat.protobuf.Voting.PlaintextBallotOrBuilder getPlaintextBallotOrBuilder() { - return getPlaintextBallot(); - } - - public static final int ENCRYPTION_RANDOMNESS_FIELD_NUMBER = 2; - private meerkat.protobuf.Crypto.EncryptionRandomness encryptionRandomness_; - /** - * <code>.meerkat.EncryptionRandomness encryption_randomness = 2;</code> - */ - public boolean hasEncryptionRandomness() { - return encryptionRandomness_ != null; - } - /** - * <code>.meerkat.EncryptionRandomness encryption_randomness = 2;</code> - */ - public meerkat.protobuf.Crypto.EncryptionRandomness getEncryptionRandomness() { - return encryptionRandomness_ == null ? meerkat.protobuf.Crypto.EncryptionRandomness.getDefaultInstance() : encryptionRandomness_; - } - /** - * <code>.meerkat.EncryptionRandomness encryption_randomness = 2;</code> - */ - public meerkat.protobuf.Crypto.EncryptionRandomnessOrBuilder getEncryptionRandomnessOrBuilder() { - return getEncryptionRandomness(); - } - - public static final int PROOF_FIELD_NUMBER = 3; - private meerkat.protobuf.Crypto.RandomnessGenerationProof proof_; - /** - * <code>.meerkat.RandomnessGenerationProof proof = 3;</code> - */ - public boolean hasProof() { - return proof_ != null; - } - /** - * <code>.meerkat.RandomnessGenerationProof proof = 3;</code> - */ - public meerkat.protobuf.Crypto.RandomnessGenerationProof getProof() { - return proof_ == null ? meerkat.protobuf.Crypto.RandomnessGenerationProof.getDefaultInstance() : proof_; - } - /** - * <code>.meerkat.RandomnessGenerationProof proof = 3;</code> - */ - public meerkat.protobuf.Crypto.RandomnessGenerationProofOrBuilder getProofOrBuilder() { - return getProof(); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (plaintextBallot_ != null) { - output.writeMessage(1, getPlaintextBallot()); - } - if (encryptionRandomness_ != null) { - output.writeMessage(2, getEncryptionRandomness()); - } - if (proof_ != null) { - output.writeMessage(3, getProof()); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (plaintextBallot_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPlaintextBallot()); - } - if (encryptionRandomness_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEncryptionRandomness()); - } - if (proof_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getProof()); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.Voting.BallotSecrets)) { - return super.equals(obj); - } - meerkat.protobuf.Voting.BallotSecrets other = (meerkat.protobuf.Voting.BallotSecrets) obj; - - boolean result = true; - result = result && (hasPlaintextBallot() == other.hasPlaintextBallot()); - if (hasPlaintextBallot()) { - result = result && getPlaintextBallot() - .equals(other.getPlaintextBallot()); - } - result = result && (hasEncryptionRandomness() == other.hasEncryptionRandomness()); - if (hasEncryptionRandomness()) { - result = result && getEncryptionRandomness() - .equals(other.getEncryptionRandomness()); - } - result = result && (hasProof() == other.hasProof()); - if (hasProof()) { - result = result && getProof() - .equals(other.getProof()); - } - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPlaintextBallot()) { - hash = (37 * hash) + PLAINTEXT_BALLOT_FIELD_NUMBER; - hash = (53 * hash) + getPlaintextBallot().hashCode(); - } - if (hasEncryptionRandomness()) { - hash = (37 * hash) + ENCRYPTION_RANDOMNESS_FIELD_NUMBER; - hash = (53 * hash) + getEncryptionRandomness().hashCode(); - } - if (hasProof()) { - hash = (37 * hash) + PROOF_FIELD_NUMBER; - hash = (53 * hash) + getProof().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.Voting.BallotSecrets parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Voting.BallotSecrets parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Voting.BallotSecrets parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Voting.BallotSecrets parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Voting.BallotSecrets parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.BallotSecrets parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Voting.BallotSecrets parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.BallotSecrets parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Voting.BallotSecrets parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.BallotSecrets parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.Voting.BallotSecrets prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code meerkat.BallotSecrets} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:meerkat.BallotSecrets) - meerkat.protobuf.Voting.BallotSecretsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Voting.internal_static_meerkat_BallotSecrets_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Voting.internal_static_meerkat_BallotSecrets_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Voting.BallotSecrets.class, meerkat.protobuf.Voting.BallotSecrets.Builder.class); - } - - // Construct using meerkat.protobuf.Voting.BallotSecrets.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - if (plaintextBallotBuilder_ == null) { - plaintextBallot_ = null; - } else { - plaintextBallot_ = null; - plaintextBallotBuilder_ = null; - } - if (encryptionRandomnessBuilder_ == null) { - encryptionRandomness_ = null; - } else { - encryptionRandomness_ = null; - encryptionRandomnessBuilder_ = null; - } - if (proofBuilder_ == null) { - proof_ = null; - } else { - proof_ = null; - proofBuilder_ = null; - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.Voting.internal_static_meerkat_BallotSecrets_descriptor; - } - - public meerkat.protobuf.Voting.BallotSecrets getDefaultInstanceForType() { - return meerkat.protobuf.Voting.BallotSecrets.getDefaultInstance(); - } - - public meerkat.protobuf.Voting.BallotSecrets build() { - meerkat.protobuf.Voting.BallotSecrets result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.Voting.BallotSecrets buildPartial() { - meerkat.protobuf.Voting.BallotSecrets result = new meerkat.protobuf.Voting.BallotSecrets(this); - if (plaintextBallotBuilder_ == null) { - result.plaintextBallot_ = plaintextBallot_; - } else { - result.plaintextBallot_ = plaintextBallotBuilder_.build(); - } - if (encryptionRandomnessBuilder_ == null) { - result.encryptionRandomness_ = encryptionRandomness_; - } else { - result.encryptionRandomness_ = encryptionRandomnessBuilder_.build(); - } - if (proofBuilder_ == null) { - result.proof_ = proof_; - } else { - result.proof_ = proofBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.Voting.BallotSecrets) { - return mergeFrom((meerkat.protobuf.Voting.BallotSecrets)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.Voting.BallotSecrets other) { - if (other == meerkat.protobuf.Voting.BallotSecrets.getDefaultInstance()) return this; - if (other.hasPlaintextBallot()) { - mergePlaintextBallot(other.getPlaintextBallot()); - } - if (other.hasEncryptionRandomness()) { - mergeEncryptionRandomness(other.getEncryptionRandomness()); - } - if (other.hasProof()) { - mergeProof(other.getProof()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.Voting.BallotSecrets parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.Voting.BallotSecrets) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private meerkat.protobuf.Voting.PlaintextBallot plaintextBallot_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Voting.PlaintextBallot, meerkat.protobuf.Voting.PlaintextBallot.Builder, meerkat.protobuf.Voting.PlaintextBallotOrBuilder> plaintextBallotBuilder_; - /** - * <code>.meerkat.PlaintextBallot plaintext_ballot = 1;</code> - */ - public boolean hasPlaintextBallot() { - return plaintextBallotBuilder_ != null || plaintextBallot_ != null; - } - /** - * <code>.meerkat.PlaintextBallot plaintext_ballot = 1;</code> - */ - public meerkat.protobuf.Voting.PlaintextBallot getPlaintextBallot() { - if (plaintextBallotBuilder_ == null) { - return plaintextBallot_ == null ? meerkat.protobuf.Voting.PlaintextBallot.getDefaultInstance() : plaintextBallot_; - } else { - return plaintextBallotBuilder_.getMessage(); - } - } - /** - * <code>.meerkat.PlaintextBallot plaintext_ballot = 1;</code> - */ - public Builder setPlaintextBallot(meerkat.protobuf.Voting.PlaintextBallot value) { - if (plaintextBallotBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - plaintextBallot_ = value; - onChanged(); - } else { - plaintextBallotBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.meerkat.PlaintextBallot plaintext_ballot = 1;</code> - */ - public Builder setPlaintextBallot( - meerkat.protobuf.Voting.PlaintextBallot.Builder builderForValue) { - if (plaintextBallotBuilder_ == null) { - plaintextBallot_ = builderForValue.build(); - onChanged(); - } else { - plaintextBallotBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.meerkat.PlaintextBallot plaintext_ballot = 1;</code> - */ - public Builder mergePlaintextBallot(meerkat.protobuf.Voting.PlaintextBallot value) { - if (plaintextBallotBuilder_ == null) { - if (plaintextBallot_ != null) { - plaintextBallot_ = - meerkat.protobuf.Voting.PlaintextBallot.newBuilder(plaintextBallot_).mergeFrom(value).buildPartial(); - } else { - plaintextBallot_ = value; - } - onChanged(); - } else { - plaintextBallotBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.meerkat.PlaintextBallot plaintext_ballot = 1;</code> - */ - public Builder clearPlaintextBallot() { - if (plaintextBallotBuilder_ == null) { - plaintextBallot_ = null; - onChanged(); - } else { - plaintextBallot_ = null; - plaintextBallotBuilder_ = null; - } - - return this; - } - /** - * <code>.meerkat.PlaintextBallot plaintext_ballot = 1;</code> - */ - public meerkat.protobuf.Voting.PlaintextBallot.Builder getPlaintextBallotBuilder() { - - onChanged(); - return getPlaintextBallotFieldBuilder().getBuilder(); - } - /** - * <code>.meerkat.PlaintextBallot plaintext_ballot = 1;</code> - */ - public meerkat.protobuf.Voting.PlaintextBallotOrBuilder getPlaintextBallotOrBuilder() { - if (plaintextBallotBuilder_ != null) { - return plaintextBallotBuilder_.getMessageOrBuilder(); - } else { - return plaintextBallot_ == null ? - meerkat.protobuf.Voting.PlaintextBallot.getDefaultInstance() : plaintextBallot_; - } - } - /** - * <code>.meerkat.PlaintextBallot plaintext_ballot = 1;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Voting.PlaintextBallot, meerkat.protobuf.Voting.PlaintextBallot.Builder, meerkat.protobuf.Voting.PlaintextBallotOrBuilder> - getPlaintextBallotFieldBuilder() { - if (plaintextBallotBuilder_ == null) { - plaintextBallotBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Voting.PlaintextBallot, meerkat.protobuf.Voting.PlaintextBallot.Builder, meerkat.protobuf.Voting.PlaintextBallotOrBuilder>( - getPlaintextBallot(), - getParentForChildren(), - isClean()); - plaintextBallot_ = null; - } - return plaintextBallotBuilder_; - } - - private meerkat.protobuf.Crypto.EncryptionRandomness encryptionRandomness_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Crypto.EncryptionRandomness, meerkat.protobuf.Crypto.EncryptionRandomness.Builder, meerkat.protobuf.Crypto.EncryptionRandomnessOrBuilder> encryptionRandomnessBuilder_; - /** - * <code>.meerkat.EncryptionRandomness encryption_randomness = 2;</code> - */ - public boolean hasEncryptionRandomness() { - return encryptionRandomnessBuilder_ != null || encryptionRandomness_ != null; - } - /** - * <code>.meerkat.EncryptionRandomness encryption_randomness = 2;</code> - */ - public meerkat.protobuf.Crypto.EncryptionRandomness getEncryptionRandomness() { - if (encryptionRandomnessBuilder_ == null) { - return encryptionRandomness_ == null ? meerkat.protobuf.Crypto.EncryptionRandomness.getDefaultInstance() : encryptionRandomness_; - } else { - return encryptionRandomnessBuilder_.getMessage(); - } - } - /** - * <code>.meerkat.EncryptionRandomness encryption_randomness = 2;</code> - */ - public Builder setEncryptionRandomness(meerkat.protobuf.Crypto.EncryptionRandomness value) { - if (encryptionRandomnessBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - encryptionRandomness_ = value; - onChanged(); - } else { - encryptionRandomnessBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.meerkat.EncryptionRandomness encryption_randomness = 2;</code> - */ - public Builder setEncryptionRandomness( - meerkat.protobuf.Crypto.EncryptionRandomness.Builder builderForValue) { - if (encryptionRandomnessBuilder_ == null) { - encryptionRandomness_ = builderForValue.build(); - onChanged(); - } else { - encryptionRandomnessBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.meerkat.EncryptionRandomness encryption_randomness = 2;</code> - */ - public Builder mergeEncryptionRandomness(meerkat.protobuf.Crypto.EncryptionRandomness value) { - if (encryptionRandomnessBuilder_ == null) { - if (encryptionRandomness_ != null) { - encryptionRandomness_ = - meerkat.protobuf.Crypto.EncryptionRandomness.newBuilder(encryptionRandomness_).mergeFrom(value).buildPartial(); - } else { - encryptionRandomness_ = value; - } - onChanged(); - } else { - encryptionRandomnessBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.meerkat.EncryptionRandomness encryption_randomness = 2;</code> - */ - public Builder clearEncryptionRandomness() { - if (encryptionRandomnessBuilder_ == null) { - encryptionRandomness_ = null; - onChanged(); - } else { - encryptionRandomness_ = null; - encryptionRandomnessBuilder_ = null; - } - - return this; - } - /** - * <code>.meerkat.EncryptionRandomness encryption_randomness = 2;</code> - */ - public meerkat.protobuf.Crypto.EncryptionRandomness.Builder getEncryptionRandomnessBuilder() { - - onChanged(); - return getEncryptionRandomnessFieldBuilder().getBuilder(); - } - /** - * <code>.meerkat.EncryptionRandomness encryption_randomness = 2;</code> - */ - public meerkat.protobuf.Crypto.EncryptionRandomnessOrBuilder getEncryptionRandomnessOrBuilder() { - if (encryptionRandomnessBuilder_ != null) { - return encryptionRandomnessBuilder_.getMessageOrBuilder(); - } else { - return encryptionRandomness_ == null ? - meerkat.protobuf.Crypto.EncryptionRandomness.getDefaultInstance() : encryptionRandomness_; - } - } - /** - * <code>.meerkat.EncryptionRandomness encryption_randomness = 2;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Crypto.EncryptionRandomness, meerkat.protobuf.Crypto.EncryptionRandomness.Builder, meerkat.protobuf.Crypto.EncryptionRandomnessOrBuilder> - getEncryptionRandomnessFieldBuilder() { - if (encryptionRandomnessBuilder_ == null) { - encryptionRandomnessBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Crypto.EncryptionRandomness, meerkat.protobuf.Crypto.EncryptionRandomness.Builder, meerkat.protobuf.Crypto.EncryptionRandomnessOrBuilder>( - getEncryptionRandomness(), - getParentForChildren(), - isClean()); - encryptionRandomness_ = null; - } - return encryptionRandomnessBuilder_; - } - - private meerkat.protobuf.Crypto.RandomnessGenerationProof proof_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Crypto.RandomnessGenerationProof, meerkat.protobuf.Crypto.RandomnessGenerationProof.Builder, meerkat.protobuf.Crypto.RandomnessGenerationProofOrBuilder> proofBuilder_; - /** - * <code>.meerkat.RandomnessGenerationProof proof = 3;</code> - */ - public boolean hasProof() { - return proofBuilder_ != null || proof_ != null; - } - /** - * <code>.meerkat.RandomnessGenerationProof proof = 3;</code> - */ - public meerkat.protobuf.Crypto.RandomnessGenerationProof getProof() { - if (proofBuilder_ == null) { - return proof_ == null ? meerkat.protobuf.Crypto.RandomnessGenerationProof.getDefaultInstance() : proof_; - } else { - return proofBuilder_.getMessage(); - } - } - /** - * <code>.meerkat.RandomnessGenerationProof proof = 3;</code> - */ - public Builder setProof(meerkat.protobuf.Crypto.RandomnessGenerationProof value) { - if (proofBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - proof_ = value; - onChanged(); - } else { - proofBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.meerkat.RandomnessGenerationProof proof = 3;</code> - */ - public Builder setProof( - meerkat.protobuf.Crypto.RandomnessGenerationProof.Builder builderForValue) { - if (proofBuilder_ == null) { - proof_ = builderForValue.build(); - onChanged(); - } else { - proofBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.meerkat.RandomnessGenerationProof proof = 3;</code> - */ - public Builder mergeProof(meerkat.protobuf.Crypto.RandomnessGenerationProof value) { - if (proofBuilder_ == null) { - if (proof_ != null) { - proof_ = - meerkat.protobuf.Crypto.RandomnessGenerationProof.newBuilder(proof_).mergeFrom(value).buildPartial(); - } else { - proof_ = value; - } - onChanged(); - } else { - proofBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.meerkat.RandomnessGenerationProof proof = 3;</code> - */ - public Builder clearProof() { - if (proofBuilder_ == null) { - proof_ = null; - onChanged(); - } else { - proof_ = null; - proofBuilder_ = null; - } - - return this; - } - /** - * <code>.meerkat.RandomnessGenerationProof proof = 3;</code> - */ - public meerkat.protobuf.Crypto.RandomnessGenerationProof.Builder getProofBuilder() { - - onChanged(); - return getProofFieldBuilder().getBuilder(); - } - /** - * <code>.meerkat.RandomnessGenerationProof proof = 3;</code> - */ - public meerkat.protobuf.Crypto.RandomnessGenerationProofOrBuilder getProofOrBuilder() { - if (proofBuilder_ != null) { - return proofBuilder_.getMessageOrBuilder(); - } else { - return proof_ == null ? - meerkat.protobuf.Crypto.RandomnessGenerationProof.getDefaultInstance() : proof_; - } - } - /** - * <code>.meerkat.RandomnessGenerationProof proof = 3;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Crypto.RandomnessGenerationProof, meerkat.protobuf.Crypto.RandomnessGenerationProof.Builder, meerkat.protobuf.Crypto.RandomnessGenerationProofOrBuilder> - getProofFieldBuilder() { - if (proofBuilder_ == null) { - proofBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Crypto.RandomnessGenerationProof, meerkat.protobuf.Crypto.RandomnessGenerationProof.Builder, meerkat.protobuf.Crypto.RandomnessGenerationProofOrBuilder>( - getProof(), - getParentForChildren(), - isClean()); - proof_ = null; - } - return proofBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.BallotSecrets) - } - - // @@protoc_insertion_point(class_scope:meerkat.BallotSecrets) - private static final meerkat.protobuf.Voting.BallotSecrets DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.Voting.BallotSecrets(); - } - - public static meerkat.protobuf.Voting.BallotSecrets getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<BallotSecrets> - PARSER = new com.google.protobuf.AbstractParser<BallotSecrets>() { - public BallotSecrets parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BallotSecrets(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<BallotSecrets> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<BallotSecrets> getParserForType() { - return PARSER; - } - - public meerkat.protobuf.Voting.BallotSecrets getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BoothParamsOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.BoothParams) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> - */ - java.util.List<meerkat.protobuf.Crypto.SignatureVerificationKey> - getPscVerificationKeysList(); - /** - * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> - */ - meerkat.protobuf.Crypto.SignatureVerificationKey getPscVerificationKeys(int index); - /** - * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> - */ - int getPscVerificationKeysCount(); - /** - * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> - */ - java.util.List<? extends meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder> - getPscVerificationKeysOrBuilderList(); - /** - * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> - */ - meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder getPscVerificationKeysOrBuilder( - int index); - } - /** - * Protobuf type {@code meerkat.BoothParams} - */ - public static final class BoothParams extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.BoothParams) - BoothParamsOrBuilder { - // Use BoothParams.newBuilder() to construct. - private BoothParams(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private BoothParams() { - pscVerificationKeys_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private BoothParams( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - pscVerificationKeys_ = new java.util.ArrayList<meerkat.protobuf.Crypto.SignatureVerificationKey>(); - mutable_bitField0_ |= 0x00000001; - } - pscVerificationKeys_.add( - input.readMessage(meerkat.protobuf.Crypto.SignatureVerificationKey.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - pscVerificationKeys_ = java.util.Collections.unmodifiableList(pscVerificationKeys_); - } - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Voting.internal_static_meerkat_BoothParams_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Voting.internal_static_meerkat_BoothParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Voting.BoothParams.class, meerkat.protobuf.Voting.BoothParams.Builder.class); - } - - public static final int PSCVERIFICATIONKEYS_FIELD_NUMBER = 1; - private java.util.List<meerkat.protobuf.Crypto.SignatureVerificationKey> pscVerificationKeys_; - /** - * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> - */ - public java.util.List<meerkat.protobuf.Crypto.SignatureVerificationKey> getPscVerificationKeysList() { - return pscVerificationKeys_; - } - /** - * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> - */ - public java.util.List<? extends meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder> - getPscVerificationKeysOrBuilderList() { - return pscVerificationKeys_; - } - /** - * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> - */ - public int getPscVerificationKeysCount() { - return pscVerificationKeys_.size(); - } - /** - * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> - */ - public meerkat.protobuf.Crypto.SignatureVerificationKey getPscVerificationKeys(int index) { - return pscVerificationKeys_.get(index); - } - /** - * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> - */ - public meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder getPscVerificationKeysOrBuilder( - int index) { - return pscVerificationKeys_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < pscVerificationKeys_.size(); i++) { - output.writeMessage(1, pscVerificationKeys_.get(i)); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < pscVerificationKeys_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, pscVerificationKeys_.get(i)); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.Voting.BoothParams)) { - return super.equals(obj); - } - meerkat.protobuf.Voting.BoothParams other = (meerkat.protobuf.Voting.BoothParams) obj; - - boolean result = true; - result = result && getPscVerificationKeysList() - .equals(other.getPscVerificationKeysList()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getPscVerificationKeysCount() > 0) { - hash = (37 * hash) + PSCVERIFICATIONKEYS_FIELD_NUMBER; - hash = (53 * hash) + getPscVerificationKeysList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.Voting.BoothParams parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Voting.BoothParams parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Voting.BoothParams parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Voting.BoothParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Voting.BoothParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.BoothParams parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Voting.BoothParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.BoothParams parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Voting.BoothParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.BoothParams parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.Voting.BoothParams prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code meerkat.BoothParams} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:meerkat.BoothParams) - meerkat.protobuf.Voting.BoothParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Voting.internal_static_meerkat_BoothParams_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Voting.internal_static_meerkat_BoothParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Voting.BoothParams.class, meerkat.protobuf.Voting.BoothParams.Builder.class); - } - - // Construct using meerkat.protobuf.Voting.BoothParams.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getPscVerificationKeysFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (pscVerificationKeysBuilder_ == null) { - pscVerificationKeys_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - pscVerificationKeysBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.Voting.internal_static_meerkat_BoothParams_descriptor; - } - - public meerkat.protobuf.Voting.BoothParams getDefaultInstanceForType() { - return meerkat.protobuf.Voting.BoothParams.getDefaultInstance(); - } - - public meerkat.protobuf.Voting.BoothParams build() { - meerkat.protobuf.Voting.BoothParams result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.Voting.BoothParams buildPartial() { - meerkat.protobuf.Voting.BoothParams result = new meerkat.protobuf.Voting.BoothParams(this); - int from_bitField0_ = bitField0_; - if (pscVerificationKeysBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - pscVerificationKeys_ = java.util.Collections.unmodifiableList(pscVerificationKeys_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.pscVerificationKeys_ = pscVerificationKeys_; - } else { - result.pscVerificationKeys_ = pscVerificationKeysBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.Voting.BoothParams) { - return mergeFrom((meerkat.protobuf.Voting.BoothParams)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.Voting.BoothParams other) { - if (other == meerkat.protobuf.Voting.BoothParams.getDefaultInstance()) return this; - if (pscVerificationKeysBuilder_ == null) { - if (!other.pscVerificationKeys_.isEmpty()) { - if (pscVerificationKeys_.isEmpty()) { - pscVerificationKeys_ = other.pscVerificationKeys_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePscVerificationKeysIsMutable(); - pscVerificationKeys_.addAll(other.pscVerificationKeys_); - } - onChanged(); - } - } else { - if (!other.pscVerificationKeys_.isEmpty()) { - if (pscVerificationKeysBuilder_.isEmpty()) { - pscVerificationKeysBuilder_.dispose(); - pscVerificationKeysBuilder_ = null; - pscVerificationKeys_ = other.pscVerificationKeys_; - bitField0_ = (bitField0_ & ~0x00000001); - pscVerificationKeysBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPscVerificationKeysFieldBuilder() : null; - } else { - pscVerificationKeysBuilder_.addAllMessages(other.pscVerificationKeys_); - } - } - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.Voting.BoothParams parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.Voting.BoothParams) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List<meerkat.protobuf.Crypto.SignatureVerificationKey> pscVerificationKeys_ = - java.util.Collections.emptyList(); - private void ensurePscVerificationKeysIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - pscVerificationKeys_ = new java.util.ArrayList<meerkat.protobuf.Crypto.SignatureVerificationKey>(pscVerificationKeys_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.Crypto.SignatureVerificationKey, meerkat.protobuf.Crypto.SignatureVerificationKey.Builder, meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder> pscVerificationKeysBuilder_; - - /** - * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> - */ - public java.util.List<meerkat.protobuf.Crypto.SignatureVerificationKey> getPscVerificationKeysList() { - if (pscVerificationKeysBuilder_ == null) { - return java.util.Collections.unmodifiableList(pscVerificationKeys_); - } else { - return pscVerificationKeysBuilder_.getMessageList(); - } - } - /** - * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> - */ - public int getPscVerificationKeysCount() { - if (pscVerificationKeysBuilder_ == null) { - return pscVerificationKeys_.size(); - } else { - return pscVerificationKeysBuilder_.getCount(); - } - } - /** - * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> - */ - public meerkat.protobuf.Crypto.SignatureVerificationKey getPscVerificationKeys(int index) { - if (pscVerificationKeysBuilder_ == null) { - return pscVerificationKeys_.get(index); - } else { - return pscVerificationKeysBuilder_.getMessage(index); - } - } - /** - * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> - */ - public Builder setPscVerificationKeys( - int index, meerkat.protobuf.Crypto.SignatureVerificationKey value) { - if (pscVerificationKeysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePscVerificationKeysIsMutable(); - pscVerificationKeys_.set(index, value); - onChanged(); - } else { - pscVerificationKeysBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> - */ - public Builder setPscVerificationKeys( - int index, meerkat.protobuf.Crypto.SignatureVerificationKey.Builder builderForValue) { - if (pscVerificationKeysBuilder_ == null) { - ensurePscVerificationKeysIsMutable(); - pscVerificationKeys_.set(index, builderForValue.build()); - onChanged(); - } else { - pscVerificationKeysBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> - */ - public Builder addPscVerificationKeys(meerkat.protobuf.Crypto.SignatureVerificationKey value) { - if (pscVerificationKeysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePscVerificationKeysIsMutable(); - pscVerificationKeys_.add(value); - onChanged(); - } else { - pscVerificationKeysBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> - */ - public Builder addPscVerificationKeys( - int index, meerkat.protobuf.Crypto.SignatureVerificationKey value) { - if (pscVerificationKeysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePscVerificationKeysIsMutable(); - pscVerificationKeys_.add(index, value); - onChanged(); - } else { - pscVerificationKeysBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> - */ - public Builder addPscVerificationKeys( - meerkat.protobuf.Crypto.SignatureVerificationKey.Builder builderForValue) { - if (pscVerificationKeysBuilder_ == null) { - ensurePscVerificationKeysIsMutable(); - pscVerificationKeys_.add(builderForValue.build()); - onChanged(); - } else { - pscVerificationKeysBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> - */ - public Builder addPscVerificationKeys( - int index, meerkat.protobuf.Crypto.SignatureVerificationKey.Builder builderForValue) { - if (pscVerificationKeysBuilder_ == null) { - ensurePscVerificationKeysIsMutable(); - pscVerificationKeys_.add(index, builderForValue.build()); - onChanged(); - } else { - pscVerificationKeysBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> - */ - public Builder addAllPscVerificationKeys( - java.lang.Iterable<? extends meerkat.protobuf.Crypto.SignatureVerificationKey> values) { - if (pscVerificationKeysBuilder_ == null) { - ensurePscVerificationKeysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pscVerificationKeys_); - onChanged(); - } else { - pscVerificationKeysBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> - */ - public Builder clearPscVerificationKeys() { - if (pscVerificationKeysBuilder_ == null) { - pscVerificationKeys_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - pscVerificationKeysBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> - */ - public Builder removePscVerificationKeys(int index) { - if (pscVerificationKeysBuilder_ == null) { - ensurePscVerificationKeysIsMutable(); - pscVerificationKeys_.remove(index); - onChanged(); - } else { - pscVerificationKeysBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> - */ - public meerkat.protobuf.Crypto.SignatureVerificationKey.Builder getPscVerificationKeysBuilder( - int index) { - return getPscVerificationKeysFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> - */ - public meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder getPscVerificationKeysOrBuilder( - int index) { - if (pscVerificationKeysBuilder_ == null) { - return pscVerificationKeys_.get(index); } else { - return pscVerificationKeysBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> - */ - public java.util.List<? extends meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder> - getPscVerificationKeysOrBuilderList() { - if (pscVerificationKeysBuilder_ != null) { - return pscVerificationKeysBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(pscVerificationKeys_); - } - } - /** - * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> - */ - public meerkat.protobuf.Crypto.SignatureVerificationKey.Builder addPscVerificationKeysBuilder() { - return getPscVerificationKeysFieldBuilder().addBuilder( - meerkat.protobuf.Crypto.SignatureVerificationKey.getDefaultInstance()); - } - /** - * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> - */ - public meerkat.protobuf.Crypto.SignatureVerificationKey.Builder addPscVerificationKeysBuilder( - int index) { - return getPscVerificationKeysFieldBuilder().addBuilder( - index, meerkat.protobuf.Crypto.SignatureVerificationKey.getDefaultInstance()); - } - /** - * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> - */ - public java.util.List<meerkat.protobuf.Crypto.SignatureVerificationKey.Builder> - getPscVerificationKeysBuilderList() { - return getPscVerificationKeysFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.Crypto.SignatureVerificationKey, meerkat.protobuf.Crypto.SignatureVerificationKey.Builder, meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder> - getPscVerificationKeysFieldBuilder() { - if (pscVerificationKeysBuilder_ == null) { - pscVerificationKeysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.Crypto.SignatureVerificationKey, meerkat.protobuf.Crypto.SignatureVerificationKey.Builder, meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder>( - pscVerificationKeys_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - pscVerificationKeys_ = null; - } - return pscVerificationKeysBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.BoothParams) - } - - // @@protoc_insertion_point(class_scope:meerkat.BoothParams) - private static final meerkat.protobuf.Voting.BoothParams DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.Voting.BoothParams(); - } - - public static meerkat.protobuf.Voting.BoothParams getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<BoothParams> - PARSER = new com.google.protobuf.AbstractParser<BoothParams>() { - public BoothParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BoothParams(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<BoothParams> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<BoothParams> getParserForType() { - return PARSER; - } - - public meerkat.protobuf.Voting.BoothParams getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BoothSystemMessagesOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.BoothSystemMessages) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>map&lt;string, .meerkat.UIElement&gt; system_message = 1;</code> - */ - int getSystemMessageCount(); - /** - * <code>map&lt;string, .meerkat.UIElement&gt; system_message = 1;</code> - */ - boolean containsSystemMessage( - java.lang.String key); - /** - * Use {@link #getSystemMessageMap()} instead. - */ - @java.lang.Deprecated - java.util.Map<java.lang.String, meerkat.protobuf.Voting.UIElement> - getSystemMessage(); - /** - * <code>map&lt;string, .meerkat.UIElement&gt; system_message = 1;</code> - */ - java.util.Map<java.lang.String, meerkat.protobuf.Voting.UIElement> - getSystemMessageMap(); - /** - * <code>map&lt;string, .meerkat.UIElement&gt; system_message = 1;</code> - */ - - meerkat.protobuf.Voting.UIElement getSystemMessageOrDefault( - java.lang.String key, - meerkat.protobuf.Voting.UIElement defaultValue); - /** - * <code>map&lt;string, .meerkat.UIElement&gt; system_message = 1;</code> - */ - - meerkat.protobuf.Voting.UIElement getSystemMessageOrThrow( - java.lang.String key); - } - /** - * Protobuf type {@code meerkat.BoothSystemMessages} - */ - public static final class BoothSystemMessages extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.BoothSystemMessages) - BoothSystemMessagesOrBuilder { - // Use BoothSystemMessages.newBuilder() to construct. - private BoothSystemMessages(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private BoothSystemMessages() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private BoothSystemMessages( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - systemMessage_ = com.google.protobuf.MapField.newMapField( - SystemMessageDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry<java.lang.String, meerkat.protobuf.Voting.UIElement> - systemMessage__ = input.readMessage( - SystemMessageDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - systemMessage_.getMutableMap().put( - systemMessage__.getKey(), systemMessage__.getValue()); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Voting.internal_static_meerkat_BoothSystemMessages_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetSystemMessage(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Voting.internal_static_meerkat_BoothSystemMessages_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Voting.BoothSystemMessages.class, meerkat.protobuf.Voting.BoothSystemMessages.Builder.class); - } - - public static final int SYSTEM_MESSAGE_FIELD_NUMBER = 1; - private static final class SystemMessageDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, meerkat.protobuf.Voting.UIElement> defaultEntry = - com.google.protobuf.MapEntry - .<java.lang.String, meerkat.protobuf.Voting.UIElement>newDefaultInstance( - meerkat.protobuf.Voting.internal_static_meerkat_BoothSystemMessages_SystemMessageEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - meerkat.protobuf.Voting.UIElement.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, meerkat.protobuf.Voting.UIElement> systemMessage_; - private com.google.protobuf.MapField<java.lang.String, meerkat.protobuf.Voting.UIElement> - internalGetSystemMessage() { - if (systemMessage_ == null) { - return com.google.protobuf.MapField.emptyMapField( - SystemMessageDefaultEntryHolder.defaultEntry); - } - return systemMessage_; - } - - public int getSystemMessageCount() { - return internalGetSystemMessage().getMap().size(); - } - /** - * <code>map&lt;string, .meerkat.UIElement&gt; system_message = 1;</code> - */ - - public boolean containsSystemMessage( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetSystemMessage().getMap().containsKey(key); - } - /** - * Use {@link #getSystemMessageMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.String, meerkat.protobuf.Voting.UIElement> getSystemMessage() { - return getSystemMessageMap(); - } - /** - * <code>map&lt;string, .meerkat.UIElement&gt; system_message = 1;</code> - */ - - public java.util.Map<java.lang.String, meerkat.protobuf.Voting.UIElement> getSystemMessageMap() { - return internalGetSystemMessage().getMap(); - } - /** - * <code>map&lt;string, .meerkat.UIElement&gt; system_message = 1;</code> - */ - - public meerkat.protobuf.Voting.UIElement getSystemMessageOrDefault( - java.lang.String key, - meerkat.protobuf.Voting.UIElement defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map<java.lang.String, meerkat.protobuf.Voting.UIElement> map = - internalGetSystemMessage().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map&lt;string, .meerkat.UIElement&gt; system_message = 1;</code> - */ - - public meerkat.protobuf.Voting.UIElement getSystemMessageOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map<java.lang.String, meerkat.protobuf.Voting.UIElement> map = - internalGetSystemMessage().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetSystemMessage(), - SystemMessageDefaultEntryHolder.defaultEntry, - 1); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry<java.lang.String, meerkat.protobuf.Voting.UIElement> entry - : internalGetSystemMessage().getMap().entrySet()) { - com.google.protobuf.MapEntry<java.lang.String, meerkat.protobuf.Voting.UIElement> - systemMessage__ = SystemMessageDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, systemMessage__); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.Voting.BoothSystemMessages)) { - return super.equals(obj); - } - meerkat.protobuf.Voting.BoothSystemMessages other = (meerkat.protobuf.Voting.BoothSystemMessages) obj; - - boolean result = true; - result = result && internalGetSystemMessage().equals( - other.internalGetSystemMessage()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetSystemMessage().getMap().isEmpty()) { - hash = (37 * hash) + SYSTEM_MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + internalGetSystemMessage().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.Voting.BoothSystemMessages parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Voting.BoothSystemMessages parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Voting.BoothSystemMessages parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Voting.BoothSystemMessages parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Voting.BoothSystemMessages parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.BoothSystemMessages parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Voting.BoothSystemMessages parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.BoothSystemMessages parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Voting.BoothSystemMessages parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.BoothSystemMessages parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.Voting.BoothSystemMessages prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code meerkat.BoothSystemMessages} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:meerkat.BoothSystemMessages) - meerkat.protobuf.Voting.BoothSystemMessagesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Voting.internal_static_meerkat_BoothSystemMessages_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetSystemMessage(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableSystemMessage(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Voting.internal_static_meerkat_BoothSystemMessages_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Voting.BoothSystemMessages.class, meerkat.protobuf.Voting.BoothSystemMessages.Builder.class); - } - - // Construct using meerkat.protobuf.Voting.BoothSystemMessages.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - internalGetMutableSystemMessage().clear(); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.Voting.internal_static_meerkat_BoothSystemMessages_descriptor; - } - - public meerkat.protobuf.Voting.BoothSystemMessages getDefaultInstanceForType() { - return meerkat.protobuf.Voting.BoothSystemMessages.getDefaultInstance(); - } - - public meerkat.protobuf.Voting.BoothSystemMessages build() { - meerkat.protobuf.Voting.BoothSystemMessages result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.Voting.BoothSystemMessages buildPartial() { - meerkat.protobuf.Voting.BoothSystemMessages result = new meerkat.protobuf.Voting.BoothSystemMessages(this); - int from_bitField0_ = bitField0_; - result.systemMessage_ = internalGetSystemMessage(); - result.systemMessage_.makeImmutable(); - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.Voting.BoothSystemMessages) { - return mergeFrom((meerkat.protobuf.Voting.BoothSystemMessages)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.Voting.BoothSystemMessages other) { - if (other == meerkat.protobuf.Voting.BoothSystemMessages.getDefaultInstance()) return this; - internalGetMutableSystemMessage().mergeFrom( - other.internalGetSystemMessage()); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.Voting.BoothSystemMessages parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.Voting.BoothSystemMessages) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, meerkat.protobuf.Voting.UIElement> systemMessage_; - private com.google.protobuf.MapField<java.lang.String, meerkat.protobuf.Voting.UIElement> - internalGetSystemMessage() { - if (systemMessage_ == null) { - return com.google.protobuf.MapField.emptyMapField( - SystemMessageDefaultEntryHolder.defaultEntry); - } - return systemMessage_; - } - private com.google.protobuf.MapField<java.lang.String, meerkat.protobuf.Voting.UIElement> - internalGetMutableSystemMessage() { - onChanged();; - if (systemMessage_ == null) { - systemMessage_ = com.google.protobuf.MapField.newMapField( - SystemMessageDefaultEntryHolder.defaultEntry); - } - if (!systemMessage_.isMutable()) { - systemMessage_ = systemMessage_.copy(); - } - return systemMessage_; - } - - public int getSystemMessageCount() { - return internalGetSystemMessage().getMap().size(); - } - /** - * <code>map&lt;string, .meerkat.UIElement&gt; system_message = 1;</code> - */ - - public boolean containsSystemMessage( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetSystemMessage().getMap().containsKey(key); - } - /** - * Use {@link #getSystemMessageMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.String, meerkat.protobuf.Voting.UIElement> getSystemMessage() { - return getSystemMessageMap(); - } - /** - * <code>map&lt;string, .meerkat.UIElement&gt; system_message = 1;</code> - */ - - public java.util.Map<java.lang.String, meerkat.protobuf.Voting.UIElement> getSystemMessageMap() { - return internalGetSystemMessage().getMap(); - } - /** - * <code>map&lt;string, .meerkat.UIElement&gt; system_message = 1;</code> - */ - - public meerkat.protobuf.Voting.UIElement getSystemMessageOrDefault( - java.lang.String key, - meerkat.protobuf.Voting.UIElement defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map<java.lang.String, meerkat.protobuf.Voting.UIElement> map = - internalGetSystemMessage().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * <code>map&lt;string, .meerkat.UIElement&gt; system_message = 1;</code> - */ - - public meerkat.protobuf.Voting.UIElement getSystemMessageOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map<java.lang.String, meerkat.protobuf.Voting.UIElement> map = - internalGetSystemMessage().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearSystemMessage() { - internalGetMutableSystemMessage().getMutableMap() - .clear(); - return this; - } - /** - * <code>map&lt;string, .meerkat.UIElement&gt; system_message = 1;</code> - */ - - public Builder removeSystemMessage( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableSystemMessage().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map<java.lang.String, meerkat.protobuf.Voting.UIElement> - getMutableSystemMessage() { - return internalGetMutableSystemMessage().getMutableMap(); - } - /** - * <code>map&lt;string, .meerkat.UIElement&gt; system_message = 1;</code> - */ - public Builder putSystemMessage( - java.lang.String key, - meerkat.protobuf.Voting.UIElement value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableSystemMessage().getMutableMap() - .put(key, value); - return this; - } - /** - * <code>map&lt;string, .meerkat.UIElement&gt; system_message = 1;</code> - */ - - public Builder putAllSystemMessage( - java.util.Map<java.lang.String, meerkat.protobuf.Voting.UIElement> values) { - internalGetMutableSystemMessage().getMutableMap() - .putAll(values); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.BoothSystemMessages) - } - - // @@protoc_insertion_point(class_scope:meerkat.BoothSystemMessages) - private static final meerkat.protobuf.Voting.BoothSystemMessages DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.Voting.BoothSystemMessages(); - } - - public static meerkat.protobuf.Voting.BoothSystemMessages getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<BoothSystemMessages> - PARSER = new com.google.protobuf.AbstractParser<BoothSystemMessages>() { - public BoothSystemMessages parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BoothSystemMessages(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<BoothSystemMessages> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<BoothSystemMessages> getParserForType() { - return PARSER; - } - - public meerkat.protobuf.Voting.BoothSystemMessages getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BallotAnswerTranslationTableOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.BallotAnswerTranslationTable) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>bytes data = 1;</code> - */ - com.google.protobuf.ByteString getData(); - } - /** - * <pre> - * A table to translate to and from compactly encoded answers - * and their human-understandable counterparts. - * This should be parsable by the UI - * </pre> - * - * Protobuf type {@code meerkat.BallotAnswerTranslationTable} - */ - public static final class BallotAnswerTranslationTable extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.BallotAnswerTranslationTable) - BallotAnswerTranslationTableOrBuilder { - // Use BallotAnswerTranslationTable.newBuilder() to construct. - private BallotAnswerTranslationTable(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private BallotAnswerTranslationTable() { - data_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private BallotAnswerTranslationTable( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - - data_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Voting.internal_static_meerkat_BallotAnswerTranslationTable_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Voting.internal_static_meerkat_BallotAnswerTranslationTable_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Voting.BallotAnswerTranslationTable.class, meerkat.protobuf.Voting.BallotAnswerTranslationTable.Builder.class); - } - - public static final int DATA_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString data_; - /** - * <code>bytes data = 1;</code> - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!data_.isEmpty()) { - output.writeBytes(1, data_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, data_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.Voting.BallotAnswerTranslationTable)) { - return super.equals(obj); - } - meerkat.protobuf.Voting.BallotAnswerTranslationTable other = (meerkat.protobuf.Voting.BallotAnswerTranslationTable) obj; - - boolean result = true; - result = result && getData() - .equals(other.getData()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.Voting.BallotAnswerTranslationTable parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Voting.BallotAnswerTranslationTable parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Voting.BallotAnswerTranslationTable parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Voting.BallotAnswerTranslationTable parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Voting.BallotAnswerTranslationTable parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.BallotAnswerTranslationTable parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Voting.BallotAnswerTranslationTable parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.BallotAnswerTranslationTable parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Voting.BallotAnswerTranslationTable parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.BallotAnswerTranslationTable parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.Voting.BallotAnswerTranslationTable prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * <pre> - * A table to translate to and from compactly encoded answers - * and their human-understandable counterparts. - * This should be parsable by the UI - * </pre> - * - * Protobuf type {@code meerkat.BallotAnswerTranslationTable} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:meerkat.BallotAnswerTranslationTable) - meerkat.protobuf.Voting.BallotAnswerTranslationTableOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Voting.internal_static_meerkat_BallotAnswerTranslationTable_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Voting.internal_static_meerkat_BallotAnswerTranslationTable_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Voting.BallotAnswerTranslationTable.class, meerkat.protobuf.Voting.BallotAnswerTranslationTable.Builder.class); - } - - // Construct using meerkat.protobuf.Voting.BallotAnswerTranslationTable.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - data_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.Voting.internal_static_meerkat_BallotAnswerTranslationTable_descriptor; - } - - public meerkat.protobuf.Voting.BallotAnswerTranslationTable getDefaultInstanceForType() { - return meerkat.protobuf.Voting.BallotAnswerTranslationTable.getDefaultInstance(); - } - - public meerkat.protobuf.Voting.BallotAnswerTranslationTable build() { - meerkat.protobuf.Voting.BallotAnswerTranslationTable result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.Voting.BallotAnswerTranslationTable buildPartial() { - meerkat.protobuf.Voting.BallotAnswerTranslationTable result = new meerkat.protobuf.Voting.BallotAnswerTranslationTable(this); - result.data_ = data_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.Voting.BallotAnswerTranslationTable) { - return mergeFrom((meerkat.protobuf.Voting.BallotAnswerTranslationTable)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.Voting.BallotAnswerTranslationTable other) { - if (other == meerkat.protobuf.Voting.BallotAnswerTranslationTable.getDefaultInstance()) return this; - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.Voting.BallotAnswerTranslationTable parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.Voting.BallotAnswerTranslationTable) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - * <code>bytes data = 1;</code> - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - * <code>bytes data = 1;</code> - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - * <code>bytes data = 1;</code> - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.BallotAnswerTranslationTable) - } - - // @@protoc_insertion_point(class_scope:meerkat.BallotAnswerTranslationTable) - private static final meerkat.protobuf.Voting.BallotAnswerTranslationTable DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.Voting.BallotAnswerTranslationTable(); - } - - public static meerkat.protobuf.Voting.BallotAnswerTranslationTable getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<BallotAnswerTranslationTable> - PARSER = new com.google.protobuf.AbstractParser<BallotAnswerTranslationTable>() { - public BallotAnswerTranslationTable parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BallotAnswerTranslationTable(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<BallotAnswerTranslationTable> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<BallotAnswerTranslationTable> getParserForType() { - return PARSER; - } - - public meerkat.protobuf.Voting.BallotAnswerTranslationTable getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BulletinBoardClientParamsOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.BulletinBoardClientParams) - com.google.protobuf.MessageOrBuilder { - - /** - * <pre> - * Addresses of all Bulletin Board Servers - * </pre> - * - * <code>repeated string bulletinBoardAddress = 1;</code> - */ - java.util.List<java.lang.String> - getBulletinBoardAddressList(); - /** - * <pre> - * Addresses of all Bulletin Board Servers - * </pre> - * - * <code>repeated string bulletinBoardAddress = 1;</code> - */ - int getBulletinBoardAddressCount(); - /** - * <pre> - * Addresses of all Bulletin Board Servers - * </pre> - * - * <code>repeated string bulletinBoardAddress = 1;</code> - */ - java.lang.String getBulletinBoardAddress(int index); - /** - * <pre> - * Addresses of all Bulletin Board Servers - * </pre> - * - * <code>repeated string bulletinBoardAddress = 1;</code> - */ - com.google.protobuf.ByteString - getBulletinBoardAddressBytes(int index); - - /** - * <pre> - * Threshold fraction of successful servers posts before a post task is considered complete - * </pre> - * - * <code>float minRedundancy = 2;</code> - */ - float getMinRedundancy(); - } - /** - * <pre> - * Data required in order to access the Bulletin Board Servers - * </pre> - * - * Protobuf type {@code meerkat.BulletinBoardClientParams} - */ - public static final class BulletinBoardClientParams extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.BulletinBoardClientParams) - BulletinBoardClientParamsOrBuilder { - // Use BulletinBoardClientParams.newBuilder() to construct. - private BulletinBoardClientParams(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private BulletinBoardClientParams() { - bulletinBoardAddress_ = com.google.protobuf.LazyStringArrayList.EMPTY; - minRedundancy_ = 0F; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private BulletinBoardClientParams( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - bulletinBoardAddress_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - bulletinBoardAddress_.add(s); - break; - } - case 21: { - - minRedundancy_ = input.readFloat(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - bulletinBoardAddress_ = bulletinBoardAddress_.getUnmodifiableView(); - } - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Voting.internal_static_meerkat_BulletinBoardClientParams_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Voting.internal_static_meerkat_BulletinBoardClientParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Voting.BulletinBoardClientParams.class, meerkat.protobuf.Voting.BulletinBoardClientParams.Builder.class); - } - - private int bitField0_; - public static final int BULLETINBOARDADDRESS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList bulletinBoardAddress_; - /** - * <pre> - * Addresses of all Bulletin Board Servers - * </pre> - * - * <code>repeated string bulletinBoardAddress = 1;</code> - */ - public com.google.protobuf.ProtocolStringList - getBulletinBoardAddressList() { - return bulletinBoardAddress_; - } - /** - * <pre> - * Addresses of all Bulletin Board Servers - * </pre> - * - * <code>repeated string bulletinBoardAddress = 1;</code> - */ - public int getBulletinBoardAddressCount() { - return bulletinBoardAddress_.size(); - } - /** - * <pre> - * Addresses of all Bulletin Board Servers - * </pre> - * - * <code>repeated string bulletinBoardAddress = 1;</code> - */ - public java.lang.String getBulletinBoardAddress(int index) { - return bulletinBoardAddress_.get(index); - } - /** - * <pre> - * Addresses of all Bulletin Board Servers - * </pre> - * - * <code>repeated string bulletinBoardAddress = 1;</code> - */ - public com.google.protobuf.ByteString - getBulletinBoardAddressBytes(int index) { - return bulletinBoardAddress_.getByteString(index); - } - - public static final int MINREDUNDANCY_FIELD_NUMBER = 2; - private float minRedundancy_; - /** - * <pre> - * Threshold fraction of successful servers posts before a post task is considered complete - * </pre> - * - * <code>float minRedundancy = 2;</code> - */ - public float getMinRedundancy() { - return minRedundancy_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < bulletinBoardAddress_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bulletinBoardAddress_.getRaw(i)); - } - if (minRedundancy_ != 0F) { - output.writeFloat(2, minRedundancy_); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < bulletinBoardAddress_.size(); i++) { - dataSize += computeStringSizeNoTag(bulletinBoardAddress_.getRaw(i)); - } - size += dataSize; - size += 1 * getBulletinBoardAddressList().size(); - } - if (minRedundancy_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, minRedundancy_); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.Voting.BulletinBoardClientParams)) { - return super.equals(obj); - } - meerkat.protobuf.Voting.BulletinBoardClientParams other = (meerkat.protobuf.Voting.BulletinBoardClientParams) obj; - - boolean result = true; - result = result && getBulletinBoardAddressList() - .equals(other.getBulletinBoardAddressList()); - result = result && ( - java.lang.Float.floatToIntBits(getMinRedundancy()) - == java.lang.Float.floatToIntBits( - other.getMinRedundancy())); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getBulletinBoardAddressCount() > 0) { - hash = (37 * hash) + BULLETINBOARDADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getBulletinBoardAddressList().hashCode(); - } - hash = (37 * hash) + MINREDUNDANCY_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getMinRedundancy()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.Voting.BulletinBoardClientParams parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Voting.BulletinBoardClientParams parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Voting.BulletinBoardClientParams parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Voting.BulletinBoardClientParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Voting.BulletinBoardClientParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.BulletinBoardClientParams parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Voting.BulletinBoardClientParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.BulletinBoardClientParams parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Voting.BulletinBoardClientParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.BulletinBoardClientParams parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.Voting.BulletinBoardClientParams prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * <pre> - * Data required in order to access the Bulletin Board Servers - * </pre> - * - * Protobuf type {@code meerkat.BulletinBoardClientParams} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:meerkat.BulletinBoardClientParams) - meerkat.protobuf.Voting.BulletinBoardClientParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Voting.internal_static_meerkat_BulletinBoardClientParams_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Voting.internal_static_meerkat_BulletinBoardClientParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Voting.BulletinBoardClientParams.class, meerkat.protobuf.Voting.BulletinBoardClientParams.Builder.class); - } - - // Construct using meerkat.protobuf.Voting.BulletinBoardClientParams.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - bulletinBoardAddress_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - minRedundancy_ = 0F; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.Voting.internal_static_meerkat_BulletinBoardClientParams_descriptor; - } - - public meerkat.protobuf.Voting.BulletinBoardClientParams getDefaultInstanceForType() { - return meerkat.protobuf.Voting.BulletinBoardClientParams.getDefaultInstance(); - } - - public meerkat.protobuf.Voting.BulletinBoardClientParams build() { - meerkat.protobuf.Voting.BulletinBoardClientParams result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.Voting.BulletinBoardClientParams buildPartial() { - meerkat.protobuf.Voting.BulletinBoardClientParams result = new meerkat.protobuf.Voting.BulletinBoardClientParams(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - bulletinBoardAddress_ = bulletinBoardAddress_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.bulletinBoardAddress_ = bulletinBoardAddress_; - result.minRedundancy_ = minRedundancy_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.Voting.BulletinBoardClientParams) { - return mergeFrom((meerkat.protobuf.Voting.BulletinBoardClientParams)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.Voting.BulletinBoardClientParams other) { - if (other == meerkat.protobuf.Voting.BulletinBoardClientParams.getDefaultInstance()) return this; - if (!other.bulletinBoardAddress_.isEmpty()) { - if (bulletinBoardAddress_.isEmpty()) { - bulletinBoardAddress_ = other.bulletinBoardAddress_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureBulletinBoardAddressIsMutable(); - bulletinBoardAddress_.addAll(other.bulletinBoardAddress_); - } - onChanged(); - } - if (other.getMinRedundancy() != 0F) { - setMinRedundancy(other.getMinRedundancy()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.Voting.BulletinBoardClientParams parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.Voting.BulletinBoardClientParams) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList bulletinBoardAddress_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureBulletinBoardAddressIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - bulletinBoardAddress_ = new com.google.protobuf.LazyStringArrayList(bulletinBoardAddress_); - bitField0_ |= 0x00000001; - } - } - /** - * <pre> - * Addresses of all Bulletin Board Servers - * </pre> - * - * <code>repeated string bulletinBoardAddress = 1;</code> - */ - public com.google.protobuf.ProtocolStringList - getBulletinBoardAddressList() { - return bulletinBoardAddress_.getUnmodifiableView(); - } - /** - * <pre> - * Addresses of all Bulletin Board Servers - * </pre> - * - * <code>repeated string bulletinBoardAddress = 1;</code> - */ - public int getBulletinBoardAddressCount() { - return bulletinBoardAddress_.size(); - } - /** - * <pre> - * Addresses of all Bulletin Board Servers - * </pre> - * - * <code>repeated string bulletinBoardAddress = 1;</code> - */ - public java.lang.String getBulletinBoardAddress(int index) { - return bulletinBoardAddress_.get(index); - } - /** - * <pre> - * Addresses of all Bulletin Board Servers - * </pre> - * - * <code>repeated string bulletinBoardAddress = 1;</code> - */ - public com.google.protobuf.ByteString - getBulletinBoardAddressBytes(int index) { - return bulletinBoardAddress_.getByteString(index); - } - /** - * <pre> - * Addresses of all Bulletin Board Servers - * </pre> - * - * <code>repeated string bulletinBoardAddress = 1;</code> - */ - public Builder setBulletinBoardAddress( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureBulletinBoardAddressIsMutable(); - bulletinBoardAddress_.set(index, value); - onChanged(); - return this; - } - /** - * <pre> - * Addresses of all Bulletin Board Servers - * </pre> - * - * <code>repeated string bulletinBoardAddress = 1;</code> - */ - public Builder addBulletinBoardAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureBulletinBoardAddressIsMutable(); - bulletinBoardAddress_.add(value); - onChanged(); - return this; - } - /** - * <pre> - * Addresses of all Bulletin Board Servers - * </pre> - * - * <code>repeated string bulletinBoardAddress = 1;</code> - */ - public Builder addAllBulletinBoardAddress( - java.lang.Iterable<java.lang.String> values) { - ensureBulletinBoardAddressIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, bulletinBoardAddress_); - onChanged(); - return this; - } - /** - * <pre> - * Addresses of all Bulletin Board Servers - * </pre> - * - * <code>repeated string bulletinBoardAddress = 1;</code> - */ - public Builder clearBulletinBoardAddress() { - bulletinBoardAddress_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * <pre> - * Addresses of all Bulletin Board Servers - * </pre> - * - * <code>repeated string bulletinBoardAddress = 1;</code> - */ - public Builder addBulletinBoardAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureBulletinBoardAddressIsMutable(); - bulletinBoardAddress_.add(value); - onChanged(); - return this; - } - - private float minRedundancy_ ; - /** - * <pre> - * Threshold fraction of successful servers posts before a post task is considered complete - * </pre> - * - * <code>float minRedundancy = 2;</code> - */ - public float getMinRedundancy() { - return minRedundancy_; - } - /** - * <pre> - * Threshold fraction of successful servers posts before a post task is considered complete - * </pre> - * - * <code>float minRedundancy = 2;</code> - */ - public Builder setMinRedundancy(float value) { - - minRedundancy_ = value; - onChanged(); - return this; - } - /** - * <pre> - * Threshold fraction of successful servers posts before a post task is considered complete - * </pre> - * - * <code>float minRedundancy = 2;</code> - */ - public Builder clearMinRedundancy() { - - minRedundancy_ = 0F; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.BulletinBoardClientParams) - } - - // @@protoc_insertion_point(class_scope:meerkat.BulletinBoardClientParams) - private static final meerkat.protobuf.Voting.BulletinBoardClientParams DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.Voting.BulletinBoardClientParams(); - } - - public static meerkat.protobuf.Voting.BulletinBoardClientParams getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<BulletinBoardClientParams> - PARSER = new com.google.protobuf.AbstractParser<BulletinBoardClientParams>() { - public BulletinBoardClientParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BulletinBoardClientParams(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<BulletinBoardClientParams> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<BulletinBoardClientParams> getParserForType() { - return PARSER; - } - - public meerkat.protobuf.Voting.BulletinBoardClientParams getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ElectionParamsOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.ElectionParams) - com.google.protobuf.MessageOrBuilder { - - /** - * <pre> - * TODO: different sets of keys for different roles? - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> - */ - java.util.List<meerkat.protobuf.Crypto.SignatureVerificationKey> - getTrusteeVerificationKeysList(); - /** - * <pre> - * TODO: different sets of keys for different roles? - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> - */ - meerkat.protobuf.Crypto.SignatureVerificationKey getTrusteeVerificationKeys(int index); - /** - * <pre> - * TODO: different sets of keys for different roles? - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> - */ - int getTrusteeVerificationKeysCount(); - /** - * <pre> - * TODO: different sets of keys for different roles? - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> - */ - java.util.List<? extends meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder> - getTrusteeVerificationKeysOrBuilderList(); - /** - * <pre> - * TODO: different sets of keys for different roles? - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> - */ - meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder getTrusteeVerificationKeysOrBuilder( - int index); - - /** - * <pre> - * How many trustees must participate in a signature for it to be considered valid. - * </pre> - * - * <code>uint32 trusteeSignatureThreshold = 2;</code> - */ - int getTrusteeSignatureThreshold(); - - /** - * <pre> - * The key used to encrypt ballots. The corresponding private key - * is shared between the trustees. - * </pre> - * - * <code>.meerkat.EncryptionPublicKey ballotEncryptionKey = 3;</code> - */ - boolean hasBallotEncryptionKey(); - /** - * <pre> - * The key used to encrypt ballots. The corresponding private key - * is shared between the trustees. - * </pre> - * - * <code>.meerkat.EncryptionPublicKey ballotEncryptionKey = 3;</code> - */ - meerkat.protobuf.Crypto.EncryptionPublicKey getBallotEncryptionKey(); - /** - * <pre> - * The key used to encrypt ballots. The corresponding private key - * is shared between the trustees. - * </pre> - * - * <code>.meerkat.EncryptionPublicKey ballotEncryptionKey = 3;</code> - */ - meerkat.protobuf.Crypto.EncryptionPublicKeyOrBuilder getBallotEncryptionKeyOrBuilder(); - - /** - * <pre> - * Verification keys for valid mixers. - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> - */ - java.util.List<meerkat.protobuf.Crypto.SignatureVerificationKey> - getMixerVerificationKeysList(); - /** - * <pre> - * Verification keys for valid mixers. - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> - */ - meerkat.protobuf.Crypto.SignatureVerificationKey getMixerVerificationKeys(int index); - /** - * <pre> - * Verification keys for valid mixers. - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> - */ - int getMixerVerificationKeysCount(); - /** - * <pre> - * Verification keys for valid mixers. - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> - */ - java.util.List<? extends meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder> - getMixerVerificationKeysOrBuilderList(); - /** - * <pre> - * Verification keys for valid mixers. - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> - */ - meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder getMixerVerificationKeysOrBuilder( - int index); - - /** - * <pre> - * How many mixers must participate for the network to be considered valid - * </pre> - * - * <code>uint32 mixerThreshold = 5;</code> - */ - int getMixerThreshold(); - - /** - * <pre> - * questions to first indicate the voter's channel - * </pre> - * - * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> - */ - java.util.List<meerkat.protobuf.Voting.BallotQuestion> - getChannelChoiceQuestionsList(); - /** - * <pre> - * questions to first indicate the voter's channel - * </pre> - * - * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> - */ - meerkat.protobuf.Voting.BallotQuestion getChannelChoiceQuestions(int index); - /** - * <pre> - * questions to first indicate the voter's channel - * </pre> - * - * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> - */ - int getChannelChoiceQuestionsCount(); - /** - * <pre> - * questions to first indicate the voter's channel - * </pre> - * - * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> - */ - java.util.List<? extends meerkat.protobuf.Voting.BallotQuestionOrBuilder> - getChannelChoiceQuestionsOrBuilderList(); - /** - * <pre> - * questions to first indicate the voter's channel - * </pre> - * - * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> - */ - meerkat.protobuf.Voting.BallotQuestionOrBuilder getChannelChoiceQuestionsOrBuilder( - int index); - - /** - * <pre> - * translating the channel-choice answers to the voter's channel - * </pre> - * - * <code>.meerkat.SimpleCategoriesSelectionData selection_data = 7;</code> - */ - boolean hasSelectionData(); - /** - * <pre> - * translating the channel-choice answers to the voter's channel - * </pre> - * - * <code>.meerkat.SimpleCategoriesSelectionData selection_data = 7;</code> - */ - meerkat.protobuf.Voting.SimpleCategoriesSelectionData getSelectionData(); - /** - * <pre> - * translating the channel-choice answers to the voter's channel - * </pre> - * - * <code>.meerkat.SimpleCategoriesSelectionData selection_data = 7;</code> - */ - meerkat.protobuf.Voting.SimpleCategoriesSelectionDataOrBuilder getSelectionDataOrBuilder(); - - /** - * <pre> - * Candidate list (or other question format) - * </pre> - * - * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> - */ - java.util.List<meerkat.protobuf.Voting.BallotQuestion> - getRaceQuestionsList(); - /** - * <pre> - * Candidate list (or other question format) - * </pre> - * - * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> - */ - meerkat.protobuf.Voting.BallotQuestion getRaceQuestions(int index); - /** - * <pre> - * Candidate list (or other question format) - * </pre> - * - * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> - */ - int getRaceQuestionsCount(); - /** - * <pre> - * Candidate list (or other question format) - * </pre> - * - * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> - */ - java.util.List<? extends meerkat.protobuf.Voting.BallotQuestionOrBuilder> - getRaceQuestionsOrBuilderList(); - /** - * <pre> - * Candidate list (or other question format) - * </pre> - * - * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> - */ - meerkat.protobuf.Voting.BallotQuestionOrBuilder getRaceQuestionsOrBuilder( - int index); - - /** - * <pre> - * Data required in order to access the Bulletin Board Servers - * </pre> - * - * <code>.meerkat.BulletinBoardClientParams bulletinBoardClientParams = 9;</code> - */ - boolean hasBulletinBoardClientParams(); - /** - * <pre> - * Data required in order to access the Bulletin Board Servers - * </pre> - * - * <code>.meerkat.BulletinBoardClientParams bulletinBoardClientParams = 9;</code> - */ - meerkat.protobuf.Voting.BulletinBoardClientParams getBulletinBoardClientParams(); - /** - * <pre> - * Data required in order to access the Bulletin Board Servers - * </pre> - * - * <code>.meerkat.BulletinBoardClientParams bulletinBoardClientParams = 9;</code> - */ - meerkat.protobuf.Voting.BulletinBoardClientParamsOrBuilder getBulletinBoardClientParamsOrBuilder(); - } - /** - * Protobuf type {@code meerkat.ElectionParams} - */ - public static final class ElectionParams extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.ElectionParams) - ElectionParamsOrBuilder { - // Use ElectionParams.newBuilder() to construct. - private ElectionParams(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private ElectionParams() { - trusteeVerificationKeys_ = java.util.Collections.emptyList(); - trusteeSignatureThreshold_ = 0; - mixerVerificationKeys_ = java.util.Collections.emptyList(); - mixerThreshold_ = 0; - channelChoiceQuestions_ = java.util.Collections.emptyList(); - raceQuestions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private ElectionParams( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - trusteeVerificationKeys_ = new java.util.ArrayList<meerkat.protobuf.Crypto.SignatureVerificationKey>(); - mutable_bitField0_ |= 0x00000001; - } - trusteeVerificationKeys_.add( - input.readMessage(meerkat.protobuf.Crypto.SignatureVerificationKey.parser(), extensionRegistry)); - break; - } - case 16: { - - trusteeSignatureThreshold_ = input.readUInt32(); - break; - } - case 26: { - meerkat.protobuf.Crypto.EncryptionPublicKey.Builder subBuilder = null; - if (ballotEncryptionKey_ != null) { - subBuilder = ballotEncryptionKey_.toBuilder(); - } - ballotEncryptionKey_ = input.readMessage(meerkat.protobuf.Crypto.EncryptionPublicKey.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(ballotEncryptionKey_); - ballotEncryptionKey_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - mixerVerificationKeys_ = new java.util.ArrayList<meerkat.protobuf.Crypto.SignatureVerificationKey>(); - mutable_bitField0_ |= 0x00000008; - } - mixerVerificationKeys_.add( - input.readMessage(meerkat.protobuf.Crypto.SignatureVerificationKey.parser(), extensionRegistry)); - break; - } - case 40: { - - mixerThreshold_ = input.readUInt32(); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { - channelChoiceQuestions_ = new java.util.ArrayList<meerkat.protobuf.Voting.BallotQuestion>(); - mutable_bitField0_ |= 0x00000020; - } - channelChoiceQuestions_.add( - input.readMessage(meerkat.protobuf.Voting.BallotQuestion.parser(), extensionRegistry)); - break; - } - case 58: { - meerkat.protobuf.Voting.SimpleCategoriesSelectionData.Builder subBuilder = null; - if (selectionData_ != null) { - subBuilder = selectionData_.toBuilder(); - } - selectionData_ = input.readMessage(meerkat.protobuf.Voting.SimpleCategoriesSelectionData.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(selectionData_); - selectionData_ = subBuilder.buildPartial(); - } - - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { - raceQuestions_ = new java.util.ArrayList<meerkat.protobuf.Voting.BallotQuestion>(); - mutable_bitField0_ |= 0x00000080; - } - raceQuestions_.add( - input.readMessage(meerkat.protobuf.Voting.BallotQuestion.parser(), extensionRegistry)); - break; - } - case 74: { - meerkat.protobuf.Voting.BulletinBoardClientParams.Builder subBuilder = null; - if (bulletinBoardClientParams_ != null) { - subBuilder = bulletinBoardClientParams_.toBuilder(); - } - bulletinBoardClientParams_ = input.readMessage(meerkat.protobuf.Voting.BulletinBoardClientParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(bulletinBoardClientParams_); - bulletinBoardClientParams_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - trusteeVerificationKeys_ = java.util.Collections.unmodifiableList(trusteeVerificationKeys_); - } - if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - mixerVerificationKeys_ = java.util.Collections.unmodifiableList(mixerVerificationKeys_); - } - if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { - channelChoiceQuestions_ = java.util.Collections.unmodifiableList(channelChoiceQuestions_); - } - if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { - raceQuestions_ = java.util.Collections.unmodifiableList(raceQuestions_); - } - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Voting.internal_static_meerkat_ElectionParams_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Voting.internal_static_meerkat_ElectionParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Voting.ElectionParams.class, meerkat.protobuf.Voting.ElectionParams.Builder.class); - } - - private int bitField0_; - public static final int TRUSTEEVERIFICATIONKEYS_FIELD_NUMBER = 1; - private java.util.List<meerkat.protobuf.Crypto.SignatureVerificationKey> trusteeVerificationKeys_; - /** - * <pre> - * TODO: different sets of keys for different roles? - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> - */ - public java.util.List<meerkat.protobuf.Crypto.SignatureVerificationKey> getTrusteeVerificationKeysList() { - return trusteeVerificationKeys_; - } - /** - * <pre> - * TODO: different sets of keys for different roles? - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> - */ - public java.util.List<? extends meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder> - getTrusteeVerificationKeysOrBuilderList() { - return trusteeVerificationKeys_; - } - /** - * <pre> - * TODO: different sets of keys for different roles? - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> - */ - public int getTrusteeVerificationKeysCount() { - return trusteeVerificationKeys_.size(); - } - /** - * <pre> - * TODO: different sets of keys for different roles? - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> - */ - public meerkat.protobuf.Crypto.SignatureVerificationKey getTrusteeVerificationKeys(int index) { - return trusteeVerificationKeys_.get(index); - } - /** - * <pre> - * TODO: different sets of keys for different roles? - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> - */ - public meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder getTrusteeVerificationKeysOrBuilder( - int index) { - return trusteeVerificationKeys_.get(index); - } - - public static final int TRUSTEESIGNATURETHRESHOLD_FIELD_NUMBER = 2; - private int trusteeSignatureThreshold_; - /** - * <pre> - * How many trustees must participate in a signature for it to be considered valid. - * </pre> - * - * <code>uint32 trusteeSignatureThreshold = 2;</code> - */ - public int getTrusteeSignatureThreshold() { - return trusteeSignatureThreshold_; - } - - public static final int BALLOTENCRYPTIONKEY_FIELD_NUMBER = 3; - private meerkat.protobuf.Crypto.EncryptionPublicKey ballotEncryptionKey_; - /** - * <pre> - * The key used to encrypt ballots. The corresponding private key - * is shared between the trustees. - * </pre> - * - * <code>.meerkat.EncryptionPublicKey ballotEncryptionKey = 3;</code> - */ - public boolean hasBallotEncryptionKey() { - return ballotEncryptionKey_ != null; - } - /** - * <pre> - * The key used to encrypt ballots. The corresponding private key - * is shared between the trustees. - * </pre> - * - * <code>.meerkat.EncryptionPublicKey ballotEncryptionKey = 3;</code> - */ - public meerkat.protobuf.Crypto.EncryptionPublicKey getBallotEncryptionKey() { - return ballotEncryptionKey_ == null ? meerkat.protobuf.Crypto.EncryptionPublicKey.getDefaultInstance() : ballotEncryptionKey_; - } - /** - * <pre> - * The key used to encrypt ballots. The corresponding private key - * is shared between the trustees. - * </pre> - * - * <code>.meerkat.EncryptionPublicKey ballotEncryptionKey = 3;</code> - */ - public meerkat.protobuf.Crypto.EncryptionPublicKeyOrBuilder getBallotEncryptionKeyOrBuilder() { - return getBallotEncryptionKey(); - } - - public static final int MIXERVERIFICATIONKEYS_FIELD_NUMBER = 4; - private java.util.List<meerkat.protobuf.Crypto.SignatureVerificationKey> mixerVerificationKeys_; - /** - * <pre> - * Verification keys for valid mixers. - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> - */ - public java.util.List<meerkat.protobuf.Crypto.SignatureVerificationKey> getMixerVerificationKeysList() { - return mixerVerificationKeys_; - } - /** - * <pre> - * Verification keys for valid mixers. - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> - */ - public java.util.List<? extends meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder> - getMixerVerificationKeysOrBuilderList() { - return mixerVerificationKeys_; - } - /** - * <pre> - * Verification keys for valid mixers. - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> - */ - public int getMixerVerificationKeysCount() { - return mixerVerificationKeys_.size(); - } - /** - * <pre> - * Verification keys for valid mixers. - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> - */ - public meerkat.protobuf.Crypto.SignatureVerificationKey getMixerVerificationKeys(int index) { - return mixerVerificationKeys_.get(index); - } - /** - * <pre> - * Verification keys for valid mixers. - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> - */ - public meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder getMixerVerificationKeysOrBuilder( - int index) { - return mixerVerificationKeys_.get(index); - } - - public static final int MIXERTHRESHOLD_FIELD_NUMBER = 5; - private int mixerThreshold_; - /** - * <pre> - * How many mixers must participate for the network to be considered valid - * </pre> - * - * <code>uint32 mixerThreshold = 5;</code> - */ - public int getMixerThreshold() { - return mixerThreshold_; - } - - public static final int CHANNEL_CHOICE_QUESTIONS_FIELD_NUMBER = 6; - private java.util.List<meerkat.protobuf.Voting.BallotQuestion> channelChoiceQuestions_; - /** - * <pre> - * questions to first indicate the voter's channel - * </pre> - * - * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> - */ - public java.util.List<meerkat.protobuf.Voting.BallotQuestion> getChannelChoiceQuestionsList() { - return channelChoiceQuestions_; - } - /** - * <pre> - * questions to first indicate the voter's channel - * </pre> - * - * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> - */ - public java.util.List<? extends meerkat.protobuf.Voting.BallotQuestionOrBuilder> - getChannelChoiceQuestionsOrBuilderList() { - return channelChoiceQuestions_; - } - /** - * <pre> - * questions to first indicate the voter's channel - * </pre> - * - * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> - */ - public int getChannelChoiceQuestionsCount() { - return channelChoiceQuestions_.size(); - } - /** - * <pre> - * questions to first indicate the voter's channel - * </pre> - * - * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> - */ - public meerkat.protobuf.Voting.BallotQuestion getChannelChoiceQuestions(int index) { - return channelChoiceQuestions_.get(index); - } - /** - * <pre> - * questions to first indicate the voter's channel - * </pre> - * - * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> - */ - public meerkat.protobuf.Voting.BallotQuestionOrBuilder getChannelChoiceQuestionsOrBuilder( - int index) { - return channelChoiceQuestions_.get(index); - } - - public static final int SELECTION_DATA_FIELD_NUMBER = 7; - private meerkat.protobuf.Voting.SimpleCategoriesSelectionData selectionData_; - /** - * <pre> - * translating the channel-choice answers to the voter's channel - * </pre> - * - * <code>.meerkat.SimpleCategoriesSelectionData selection_data = 7;</code> - */ - public boolean hasSelectionData() { - return selectionData_ != null; - } - /** - * <pre> - * translating the channel-choice answers to the voter's channel - * </pre> - * - * <code>.meerkat.SimpleCategoriesSelectionData selection_data = 7;</code> - */ - public meerkat.protobuf.Voting.SimpleCategoriesSelectionData getSelectionData() { - return selectionData_ == null ? meerkat.protobuf.Voting.SimpleCategoriesSelectionData.getDefaultInstance() : selectionData_; - } - /** - * <pre> - * translating the channel-choice answers to the voter's channel - * </pre> - * - * <code>.meerkat.SimpleCategoriesSelectionData selection_data = 7;</code> - */ - public meerkat.protobuf.Voting.SimpleCategoriesSelectionDataOrBuilder getSelectionDataOrBuilder() { - return getSelectionData(); - } - - public static final int RACE_QUESTIONS_FIELD_NUMBER = 8; - private java.util.List<meerkat.protobuf.Voting.BallotQuestion> raceQuestions_; - /** - * <pre> - * Candidate list (or other question format) - * </pre> - * - * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> - */ - public java.util.List<meerkat.protobuf.Voting.BallotQuestion> getRaceQuestionsList() { - return raceQuestions_; - } - /** - * <pre> - * Candidate list (or other question format) - * </pre> - * - * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> - */ - public java.util.List<? extends meerkat.protobuf.Voting.BallotQuestionOrBuilder> - getRaceQuestionsOrBuilderList() { - return raceQuestions_; - } - /** - * <pre> - * Candidate list (or other question format) - * </pre> - * - * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> - */ - public int getRaceQuestionsCount() { - return raceQuestions_.size(); - } - /** - * <pre> - * Candidate list (or other question format) - * </pre> - * - * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> - */ - public meerkat.protobuf.Voting.BallotQuestion getRaceQuestions(int index) { - return raceQuestions_.get(index); - } - /** - * <pre> - * Candidate list (or other question format) - * </pre> - * - * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> - */ - public meerkat.protobuf.Voting.BallotQuestionOrBuilder getRaceQuestionsOrBuilder( - int index) { - return raceQuestions_.get(index); - } - - public static final int BULLETINBOARDCLIENTPARAMS_FIELD_NUMBER = 9; - private meerkat.protobuf.Voting.BulletinBoardClientParams bulletinBoardClientParams_; - /** - * <pre> - * Data required in order to access the Bulletin Board Servers - * </pre> - * - * <code>.meerkat.BulletinBoardClientParams bulletinBoardClientParams = 9;</code> - */ - public boolean hasBulletinBoardClientParams() { - return bulletinBoardClientParams_ != null; - } - /** - * <pre> - * Data required in order to access the Bulletin Board Servers - * </pre> - * - * <code>.meerkat.BulletinBoardClientParams bulletinBoardClientParams = 9;</code> - */ - public meerkat.protobuf.Voting.BulletinBoardClientParams getBulletinBoardClientParams() { - return bulletinBoardClientParams_ == null ? meerkat.protobuf.Voting.BulletinBoardClientParams.getDefaultInstance() : bulletinBoardClientParams_; - } - /** - * <pre> - * Data required in order to access the Bulletin Board Servers - * </pre> - * - * <code>.meerkat.BulletinBoardClientParams bulletinBoardClientParams = 9;</code> - */ - public meerkat.protobuf.Voting.BulletinBoardClientParamsOrBuilder getBulletinBoardClientParamsOrBuilder() { - return getBulletinBoardClientParams(); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < trusteeVerificationKeys_.size(); i++) { - output.writeMessage(1, trusteeVerificationKeys_.get(i)); - } - if (trusteeSignatureThreshold_ != 0) { - output.writeUInt32(2, trusteeSignatureThreshold_); - } - if (ballotEncryptionKey_ != null) { - output.writeMessage(3, getBallotEncryptionKey()); - } - for (int i = 0; i < mixerVerificationKeys_.size(); i++) { - output.writeMessage(4, mixerVerificationKeys_.get(i)); - } - if (mixerThreshold_ != 0) { - output.writeUInt32(5, mixerThreshold_); - } - for (int i = 0; i < channelChoiceQuestions_.size(); i++) { - output.writeMessage(6, channelChoiceQuestions_.get(i)); - } - if (selectionData_ != null) { - output.writeMessage(7, getSelectionData()); - } - for (int i = 0; i < raceQuestions_.size(); i++) { - output.writeMessage(8, raceQuestions_.get(i)); - } - if (bulletinBoardClientParams_ != null) { - output.writeMessage(9, getBulletinBoardClientParams()); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < trusteeVerificationKeys_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, trusteeVerificationKeys_.get(i)); - } - if (trusteeSignatureThreshold_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, trusteeSignatureThreshold_); - } - if (ballotEncryptionKey_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getBallotEncryptionKey()); - } - for (int i = 0; i < mixerVerificationKeys_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, mixerVerificationKeys_.get(i)); - } - if (mixerThreshold_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, mixerThreshold_); - } - for (int i = 0; i < channelChoiceQuestions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, channelChoiceQuestions_.get(i)); - } - if (selectionData_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getSelectionData()); - } - for (int i = 0; i < raceQuestions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, raceQuestions_.get(i)); - } - if (bulletinBoardClientParams_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getBulletinBoardClientParams()); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.Voting.ElectionParams)) { - return super.equals(obj); - } - meerkat.protobuf.Voting.ElectionParams other = (meerkat.protobuf.Voting.ElectionParams) obj; - - boolean result = true; - result = result && getTrusteeVerificationKeysList() - .equals(other.getTrusteeVerificationKeysList()); - result = result && (getTrusteeSignatureThreshold() - == other.getTrusteeSignatureThreshold()); - result = result && (hasBallotEncryptionKey() == other.hasBallotEncryptionKey()); - if (hasBallotEncryptionKey()) { - result = result && getBallotEncryptionKey() - .equals(other.getBallotEncryptionKey()); - } - result = result && getMixerVerificationKeysList() - .equals(other.getMixerVerificationKeysList()); - result = result && (getMixerThreshold() - == other.getMixerThreshold()); - result = result && getChannelChoiceQuestionsList() - .equals(other.getChannelChoiceQuestionsList()); - result = result && (hasSelectionData() == other.hasSelectionData()); - if (hasSelectionData()) { - result = result && getSelectionData() - .equals(other.getSelectionData()); - } - result = result && getRaceQuestionsList() - .equals(other.getRaceQuestionsList()); - result = result && (hasBulletinBoardClientParams() == other.hasBulletinBoardClientParams()); - if (hasBulletinBoardClientParams()) { - result = result && getBulletinBoardClientParams() - .equals(other.getBulletinBoardClientParams()); - } - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTrusteeVerificationKeysCount() > 0) { - hash = (37 * hash) + TRUSTEEVERIFICATIONKEYS_FIELD_NUMBER; - hash = (53 * hash) + getTrusteeVerificationKeysList().hashCode(); - } - hash = (37 * hash) + TRUSTEESIGNATURETHRESHOLD_FIELD_NUMBER; - hash = (53 * hash) + getTrusteeSignatureThreshold(); - if (hasBallotEncryptionKey()) { - hash = (37 * hash) + BALLOTENCRYPTIONKEY_FIELD_NUMBER; - hash = (53 * hash) + getBallotEncryptionKey().hashCode(); - } - if (getMixerVerificationKeysCount() > 0) { - hash = (37 * hash) + MIXERVERIFICATIONKEYS_FIELD_NUMBER; - hash = (53 * hash) + getMixerVerificationKeysList().hashCode(); - } - hash = (37 * hash) + MIXERTHRESHOLD_FIELD_NUMBER; - hash = (53 * hash) + getMixerThreshold(); - if (getChannelChoiceQuestionsCount() > 0) { - hash = (37 * hash) + CHANNEL_CHOICE_QUESTIONS_FIELD_NUMBER; - hash = (53 * hash) + getChannelChoiceQuestionsList().hashCode(); - } - if (hasSelectionData()) { - hash = (37 * hash) + SELECTION_DATA_FIELD_NUMBER; - hash = (53 * hash) + getSelectionData().hashCode(); - } - if (getRaceQuestionsCount() > 0) { - hash = (37 * hash) + RACE_QUESTIONS_FIELD_NUMBER; - hash = (53 * hash) + getRaceQuestionsList().hashCode(); - } - if (hasBulletinBoardClientParams()) { - hash = (37 * hash) + BULLETINBOARDCLIENTPARAMS_FIELD_NUMBER; - hash = (53 * hash) + getBulletinBoardClientParams().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.Voting.ElectionParams parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Voting.ElectionParams parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Voting.ElectionParams parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Voting.ElectionParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Voting.ElectionParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.ElectionParams parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Voting.ElectionParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.ElectionParams parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Voting.ElectionParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.ElectionParams parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.Voting.ElectionParams prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code meerkat.ElectionParams} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:meerkat.ElectionParams) - meerkat.protobuf.Voting.ElectionParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Voting.internal_static_meerkat_ElectionParams_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Voting.internal_static_meerkat_ElectionParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Voting.ElectionParams.class, meerkat.protobuf.Voting.ElectionParams.Builder.class); - } - - // Construct using meerkat.protobuf.Voting.ElectionParams.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTrusteeVerificationKeysFieldBuilder(); - getMixerVerificationKeysFieldBuilder(); - getChannelChoiceQuestionsFieldBuilder(); - getRaceQuestionsFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (trusteeVerificationKeysBuilder_ == null) { - trusteeVerificationKeys_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - trusteeVerificationKeysBuilder_.clear(); - } - trusteeSignatureThreshold_ = 0; - - if (ballotEncryptionKeyBuilder_ == null) { - ballotEncryptionKey_ = null; - } else { - ballotEncryptionKey_ = null; - ballotEncryptionKeyBuilder_ = null; - } - if (mixerVerificationKeysBuilder_ == null) { - mixerVerificationKeys_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - mixerVerificationKeysBuilder_.clear(); - } - mixerThreshold_ = 0; - - if (channelChoiceQuestionsBuilder_ == null) { - channelChoiceQuestions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - } else { - channelChoiceQuestionsBuilder_.clear(); - } - if (selectionDataBuilder_ == null) { - selectionData_ = null; - } else { - selectionData_ = null; - selectionDataBuilder_ = null; - } - if (raceQuestionsBuilder_ == null) { - raceQuestions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - } else { - raceQuestionsBuilder_.clear(); - } - if (bulletinBoardClientParamsBuilder_ == null) { - bulletinBoardClientParams_ = null; - } else { - bulletinBoardClientParams_ = null; - bulletinBoardClientParamsBuilder_ = null; - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.Voting.internal_static_meerkat_ElectionParams_descriptor; - } - - public meerkat.protobuf.Voting.ElectionParams getDefaultInstanceForType() { - return meerkat.protobuf.Voting.ElectionParams.getDefaultInstance(); - } - - public meerkat.protobuf.Voting.ElectionParams build() { - meerkat.protobuf.Voting.ElectionParams result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.Voting.ElectionParams buildPartial() { - meerkat.protobuf.Voting.ElectionParams result = new meerkat.protobuf.Voting.ElectionParams(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (trusteeVerificationKeysBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - trusteeVerificationKeys_ = java.util.Collections.unmodifiableList(trusteeVerificationKeys_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.trusteeVerificationKeys_ = trusteeVerificationKeys_; - } else { - result.trusteeVerificationKeys_ = trusteeVerificationKeysBuilder_.build(); - } - result.trusteeSignatureThreshold_ = trusteeSignatureThreshold_; - if (ballotEncryptionKeyBuilder_ == null) { - result.ballotEncryptionKey_ = ballotEncryptionKey_; - } else { - result.ballotEncryptionKey_ = ballotEncryptionKeyBuilder_.build(); - } - if (mixerVerificationKeysBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008)) { - mixerVerificationKeys_ = java.util.Collections.unmodifiableList(mixerVerificationKeys_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.mixerVerificationKeys_ = mixerVerificationKeys_; - } else { - result.mixerVerificationKeys_ = mixerVerificationKeysBuilder_.build(); - } - result.mixerThreshold_ = mixerThreshold_; - if (channelChoiceQuestionsBuilder_ == null) { - if (((bitField0_ & 0x00000020) == 0x00000020)) { - channelChoiceQuestions_ = java.util.Collections.unmodifiableList(channelChoiceQuestions_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.channelChoiceQuestions_ = channelChoiceQuestions_; - } else { - result.channelChoiceQuestions_ = channelChoiceQuestionsBuilder_.build(); - } - if (selectionDataBuilder_ == null) { - result.selectionData_ = selectionData_; - } else { - result.selectionData_ = selectionDataBuilder_.build(); - } - if (raceQuestionsBuilder_ == null) { - if (((bitField0_ & 0x00000080) == 0x00000080)) { - raceQuestions_ = java.util.Collections.unmodifiableList(raceQuestions_); - bitField0_ = (bitField0_ & ~0x00000080); - } - result.raceQuestions_ = raceQuestions_; - } else { - result.raceQuestions_ = raceQuestionsBuilder_.build(); - } - if (bulletinBoardClientParamsBuilder_ == null) { - result.bulletinBoardClientParams_ = bulletinBoardClientParams_; - } else { - result.bulletinBoardClientParams_ = bulletinBoardClientParamsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.Voting.ElectionParams) { - return mergeFrom((meerkat.protobuf.Voting.ElectionParams)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.Voting.ElectionParams other) { - if (other == meerkat.protobuf.Voting.ElectionParams.getDefaultInstance()) return this; - if (trusteeVerificationKeysBuilder_ == null) { - if (!other.trusteeVerificationKeys_.isEmpty()) { - if (trusteeVerificationKeys_.isEmpty()) { - trusteeVerificationKeys_ = other.trusteeVerificationKeys_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTrusteeVerificationKeysIsMutable(); - trusteeVerificationKeys_.addAll(other.trusteeVerificationKeys_); - } - onChanged(); - } - } else { - if (!other.trusteeVerificationKeys_.isEmpty()) { - if (trusteeVerificationKeysBuilder_.isEmpty()) { - trusteeVerificationKeysBuilder_.dispose(); - trusteeVerificationKeysBuilder_ = null; - trusteeVerificationKeys_ = other.trusteeVerificationKeys_; - bitField0_ = (bitField0_ & ~0x00000001); - trusteeVerificationKeysBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTrusteeVerificationKeysFieldBuilder() : null; - } else { - trusteeVerificationKeysBuilder_.addAllMessages(other.trusteeVerificationKeys_); - } - } - } - if (other.getTrusteeSignatureThreshold() != 0) { - setTrusteeSignatureThreshold(other.getTrusteeSignatureThreshold()); - } - if (other.hasBallotEncryptionKey()) { - mergeBallotEncryptionKey(other.getBallotEncryptionKey()); - } - if (mixerVerificationKeysBuilder_ == null) { - if (!other.mixerVerificationKeys_.isEmpty()) { - if (mixerVerificationKeys_.isEmpty()) { - mixerVerificationKeys_ = other.mixerVerificationKeys_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureMixerVerificationKeysIsMutable(); - mixerVerificationKeys_.addAll(other.mixerVerificationKeys_); - } - onChanged(); - } - } else { - if (!other.mixerVerificationKeys_.isEmpty()) { - if (mixerVerificationKeysBuilder_.isEmpty()) { - mixerVerificationKeysBuilder_.dispose(); - mixerVerificationKeysBuilder_ = null; - mixerVerificationKeys_ = other.mixerVerificationKeys_; - bitField0_ = (bitField0_ & ~0x00000008); - mixerVerificationKeysBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMixerVerificationKeysFieldBuilder() : null; - } else { - mixerVerificationKeysBuilder_.addAllMessages(other.mixerVerificationKeys_); - } - } - } - if (other.getMixerThreshold() != 0) { - setMixerThreshold(other.getMixerThreshold()); - } - if (channelChoiceQuestionsBuilder_ == null) { - if (!other.channelChoiceQuestions_.isEmpty()) { - if (channelChoiceQuestions_.isEmpty()) { - channelChoiceQuestions_ = other.channelChoiceQuestions_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureChannelChoiceQuestionsIsMutable(); - channelChoiceQuestions_.addAll(other.channelChoiceQuestions_); - } - onChanged(); - } - } else { - if (!other.channelChoiceQuestions_.isEmpty()) { - if (channelChoiceQuestionsBuilder_.isEmpty()) { - channelChoiceQuestionsBuilder_.dispose(); - channelChoiceQuestionsBuilder_ = null; - channelChoiceQuestions_ = other.channelChoiceQuestions_; - bitField0_ = (bitField0_ & ~0x00000020); - channelChoiceQuestionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getChannelChoiceQuestionsFieldBuilder() : null; - } else { - channelChoiceQuestionsBuilder_.addAllMessages(other.channelChoiceQuestions_); - } - } - } - if (other.hasSelectionData()) { - mergeSelectionData(other.getSelectionData()); - } - if (raceQuestionsBuilder_ == null) { - if (!other.raceQuestions_.isEmpty()) { - if (raceQuestions_.isEmpty()) { - raceQuestions_ = other.raceQuestions_; - bitField0_ = (bitField0_ & ~0x00000080); - } else { - ensureRaceQuestionsIsMutable(); - raceQuestions_.addAll(other.raceQuestions_); - } - onChanged(); - } - } else { - if (!other.raceQuestions_.isEmpty()) { - if (raceQuestionsBuilder_.isEmpty()) { - raceQuestionsBuilder_.dispose(); - raceQuestionsBuilder_ = null; - raceQuestions_ = other.raceQuestions_; - bitField0_ = (bitField0_ & ~0x00000080); - raceQuestionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRaceQuestionsFieldBuilder() : null; - } else { - raceQuestionsBuilder_.addAllMessages(other.raceQuestions_); - } - } - } - if (other.hasBulletinBoardClientParams()) { - mergeBulletinBoardClientParams(other.getBulletinBoardClientParams()); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.Voting.ElectionParams parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.Voting.ElectionParams) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List<meerkat.protobuf.Crypto.SignatureVerificationKey> trusteeVerificationKeys_ = - java.util.Collections.emptyList(); - private void ensureTrusteeVerificationKeysIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - trusteeVerificationKeys_ = new java.util.ArrayList<meerkat.protobuf.Crypto.SignatureVerificationKey>(trusteeVerificationKeys_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.Crypto.SignatureVerificationKey, meerkat.protobuf.Crypto.SignatureVerificationKey.Builder, meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder> trusteeVerificationKeysBuilder_; - - /** - * <pre> - * TODO: different sets of keys for different roles? - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> - */ - public java.util.List<meerkat.protobuf.Crypto.SignatureVerificationKey> getTrusteeVerificationKeysList() { - if (trusteeVerificationKeysBuilder_ == null) { - return java.util.Collections.unmodifiableList(trusteeVerificationKeys_); - } else { - return trusteeVerificationKeysBuilder_.getMessageList(); - } - } - /** - * <pre> - * TODO: different sets of keys for different roles? - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> - */ - public int getTrusteeVerificationKeysCount() { - if (trusteeVerificationKeysBuilder_ == null) { - return trusteeVerificationKeys_.size(); - } else { - return trusteeVerificationKeysBuilder_.getCount(); - } - } - /** - * <pre> - * TODO: different sets of keys for different roles? - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> - */ - public meerkat.protobuf.Crypto.SignatureVerificationKey getTrusteeVerificationKeys(int index) { - if (trusteeVerificationKeysBuilder_ == null) { - return trusteeVerificationKeys_.get(index); - } else { - return trusteeVerificationKeysBuilder_.getMessage(index); - } - } - /** - * <pre> - * TODO: different sets of keys for different roles? - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> - */ - public Builder setTrusteeVerificationKeys( - int index, meerkat.protobuf.Crypto.SignatureVerificationKey value) { - if (trusteeVerificationKeysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTrusteeVerificationKeysIsMutable(); - trusteeVerificationKeys_.set(index, value); - onChanged(); - } else { - trusteeVerificationKeysBuilder_.setMessage(index, value); - } - return this; - } - /** - * <pre> - * TODO: different sets of keys for different roles? - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> - */ - public Builder setTrusteeVerificationKeys( - int index, meerkat.protobuf.Crypto.SignatureVerificationKey.Builder builderForValue) { - if (trusteeVerificationKeysBuilder_ == null) { - ensureTrusteeVerificationKeysIsMutable(); - trusteeVerificationKeys_.set(index, builderForValue.build()); - onChanged(); - } else { - trusteeVerificationKeysBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <pre> - * TODO: different sets of keys for different roles? - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> - */ - public Builder addTrusteeVerificationKeys(meerkat.protobuf.Crypto.SignatureVerificationKey value) { - if (trusteeVerificationKeysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTrusteeVerificationKeysIsMutable(); - trusteeVerificationKeys_.add(value); - onChanged(); - } else { - trusteeVerificationKeysBuilder_.addMessage(value); - } - return this; - } - /** - * <pre> - * TODO: different sets of keys for different roles? - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> - */ - public Builder addTrusteeVerificationKeys( - int index, meerkat.protobuf.Crypto.SignatureVerificationKey value) { - if (trusteeVerificationKeysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTrusteeVerificationKeysIsMutable(); - trusteeVerificationKeys_.add(index, value); - onChanged(); - } else { - trusteeVerificationKeysBuilder_.addMessage(index, value); - } - return this; - } - /** - * <pre> - * TODO: different sets of keys for different roles? - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> - */ - public Builder addTrusteeVerificationKeys( - meerkat.protobuf.Crypto.SignatureVerificationKey.Builder builderForValue) { - if (trusteeVerificationKeysBuilder_ == null) { - ensureTrusteeVerificationKeysIsMutable(); - trusteeVerificationKeys_.add(builderForValue.build()); - onChanged(); - } else { - trusteeVerificationKeysBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <pre> - * TODO: different sets of keys for different roles? - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> - */ - public Builder addTrusteeVerificationKeys( - int index, meerkat.protobuf.Crypto.SignatureVerificationKey.Builder builderForValue) { - if (trusteeVerificationKeysBuilder_ == null) { - ensureTrusteeVerificationKeysIsMutable(); - trusteeVerificationKeys_.add(index, builderForValue.build()); - onChanged(); - } else { - trusteeVerificationKeysBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <pre> - * TODO: different sets of keys for different roles? - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> - */ - public Builder addAllTrusteeVerificationKeys( - java.lang.Iterable<? extends meerkat.protobuf.Crypto.SignatureVerificationKey> values) { - if (trusteeVerificationKeysBuilder_ == null) { - ensureTrusteeVerificationKeysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, trusteeVerificationKeys_); - onChanged(); - } else { - trusteeVerificationKeysBuilder_.addAllMessages(values); - } - return this; - } - /** - * <pre> - * TODO: different sets of keys for different roles? - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> - */ - public Builder clearTrusteeVerificationKeys() { - if (trusteeVerificationKeysBuilder_ == null) { - trusteeVerificationKeys_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - trusteeVerificationKeysBuilder_.clear(); - } - return this; - } - /** - * <pre> - * TODO: different sets of keys for different roles? - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> - */ - public Builder removeTrusteeVerificationKeys(int index) { - if (trusteeVerificationKeysBuilder_ == null) { - ensureTrusteeVerificationKeysIsMutable(); - trusteeVerificationKeys_.remove(index); - onChanged(); - } else { - trusteeVerificationKeysBuilder_.remove(index); - } - return this; - } - /** - * <pre> - * TODO: different sets of keys for different roles? - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> - */ - public meerkat.protobuf.Crypto.SignatureVerificationKey.Builder getTrusteeVerificationKeysBuilder( - int index) { - return getTrusteeVerificationKeysFieldBuilder().getBuilder(index); - } - /** - * <pre> - * TODO: different sets of keys for different roles? - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> - */ - public meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder getTrusteeVerificationKeysOrBuilder( - int index) { - if (trusteeVerificationKeysBuilder_ == null) { - return trusteeVerificationKeys_.get(index); } else { - return trusteeVerificationKeysBuilder_.getMessageOrBuilder(index); - } - } - /** - * <pre> - * TODO: different sets of keys for different roles? - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> - */ - public java.util.List<? extends meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder> - getTrusteeVerificationKeysOrBuilderList() { - if (trusteeVerificationKeysBuilder_ != null) { - return trusteeVerificationKeysBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(trusteeVerificationKeys_); - } - } - /** - * <pre> - * TODO: different sets of keys for different roles? - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> - */ - public meerkat.protobuf.Crypto.SignatureVerificationKey.Builder addTrusteeVerificationKeysBuilder() { - return getTrusteeVerificationKeysFieldBuilder().addBuilder( - meerkat.protobuf.Crypto.SignatureVerificationKey.getDefaultInstance()); - } - /** - * <pre> - * TODO: different sets of keys for different roles? - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> - */ - public meerkat.protobuf.Crypto.SignatureVerificationKey.Builder addTrusteeVerificationKeysBuilder( - int index) { - return getTrusteeVerificationKeysFieldBuilder().addBuilder( - index, meerkat.protobuf.Crypto.SignatureVerificationKey.getDefaultInstance()); - } - /** - * <pre> - * TODO: different sets of keys for different roles? - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> - */ - public java.util.List<meerkat.protobuf.Crypto.SignatureVerificationKey.Builder> - getTrusteeVerificationKeysBuilderList() { - return getTrusteeVerificationKeysFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.Crypto.SignatureVerificationKey, meerkat.protobuf.Crypto.SignatureVerificationKey.Builder, meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder> - getTrusteeVerificationKeysFieldBuilder() { - if (trusteeVerificationKeysBuilder_ == null) { - trusteeVerificationKeysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.Crypto.SignatureVerificationKey, meerkat.protobuf.Crypto.SignatureVerificationKey.Builder, meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder>( - trusteeVerificationKeys_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - trusteeVerificationKeys_ = null; - } - return trusteeVerificationKeysBuilder_; - } - - private int trusteeSignatureThreshold_ ; - /** - * <pre> - * How many trustees must participate in a signature for it to be considered valid. - * </pre> - * - * <code>uint32 trusteeSignatureThreshold = 2;</code> - */ - public int getTrusteeSignatureThreshold() { - return trusteeSignatureThreshold_; - } - /** - * <pre> - * How many trustees must participate in a signature for it to be considered valid. - * </pre> - * - * <code>uint32 trusteeSignatureThreshold = 2;</code> - */ - public Builder setTrusteeSignatureThreshold(int value) { - - trusteeSignatureThreshold_ = value; - onChanged(); - return this; - } - /** - * <pre> - * How many trustees must participate in a signature for it to be considered valid. - * </pre> - * - * <code>uint32 trusteeSignatureThreshold = 2;</code> - */ - public Builder clearTrusteeSignatureThreshold() { - - trusteeSignatureThreshold_ = 0; - onChanged(); - return this; - } - - private meerkat.protobuf.Crypto.EncryptionPublicKey ballotEncryptionKey_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Crypto.EncryptionPublicKey, meerkat.protobuf.Crypto.EncryptionPublicKey.Builder, meerkat.protobuf.Crypto.EncryptionPublicKeyOrBuilder> ballotEncryptionKeyBuilder_; - /** - * <pre> - * The key used to encrypt ballots. The corresponding private key - * is shared between the trustees. - * </pre> - * - * <code>.meerkat.EncryptionPublicKey ballotEncryptionKey = 3;</code> - */ - public boolean hasBallotEncryptionKey() { - return ballotEncryptionKeyBuilder_ != null || ballotEncryptionKey_ != null; - } - /** - * <pre> - * The key used to encrypt ballots. The corresponding private key - * is shared between the trustees. - * </pre> - * - * <code>.meerkat.EncryptionPublicKey ballotEncryptionKey = 3;</code> - */ - public meerkat.protobuf.Crypto.EncryptionPublicKey getBallotEncryptionKey() { - if (ballotEncryptionKeyBuilder_ == null) { - return ballotEncryptionKey_ == null ? meerkat.protobuf.Crypto.EncryptionPublicKey.getDefaultInstance() : ballotEncryptionKey_; - } else { - return ballotEncryptionKeyBuilder_.getMessage(); - } - } - /** - * <pre> - * The key used to encrypt ballots. The corresponding private key - * is shared between the trustees. - * </pre> - * - * <code>.meerkat.EncryptionPublicKey ballotEncryptionKey = 3;</code> - */ - public Builder setBallotEncryptionKey(meerkat.protobuf.Crypto.EncryptionPublicKey value) { - if (ballotEncryptionKeyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ballotEncryptionKey_ = value; - onChanged(); - } else { - ballotEncryptionKeyBuilder_.setMessage(value); - } - - return this; - } - /** - * <pre> - * The key used to encrypt ballots. The corresponding private key - * is shared between the trustees. - * </pre> - * - * <code>.meerkat.EncryptionPublicKey ballotEncryptionKey = 3;</code> - */ - public Builder setBallotEncryptionKey( - meerkat.protobuf.Crypto.EncryptionPublicKey.Builder builderForValue) { - if (ballotEncryptionKeyBuilder_ == null) { - ballotEncryptionKey_ = builderForValue.build(); - onChanged(); - } else { - ballotEncryptionKeyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <pre> - * The key used to encrypt ballots. The corresponding private key - * is shared between the trustees. - * </pre> - * - * <code>.meerkat.EncryptionPublicKey ballotEncryptionKey = 3;</code> - */ - public Builder mergeBallotEncryptionKey(meerkat.protobuf.Crypto.EncryptionPublicKey value) { - if (ballotEncryptionKeyBuilder_ == null) { - if (ballotEncryptionKey_ != null) { - ballotEncryptionKey_ = - meerkat.protobuf.Crypto.EncryptionPublicKey.newBuilder(ballotEncryptionKey_).mergeFrom(value).buildPartial(); - } else { - ballotEncryptionKey_ = value; - } - onChanged(); - } else { - ballotEncryptionKeyBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <pre> - * The key used to encrypt ballots. The corresponding private key - * is shared between the trustees. - * </pre> - * - * <code>.meerkat.EncryptionPublicKey ballotEncryptionKey = 3;</code> - */ - public Builder clearBallotEncryptionKey() { - if (ballotEncryptionKeyBuilder_ == null) { - ballotEncryptionKey_ = null; - onChanged(); - } else { - ballotEncryptionKey_ = null; - ballotEncryptionKeyBuilder_ = null; - } - - return this; - } - /** - * <pre> - * The key used to encrypt ballots. The corresponding private key - * is shared between the trustees. - * </pre> - * - * <code>.meerkat.EncryptionPublicKey ballotEncryptionKey = 3;</code> - */ - public meerkat.protobuf.Crypto.EncryptionPublicKey.Builder getBallotEncryptionKeyBuilder() { - - onChanged(); - return getBallotEncryptionKeyFieldBuilder().getBuilder(); - } - /** - * <pre> - * The key used to encrypt ballots. The corresponding private key - * is shared between the trustees. - * </pre> - * - * <code>.meerkat.EncryptionPublicKey ballotEncryptionKey = 3;</code> - */ - public meerkat.protobuf.Crypto.EncryptionPublicKeyOrBuilder getBallotEncryptionKeyOrBuilder() { - if (ballotEncryptionKeyBuilder_ != null) { - return ballotEncryptionKeyBuilder_.getMessageOrBuilder(); - } else { - return ballotEncryptionKey_ == null ? - meerkat.protobuf.Crypto.EncryptionPublicKey.getDefaultInstance() : ballotEncryptionKey_; - } - } - /** - * <pre> - * The key used to encrypt ballots. The corresponding private key - * is shared between the trustees. - * </pre> - * - * <code>.meerkat.EncryptionPublicKey ballotEncryptionKey = 3;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Crypto.EncryptionPublicKey, meerkat.protobuf.Crypto.EncryptionPublicKey.Builder, meerkat.protobuf.Crypto.EncryptionPublicKeyOrBuilder> - getBallotEncryptionKeyFieldBuilder() { - if (ballotEncryptionKeyBuilder_ == null) { - ballotEncryptionKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Crypto.EncryptionPublicKey, meerkat.protobuf.Crypto.EncryptionPublicKey.Builder, meerkat.protobuf.Crypto.EncryptionPublicKeyOrBuilder>( - getBallotEncryptionKey(), - getParentForChildren(), - isClean()); - ballotEncryptionKey_ = null; - } - return ballotEncryptionKeyBuilder_; - } - - private java.util.List<meerkat.protobuf.Crypto.SignatureVerificationKey> mixerVerificationKeys_ = - java.util.Collections.emptyList(); - private void ensureMixerVerificationKeysIsMutable() { - if (!((bitField0_ & 0x00000008) == 0x00000008)) { - mixerVerificationKeys_ = new java.util.ArrayList<meerkat.protobuf.Crypto.SignatureVerificationKey>(mixerVerificationKeys_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.Crypto.SignatureVerificationKey, meerkat.protobuf.Crypto.SignatureVerificationKey.Builder, meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder> mixerVerificationKeysBuilder_; - - /** - * <pre> - * Verification keys for valid mixers. - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> - */ - public java.util.List<meerkat.protobuf.Crypto.SignatureVerificationKey> getMixerVerificationKeysList() { - if (mixerVerificationKeysBuilder_ == null) { - return java.util.Collections.unmodifiableList(mixerVerificationKeys_); - } else { - return mixerVerificationKeysBuilder_.getMessageList(); - } - } - /** - * <pre> - * Verification keys for valid mixers. - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> - */ - public int getMixerVerificationKeysCount() { - if (mixerVerificationKeysBuilder_ == null) { - return mixerVerificationKeys_.size(); - } else { - return mixerVerificationKeysBuilder_.getCount(); - } - } - /** - * <pre> - * Verification keys for valid mixers. - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> - */ - public meerkat.protobuf.Crypto.SignatureVerificationKey getMixerVerificationKeys(int index) { - if (mixerVerificationKeysBuilder_ == null) { - return mixerVerificationKeys_.get(index); - } else { - return mixerVerificationKeysBuilder_.getMessage(index); - } - } - /** - * <pre> - * Verification keys for valid mixers. - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> - */ - public Builder setMixerVerificationKeys( - int index, meerkat.protobuf.Crypto.SignatureVerificationKey value) { - if (mixerVerificationKeysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMixerVerificationKeysIsMutable(); - mixerVerificationKeys_.set(index, value); - onChanged(); - } else { - mixerVerificationKeysBuilder_.setMessage(index, value); - } - return this; - } - /** - * <pre> - * Verification keys for valid mixers. - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> - */ - public Builder setMixerVerificationKeys( - int index, meerkat.protobuf.Crypto.SignatureVerificationKey.Builder builderForValue) { - if (mixerVerificationKeysBuilder_ == null) { - ensureMixerVerificationKeysIsMutable(); - mixerVerificationKeys_.set(index, builderForValue.build()); - onChanged(); - } else { - mixerVerificationKeysBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <pre> - * Verification keys for valid mixers. - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> - */ - public Builder addMixerVerificationKeys(meerkat.protobuf.Crypto.SignatureVerificationKey value) { - if (mixerVerificationKeysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMixerVerificationKeysIsMutable(); - mixerVerificationKeys_.add(value); - onChanged(); - } else { - mixerVerificationKeysBuilder_.addMessage(value); - } - return this; - } - /** - * <pre> - * Verification keys for valid mixers. - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> - */ - public Builder addMixerVerificationKeys( - int index, meerkat.protobuf.Crypto.SignatureVerificationKey value) { - if (mixerVerificationKeysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMixerVerificationKeysIsMutable(); - mixerVerificationKeys_.add(index, value); - onChanged(); - } else { - mixerVerificationKeysBuilder_.addMessage(index, value); - } - return this; - } - /** - * <pre> - * Verification keys for valid mixers. - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> - */ - public Builder addMixerVerificationKeys( - meerkat.protobuf.Crypto.SignatureVerificationKey.Builder builderForValue) { - if (mixerVerificationKeysBuilder_ == null) { - ensureMixerVerificationKeysIsMutable(); - mixerVerificationKeys_.add(builderForValue.build()); - onChanged(); - } else { - mixerVerificationKeysBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <pre> - * Verification keys for valid mixers. - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> - */ - public Builder addMixerVerificationKeys( - int index, meerkat.protobuf.Crypto.SignatureVerificationKey.Builder builderForValue) { - if (mixerVerificationKeysBuilder_ == null) { - ensureMixerVerificationKeysIsMutable(); - mixerVerificationKeys_.add(index, builderForValue.build()); - onChanged(); - } else { - mixerVerificationKeysBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <pre> - * Verification keys for valid mixers. - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> - */ - public Builder addAllMixerVerificationKeys( - java.lang.Iterable<? extends meerkat.protobuf.Crypto.SignatureVerificationKey> values) { - if (mixerVerificationKeysBuilder_ == null) { - ensureMixerVerificationKeysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, mixerVerificationKeys_); - onChanged(); - } else { - mixerVerificationKeysBuilder_.addAllMessages(values); - } - return this; - } - /** - * <pre> - * Verification keys for valid mixers. - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> - */ - public Builder clearMixerVerificationKeys() { - if (mixerVerificationKeysBuilder_ == null) { - mixerVerificationKeys_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - mixerVerificationKeysBuilder_.clear(); - } - return this; - } - /** - * <pre> - * Verification keys for valid mixers. - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> - */ - public Builder removeMixerVerificationKeys(int index) { - if (mixerVerificationKeysBuilder_ == null) { - ensureMixerVerificationKeysIsMutable(); - mixerVerificationKeys_.remove(index); - onChanged(); - } else { - mixerVerificationKeysBuilder_.remove(index); - } - return this; - } - /** - * <pre> - * Verification keys for valid mixers. - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> - */ - public meerkat.protobuf.Crypto.SignatureVerificationKey.Builder getMixerVerificationKeysBuilder( - int index) { - return getMixerVerificationKeysFieldBuilder().getBuilder(index); - } - /** - * <pre> - * Verification keys for valid mixers. - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> - */ - public meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder getMixerVerificationKeysOrBuilder( - int index) { - if (mixerVerificationKeysBuilder_ == null) { - return mixerVerificationKeys_.get(index); } else { - return mixerVerificationKeysBuilder_.getMessageOrBuilder(index); - } - } - /** - * <pre> - * Verification keys for valid mixers. - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> - */ - public java.util.List<? extends meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder> - getMixerVerificationKeysOrBuilderList() { - if (mixerVerificationKeysBuilder_ != null) { - return mixerVerificationKeysBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(mixerVerificationKeys_); - } - } - /** - * <pre> - * Verification keys for valid mixers. - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> - */ - public meerkat.protobuf.Crypto.SignatureVerificationKey.Builder addMixerVerificationKeysBuilder() { - return getMixerVerificationKeysFieldBuilder().addBuilder( - meerkat.protobuf.Crypto.SignatureVerificationKey.getDefaultInstance()); - } - /** - * <pre> - * Verification keys for valid mixers. - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> - */ - public meerkat.protobuf.Crypto.SignatureVerificationKey.Builder addMixerVerificationKeysBuilder( - int index) { - return getMixerVerificationKeysFieldBuilder().addBuilder( - index, meerkat.protobuf.Crypto.SignatureVerificationKey.getDefaultInstance()); - } - /** - * <pre> - * Verification keys for valid mixers. - * </pre> - * - * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> - */ - public java.util.List<meerkat.protobuf.Crypto.SignatureVerificationKey.Builder> - getMixerVerificationKeysBuilderList() { - return getMixerVerificationKeysFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.Crypto.SignatureVerificationKey, meerkat.protobuf.Crypto.SignatureVerificationKey.Builder, meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder> - getMixerVerificationKeysFieldBuilder() { - if (mixerVerificationKeysBuilder_ == null) { - mixerVerificationKeysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.Crypto.SignatureVerificationKey, meerkat.protobuf.Crypto.SignatureVerificationKey.Builder, meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder>( - mixerVerificationKeys_, - ((bitField0_ & 0x00000008) == 0x00000008), - getParentForChildren(), - isClean()); - mixerVerificationKeys_ = null; - } - return mixerVerificationKeysBuilder_; - } - - private int mixerThreshold_ ; - /** - * <pre> - * How many mixers must participate for the network to be considered valid - * </pre> - * - * <code>uint32 mixerThreshold = 5;</code> - */ - public int getMixerThreshold() { - return mixerThreshold_; - } - /** - * <pre> - * How many mixers must participate for the network to be considered valid - * </pre> - * - * <code>uint32 mixerThreshold = 5;</code> - */ - public Builder setMixerThreshold(int value) { - - mixerThreshold_ = value; - onChanged(); - return this; - } - /** - * <pre> - * How many mixers must participate for the network to be considered valid - * </pre> - * - * <code>uint32 mixerThreshold = 5;</code> - */ - public Builder clearMixerThreshold() { - - mixerThreshold_ = 0; - onChanged(); - return this; - } - - private java.util.List<meerkat.protobuf.Voting.BallotQuestion> channelChoiceQuestions_ = - java.util.Collections.emptyList(); - private void ensureChannelChoiceQuestionsIsMutable() { - if (!((bitField0_ & 0x00000020) == 0x00000020)) { - channelChoiceQuestions_ = new java.util.ArrayList<meerkat.protobuf.Voting.BallotQuestion>(channelChoiceQuestions_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.Voting.BallotQuestion, meerkat.protobuf.Voting.BallotQuestion.Builder, meerkat.protobuf.Voting.BallotQuestionOrBuilder> channelChoiceQuestionsBuilder_; - - /** - * <pre> - * questions to first indicate the voter's channel - * </pre> - * - * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> - */ - public java.util.List<meerkat.protobuf.Voting.BallotQuestion> getChannelChoiceQuestionsList() { - if (channelChoiceQuestionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(channelChoiceQuestions_); - } else { - return channelChoiceQuestionsBuilder_.getMessageList(); - } - } - /** - * <pre> - * questions to first indicate the voter's channel - * </pre> - * - * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> - */ - public int getChannelChoiceQuestionsCount() { - if (channelChoiceQuestionsBuilder_ == null) { - return channelChoiceQuestions_.size(); - } else { - return channelChoiceQuestionsBuilder_.getCount(); - } - } - /** - * <pre> - * questions to first indicate the voter's channel - * </pre> - * - * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> - */ - public meerkat.protobuf.Voting.BallotQuestion getChannelChoiceQuestions(int index) { - if (channelChoiceQuestionsBuilder_ == null) { - return channelChoiceQuestions_.get(index); - } else { - return channelChoiceQuestionsBuilder_.getMessage(index); - } - } - /** - * <pre> - * questions to first indicate the voter's channel - * </pre> - * - * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> - */ - public Builder setChannelChoiceQuestions( - int index, meerkat.protobuf.Voting.BallotQuestion value) { - if (channelChoiceQuestionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChannelChoiceQuestionsIsMutable(); - channelChoiceQuestions_.set(index, value); - onChanged(); - } else { - channelChoiceQuestionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * <pre> - * questions to first indicate the voter's channel - * </pre> - * - * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> - */ - public Builder setChannelChoiceQuestions( - int index, meerkat.protobuf.Voting.BallotQuestion.Builder builderForValue) { - if (channelChoiceQuestionsBuilder_ == null) { - ensureChannelChoiceQuestionsIsMutable(); - channelChoiceQuestions_.set(index, builderForValue.build()); - onChanged(); - } else { - channelChoiceQuestionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <pre> - * questions to first indicate the voter's channel - * </pre> - * - * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> - */ - public Builder addChannelChoiceQuestions(meerkat.protobuf.Voting.BallotQuestion value) { - if (channelChoiceQuestionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChannelChoiceQuestionsIsMutable(); - channelChoiceQuestions_.add(value); - onChanged(); - } else { - channelChoiceQuestionsBuilder_.addMessage(value); - } - return this; - } - /** - * <pre> - * questions to first indicate the voter's channel - * </pre> - * - * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> - */ - public Builder addChannelChoiceQuestions( - int index, meerkat.protobuf.Voting.BallotQuestion value) { - if (channelChoiceQuestionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChannelChoiceQuestionsIsMutable(); - channelChoiceQuestions_.add(index, value); - onChanged(); - } else { - channelChoiceQuestionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * <pre> - * questions to first indicate the voter's channel - * </pre> - * - * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> - */ - public Builder addChannelChoiceQuestions( - meerkat.protobuf.Voting.BallotQuestion.Builder builderForValue) { - if (channelChoiceQuestionsBuilder_ == null) { - ensureChannelChoiceQuestionsIsMutable(); - channelChoiceQuestions_.add(builderForValue.build()); - onChanged(); - } else { - channelChoiceQuestionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <pre> - * questions to first indicate the voter's channel - * </pre> - * - * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> - */ - public Builder addChannelChoiceQuestions( - int index, meerkat.protobuf.Voting.BallotQuestion.Builder builderForValue) { - if (channelChoiceQuestionsBuilder_ == null) { - ensureChannelChoiceQuestionsIsMutable(); - channelChoiceQuestions_.add(index, builderForValue.build()); - onChanged(); - } else { - channelChoiceQuestionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <pre> - * questions to first indicate the voter's channel - * </pre> - * - * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> - */ - public Builder addAllChannelChoiceQuestions( - java.lang.Iterable<? extends meerkat.protobuf.Voting.BallotQuestion> values) { - if (channelChoiceQuestionsBuilder_ == null) { - ensureChannelChoiceQuestionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, channelChoiceQuestions_); - onChanged(); - } else { - channelChoiceQuestionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * <pre> - * questions to first indicate the voter's channel - * </pre> - * - * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> - */ - public Builder clearChannelChoiceQuestions() { - if (channelChoiceQuestionsBuilder_ == null) { - channelChoiceQuestions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - channelChoiceQuestionsBuilder_.clear(); - } - return this; - } - /** - * <pre> - * questions to first indicate the voter's channel - * </pre> - * - * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> - */ - public Builder removeChannelChoiceQuestions(int index) { - if (channelChoiceQuestionsBuilder_ == null) { - ensureChannelChoiceQuestionsIsMutable(); - channelChoiceQuestions_.remove(index); - onChanged(); - } else { - channelChoiceQuestionsBuilder_.remove(index); - } - return this; - } - /** - * <pre> - * questions to first indicate the voter's channel - * </pre> - * - * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> - */ - public meerkat.protobuf.Voting.BallotQuestion.Builder getChannelChoiceQuestionsBuilder( - int index) { - return getChannelChoiceQuestionsFieldBuilder().getBuilder(index); - } - /** - * <pre> - * questions to first indicate the voter's channel - * </pre> - * - * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> - */ - public meerkat.protobuf.Voting.BallotQuestionOrBuilder getChannelChoiceQuestionsOrBuilder( - int index) { - if (channelChoiceQuestionsBuilder_ == null) { - return channelChoiceQuestions_.get(index); } else { - return channelChoiceQuestionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * <pre> - * questions to first indicate the voter's channel - * </pre> - * - * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> - */ - public java.util.List<? extends meerkat.protobuf.Voting.BallotQuestionOrBuilder> - getChannelChoiceQuestionsOrBuilderList() { - if (channelChoiceQuestionsBuilder_ != null) { - return channelChoiceQuestionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(channelChoiceQuestions_); - } - } - /** - * <pre> - * questions to first indicate the voter's channel - * </pre> - * - * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> - */ - public meerkat.protobuf.Voting.BallotQuestion.Builder addChannelChoiceQuestionsBuilder() { - return getChannelChoiceQuestionsFieldBuilder().addBuilder( - meerkat.protobuf.Voting.BallotQuestion.getDefaultInstance()); - } - /** - * <pre> - * questions to first indicate the voter's channel - * </pre> - * - * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> - */ - public meerkat.protobuf.Voting.BallotQuestion.Builder addChannelChoiceQuestionsBuilder( - int index) { - return getChannelChoiceQuestionsFieldBuilder().addBuilder( - index, meerkat.protobuf.Voting.BallotQuestion.getDefaultInstance()); - } - /** - * <pre> - * questions to first indicate the voter's channel - * </pre> - * - * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> - */ - public java.util.List<meerkat.protobuf.Voting.BallotQuestion.Builder> - getChannelChoiceQuestionsBuilderList() { - return getChannelChoiceQuestionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.Voting.BallotQuestion, meerkat.protobuf.Voting.BallotQuestion.Builder, meerkat.protobuf.Voting.BallotQuestionOrBuilder> - getChannelChoiceQuestionsFieldBuilder() { - if (channelChoiceQuestionsBuilder_ == null) { - channelChoiceQuestionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.Voting.BallotQuestion, meerkat.protobuf.Voting.BallotQuestion.Builder, meerkat.protobuf.Voting.BallotQuestionOrBuilder>( - channelChoiceQuestions_, - ((bitField0_ & 0x00000020) == 0x00000020), - getParentForChildren(), - isClean()); - channelChoiceQuestions_ = null; - } - return channelChoiceQuestionsBuilder_; - } - - private meerkat.protobuf.Voting.SimpleCategoriesSelectionData selectionData_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Voting.SimpleCategoriesSelectionData, meerkat.protobuf.Voting.SimpleCategoriesSelectionData.Builder, meerkat.protobuf.Voting.SimpleCategoriesSelectionDataOrBuilder> selectionDataBuilder_; - /** - * <pre> - * translating the channel-choice answers to the voter's channel - * </pre> - * - * <code>.meerkat.SimpleCategoriesSelectionData selection_data = 7;</code> - */ - public boolean hasSelectionData() { - return selectionDataBuilder_ != null || selectionData_ != null; - } - /** - * <pre> - * translating the channel-choice answers to the voter's channel - * </pre> - * - * <code>.meerkat.SimpleCategoriesSelectionData selection_data = 7;</code> - */ - public meerkat.protobuf.Voting.SimpleCategoriesSelectionData getSelectionData() { - if (selectionDataBuilder_ == null) { - return selectionData_ == null ? meerkat.protobuf.Voting.SimpleCategoriesSelectionData.getDefaultInstance() : selectionData_; - } else { - return selectionDataBuilder_.getMessage(); - } - } - /** - * <pre> - * translating the channel-choice answers to the voter's channel - * </pre> - * - * <code>.meerkat.SimpleCategoriesSelectionData selection_data = 7;</code> - */ - public Builder setSelectionData(meerkat.protobuf.Voting.SimpleCategoriesSelectionData value) { - if (selectionDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - selectionData_ = value; - onChanged(); - } else { - selectionDataBuilder_.setMessage(value); - } - - return this; - } - /** - * <pre> - * translating the channel-choice answers to the voter's channel - * </pre> - * - * <code>.meerkat.SimpleCategoriesSelectionData selection_data = 7;</code> - */ - public Builder setSelectionData( - meerkat.protobuf.Voting.SimpleCategoriesSelectionData.Builder builderForValue) { - if (selectionDataBuilder_ == null) { - selectionData_ = builderForValue.build(); - onChanged(); - } else { - selectionDataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <pre> - * translating the channel-choice answers to the voter's channel - * </pre> - * - * <code>.meerkat.SimpleCategoriesSelectionData selection_data = 7;</code> - */ - public Builder mergeSelectionData(meerkat.protobuf.Voting.SimpleCategoriesSelectionData value) { - if (selectionDataBuilder_ == null) { - if (selectionData_ != null) { - selectionData_ = - meerkat.protobuf.Voting.SimpleCategoriesSelectionData.newBuilder(selectionData_).mergeFrom(value).buildPartial(); - } else { - selectionData_ = value; - } - onChanged(); - } else { - selectionDataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <pre> - * translating the channel-choice answers to the voter's channel - * </pre> - * - * <code>.meerkat.SimpleCategoriesSelectionData selection_data = 7;</code> - */ - public Builder clearSelectionData() { - if (selectionDataBuilder_ == null) { - selectionData_ = null; - onChanged(); - } else { - selectionData_ = null; - selectionDataBuilder_ = null; - } - - return this; - } - /** - * <pre> - * translating the channel-choice answers to the voter's channel - * </pre> - * - * <code>.meerkat.SimpleCategoriesSelectionData selection_data = 7;</code> - */ - public meerkat.protobuf.Voting.SimpleCategoriesSelectionData.Builder getSelectionDataBuilder() { - - onChanged(); - return getSelectionDataFieldBuilder().getBuilder(); - } - /** - * <pre> - * translating the channel-choice answers to the voter's channel - * </pre> - * - * <code>.meerkat.SimpleCategoriesSelectionData selection_data = 7;</code> - */ - public meerkat.protobuf.Voting.SimpleCategoriesSelectionDataOrBuilder getSelectionDataOrBuilder() { - if (selectionDataBuilder_ != null) { - return selectionDataBuilder_.getMessageOrBuilder(); - } else { - return selectionData_ == null ? - meerkat.protobuf.Voting.SimpleCategoriesSelectionData.getDefaultInstance() : selectionData_; - } - } - /** - * <pre> - * translating the channel-choice answers to the voter's channel - * </pre> - * - * <code>.meerkat.SimpleCategoriesSelectionData selection_data = 7;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Voting.SimpleCategoriesSelectionData, meerkat.protobuf.Voting.SimpleCategoriesSelectionData.Builder, meerkat.protobuf.Voting.SimpleCategoriesSelectionDataOrBuilder> - getSelectionDataFieldBuilder() { - if (selectionDataBuilder_ == null) { - selectionDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Voting.SimpleCategoriesSelectionData, meerkat.protobuf.Voting.SimpleCategoriesSelectionData.Builder, meerkat.protobuf.Voting.SimpleCategoriesSelectionDataOrBuilder>( - getSelectionData(), - getParentForChildren(), - isClean()); - selectionData_ = null; - } - return selectionDataBuilder_; - } - - private java.util.List<meerkat.protobuf.Voting.BallotQuestion> raceQuestions_ = - java.util.Collections.emptyList(); - private void ensureRaceQuestionsIsMutable() { - if (!((bitField0_ & 0x00000080) == 0x00000080)) { - raceQuestions_ = new java.util.ArrayList<meerkat.protobuf.Voting.BallotQuestion>(raceQuestions_); - bitField0_ |= 0x00000080; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.Voting.BallotQuestion, meerkat.protobuf.Voting.BallotQuestion.Builder, meerkat.protobuf.Voting.BallotQuestionOrBuilder> raceQuestionsBuilder_; - - /** - * <pre> - * Candidate list (or other question format) - * </pre> - * - * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> - */ - public java.util.List<meerkat.protobuf.Voting.BallotQuestion> getRaceQuestionsList() { - if (raceQuestionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(raceQuestions_); - } else { - return raceQuestionsBuilder_.getMessageList(); - } - } - /** - * <pre> - * Candidate list (or other question format) - * </pre> - * - * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> - */ - public int getRaceQuestionsCount() { - if (raceQuestionsBuilder_ == null) { - return raceQuestions_.size(); - } else { - return raceQuestionsBuilder_.getCount(); - } - } - /** - * <pre> - * Candidate list (or other question format) - * </pre> - * - * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> - */ - public meerkat.protobuf.Voting.BallotQuestion getRaceQuestions(int index) { - if (raceQuestionsBuilder_ == null) { - return raceQuestions_.get(index); - } else { - return raceQuestionsBuilder_.getMessage(index); - } - } - /** - * <pre> - * Candidate list (or other question format) - * </pre> - * - * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> - */ - public Builder setRaceQuestions( - int index, meerkat.protobuf.Voting.BallotQuestion value) { - if (raceQuestionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRaceQuestionsIsMutable(); - raceQuestions_.set(index, value); - onChanged(); - } else { - raceQuestionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * <pre> - * Candidate list (or other question format) - * </pre> - * - * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> - */ - public Builder setRaceQuestions( - int index, meerkat.protobuf.Voting.BallotQuestion.Builder builderForValue) { - if (raceQuestionsBuilder_ == null) { - ensureRaceQuestionsIsMutable(); - raceQuestions_.set(index, builderForValue.build()); - onChanged(); - } else { - raceQuestionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <pre> - * Candidate list (or other question format) - * </pre> - * - * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> - */ - public Builder addRaceQuestions(meerkat.protobuf.Voting.BallotQuestion value) { - if (raceQuestionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRaceQuestionsIsMutable(); - raceQuestions_.add(value); - onChanged(); - } else { - raceQuestionsBuilder_.addMessage(value); - } - return this; - } - /** - * <pre> - * Candidate list (or other question format) - * </pre> - * - * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> - */ - public Builder addRaceQuestions( - int index, meerkat.protobuf.Voting.BallotQuestion value) { - if (raceQuestionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRaceQuestionsIsMutable(); - raceQuestions_.add(index, value); - onChanged(); - } else { - raceQuestionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * <pre> - * Candidate list (or other question format) - * </pre> - * - * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> - */ - public Builder addRaceQuestions( - meerkat.protobuf.Voting.BallotQuestion.Builder builderForValue) { - if (raceQuestionsBuilder_ == null) { - ensureRaceQuestionsIsMutable(); - raceQuestions_.add(builderForValue.build()); - onChanged(); - } else { - raceQuestionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <pre> - * Candidate list (or other question format) - * </pre> - * - * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> - */ - public Builder addRaceQuestions( - int index, meerkat.protobuf.Voting.BallotQuestion.Builder builderForValue) { - if (raceQuestionsBuilder_ == null) { - ensureRaceQuestionsIsMutable(); - raceQuestions_.add(index, builderForValue.build()); - onChanged(); - } else { - raceQuestionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <pre> - * Candidate list (or other question format) - * </pre> - * - * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> - */ - public Builder addAllRaceQuestions( - java.lang.Iterable<? extends meerkat.protobuf.Voting.BallotQuestion> values) { - if (raceQuestionsBuilder_ == null) { - ensureRaceQuestionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, raceQuestions_); - onChanged(); - } else { - raceQuestionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * <pre> - * Candidate list (or other question format) - * </pre> - * - * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> - */ - public Builder clearRaceQuestions() { - if (raceQuestionsBuilder_ == null) { - raceQuestions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - } else { - raceQuestionsBuilder_.clear(); - } - return this; - } - /** - * <pre> - * Candidate list (or other question format) - * </pre> - * - * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> - */ - public Builder removeRaceQuestions(int index) { - if (raceQuestionsBuilder_ == null) { - ensureRaceQuestionsIsMutable(); - raceQuestions_.remove(index); - onChanged(); - } else { - raceQuestionsBuilder_.remove(index); - } - return this; - } - /** - * <pre> - * Candidate list (or other question format) - * </pre> - * - * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> - */ - public meerkat.protobuf.Voting.BallotQuestion.Builder getRaceQuestionsBuilder( - int index) { - return getRaceQuestionsFieldBuilder().getBuilder(index); - } - /** - * <pre> - * Candidate list (or other question format) - * </pre> - * - * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> - */ - public meerkat.protobuf.Voting.BallotQuestionOrBuilder getRaceQuestionsOrBuilder( - int index) { - if (raceQuestionsBuilder_ == null) { - return raceQuestions_.get(index); } else { - return raceQuestionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * <pre> - * Candidate list (or other question format) - * </pre> - * - * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> - */ - public java.util.List<? extends meerkat.protobuf.Voting.BallotQuestionOrBuilder> - getRaceQuestionsOrBuilderList() { - if (raceQuestionsBuilder_ != null) { - return raceQuestionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(raceQuestions_); - } - } - /** - * <pre> - * Candidate list (or other question format) - * </pre> - * - * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> - */ - public meerkat.protobuf.Voting.BallotQuestion.Builder addRaceQuestionsBuilder() { - return getRaceQuestionsFieldBuilder().addBuilder( - meerkat.protobuf.Voting.BallotQuestion.getDefaultInstance()); - } - /** - * <pre> - * Candidate list (or other question format) - * </pre> - * - * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> - */ - public meerkat.protobuf.Voting.BallotQuestion.Builder addRaceQuestionsBuilder( - int index) { - return getRaceQuestionsFieldBuilder().addBuilder( - index, meerkat.protobuf.Voting.BallotQuestion.getDefaultInstance()); - } - /** - * <pre> - * Candidate list (or other question format) - * </pre> - * - * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> - */ - public java.util.List<meerkat.protobuf.Voting.BallotQuestion.Builder> - getRaceQuestionsBuilderList() { - return getRaceQuestionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.Voting.BallotQuestion, meerkat.protobuf.Voting.BallotQuestion.Builder, meerkat.protobuf.Voting.BallotQuestionOrBuilder> - getRaceQuestionsFieldBuilder() { - if (raceQuestionsBuilder_ == null) { - raceQuestionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.Voting.BallotQuestion, meerkat.protobuf.Voting.BallotQuestion.Builder, meerkat.protobuf.Voting.BallotQuestionOrBuilder>( - raceQuestions_, - ((bitField0_ & 0x00000080) == 0x00000080), - getParentForChildren(), - isClean()); - raceQuestions_ = null; - } - return raceQuestionsBuilder_; - } - - private meerkat.protobuf.Voting.BulletinBoardClientParams bulletinBoardClientParams_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Voting.BulletinBoardClientParams, meerkat.protobuf.Voting.BulletinBoardClientParams.Builder, meerkat.protobuf.Voting.BulletinBoardClientParamsOrBuilder> bulletinBoardClientParamsBuilder_; - /** - * <pre> - * Data required in order to access the Bulletin Board Servers - * </pre> - * - * <code>.meerkat.BulletinBoardClientParams bulletinBoardClientParams = 9;</code> - */ - public boolean hasBulletinBoardClientParams() { - return bulletinBoardClientParamsBuilder_ != null || bulletinBoardClientParams_ != null; - } - /** - * <pre> - * Data required in order to access the Bulletin Board Servers - * </pre> - * - * <code>.meerkat.BulletinBoardClientParams bulletinBoardClientParams = 9;</code> - */ - public meerkat.protobuf.Voting.BulletinBoardClientParams getBulletinBoardClientParams() { - if (bulletinBoardClientParamsBuilder_ == null) { - return bulletinBoardClientParams_ == null ? meerkat.protobuf.Voting.BulletinBoardClientParams.getDefaultInstance() : bulletinBoardClientParams_; - } else { - return bulletinBoardClientParamsBuilder_.getMessage(); - } - } - /** - * <pre> - * Data required in order to access the Bulletin Board Servers - * </pre> - * - * <code>.meerkat.BulletinBoardClientParams bulletinBoardClientParams = 9;</code> - */ - public Builder setBulletinBoardClientParams(meerkat.protobuf.Voting.BulletinBoardClientParams value) { - if (bulletinBoardClientParamsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - bulletinBoardClientParams_ = value; - onChanged(); - } else { - bulletinBoardClientParamsBuilder_.setMessage(value); - } - - return this; - } - /** - * <pre> - * Data required in order to access the Bulletin Board Servers - * </pre> - * - * <code>.meerkat.BulletinBoardClientParams bulletinBoardClientParams = 9;</code> - */ - public Builder setBulletinBoardClientParams( - meerkat.protobuf.Voting.BulletinBoardClientParams.Builder builderForValue) { - if (bulletinBoardClientParamsBuilder_ == null) { - bulletinBoardClientParams_ = builderForValue.build(); - onChanged(); - } else { - bulletinBoardClientParamsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <pre> - * Data required in order to access the Bulletin Board Servers - * </pre> - * - * <code>.meerkat.BulletinBoardClientParams bulletinBoardClientParams = 9;</code> - */ - public Builder mergeBulletinBoardClientParams(meerkat.protobuf.Voting.BulletinBoardClientParams value) { - if (bulletinBoardClientParamsBuilder_ == null) { - if (bulletinBoardClientParams_ != null) { - bulletinBoardClientParams_ = - meerkat.protobuf.Voting.BulletinBoardClientParams.newBuilder(bulletinBoardClientParams_).mergeFrom(value).buildPartial(); - } else { - bulletinBoardClientParams_ = value; - } - onChanged(); - } else { - bulletinBoardClientParamsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <pre> - * Data required in order to access the Bulletin Board Servers - * </pre> - * - * <code>.meerkat.BulletinBoardClientParams bulletinBoardClientParams = 9;</code> - */ - public Builder clearBulletinBoardClientParams() { - if (bulletinBoardClientParamsBuilder_ == null) { - bulletinBoardClientParams_ = null; - onChanged(); - } else { - bulletinBoardClientParams_ = null; - bulletinBoardClientParamsBuilder_ = null; - } - - return this; - } - /** - * <pre> - * Data required in order to access the Bulletin Board Servers - * </pre> - * - * <code>.meerkat.BulletinBoardClientParams bulletinBoardClientParams = 9;</code> - */ - public meerkat.protobuf.Voting.BulletinBoardClientParams.Builder getBulletinBoardClientParamsBuilder() { - - onChanged(); - return getBulletinBoardClientParamsFieldBuilder().getBuilder(); - } - /** - * <pre> - * Data required in order to access the Bulletin Board Servers - * </pre> - * - * <code>.meerkat.BulletinBoardClientParams bulletinBoardClientParams = 9;</code> - */ - public meerkat.protobuf.Voting.BulletinBoardClientParamsOrBuilder getBulletinBoardClientParamsOrBuilder() { - if (bulletinBoardClientParamsBuilder_ != null) { - return bulletinBoardClientParamsBuilder_.getMessageOrBuilder(); - } else { - return bulletinBoardClientParams_ == null ? - meerkat.protobuf.Voting.BulletinBoardClientParams.getDefaultInstance() : bulletinBoardClientParams_; - } - } - /** - * <pre> - * Data required in order to access the Bulletin Board Servers - * </pre> - * - * <code>.meerkat.BulletinBoardClientParams bulletinBoardClientParams = 9;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Voting.BulletinBoardClientParams, meerkat.protobuf.Voting.BulletinBoardClientParams.Builder, meerkat.protobuf.Voting.BulletinBoardClientParamsOrBuilder> - getBulletinBoardClientParamsFieldBuilder() { - if (bulletinBoardClientParamsBuilder_ == null) { - bulletinBoardClientParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Voting.BulletinBoardClientParams, meerkat.protobuf.Voting.BulletinBoardClientParams.Builder, meerkat.protobuf.Voting.BulletinBoardClientParamsOrBuilder>( - getBulletinBoardClientParams(), - getParentForChildren(), - isClean()); - bulletinBoardClientParams_ = null; - } - return bulletinBoardClientParamsBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.ElectionParams) - } - - // @@protoc_insertion_point(class_scope:meerkat.ElectionParams) - private static final meerkat.protobuf.Voting.ElectionParams DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.Voting.ElectionParams(); - } - - public static meerkat.protobuf.Voting.ElectionParams getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<ElectionParams> - PARSER = new com.google.protobuf.AbstractParser<ElectionParams>() { - public ElectionParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ElectionParams(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<ElectionParams> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<ElectionParams> getParserForType() { - return PARSER; - } - - public meerkat.protobuf.Voting.ElectionParams getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CategoryOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.Category) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>repeated uint32 questionIndex = 1;</code> - */ - java.util.List<java.lang.Integer> getQuestionIndexList(); - /** - * <code>repeated uint32 questionIndex = 1;</code> - */ - int getQuestionIndexCount(); - /** - * <code>repeated uint32 questionIndex = 1;</code> - */ - int getQuestionIndex(int index); - } - /** - * Protobuf type {@code meerkat.Category} - */ - public static final class Category extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.Category) - CategoryOrBuilder { - // Use Category.newBuilder() to construct. - private Category(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private Category() { - questionIndex_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private Category( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - questionIndex_ = new java.util.ArrayList<java.lang.Integer>(); - mutable_bitField0_ |= 0x00000001; - } - questionIndex_.add(input.readUInt32()); - break; - } - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { - questionIndex_ = new java.util.ArrayList<java.lang.Integer>(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - questionIndex_.add(input.readUInt32()); - } - input.popLimit(limit); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - questionIndex_ = java.util.Collections.unmodifiableList(questionIndex_); - } - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Voting.internal_static_meerkat_Category_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Voting.internal_static_meerkat_Category_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Voting.Category.class, meerkat.protobuf.Voting.Category.Builder.class); - } - - public static final int QUESTIONINDEX_FIELD_NUMBER = 1; - private java.util.List<java.lang.Integer> questionIndex_; - /** - * <code>repeated uint32 questionIndex = 1;</code> - */ - public java.util.List<java.lang.Integer> - getQuestionIndexList() { - return questionIndex_; - } - /** - * <code>repeated uint32 questionIndex = 1;</code> - */ - public int getQuestionIndexCount() { - return questionIndex_.size(); - } - /** - * <code>repeated uint32 questionIndex = 1;</code> - */ - public int getQuestionIndex(int index) { - return questionIndex_.get(index); - } - private int questionIndexMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (getQuestionIndexList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(questionIndexMemoizedSerializedSize); - } - for (int i = 0; i < questionIndex_.size(); i++) { - output.writeUInt32NoTag(questionIndex_.get(i)); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < questionIndex_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(questionIndex_.get(i)); - } - size += dataSize; - if (!getQuestionIndexList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - questionIndexMemoizedSerializedSize = dataSize; - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.Voting.Category)) { - return super.equals(obj); - } - meerkat.protobuf.Voting.Category other = (meerkat.protobuf.Voting.Category) obj; - - boolean result = true; - result = result && getQuestionIndexList() - .equals(other.getQuestionIndexList()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getQuestionIndexCount() > 0) { - hash = (37 * hash) + QUESTIONINDEX_FIELD_NUMBER; - hash = (53 * hash) + getQuestionIndexList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.Voting.Category parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Voting.Category parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Voting.Category parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Voting.Category parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Voting.Category parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.Category parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Voting.Category parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.Category parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Voting.Category parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.Category parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.Voting.Category prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code meerkat.Category} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:meerkat.Category) - meerkat.protobuf.Voting.CategoryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Voting.internal_static_meerkat_Category_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Voting.internal_static_meerkat_Category_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Voting.Category.class, meerkat.protobuf.Voting.Category.Builder.class); - } - - // Construct using meerkat.protobuf.Voting.Category.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - questionIndex_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.Voting.internal_static_meerkat_Category_descriptor; - } - - public meerkat.protobuf.Voting.Category getDefaultInstanceForType() { - return meerkat.protobuf.Voting.Category.getDefaultInstance(); - } - - public meerkat.protobuf.Voting.Category build() { - meerkat.protobuf.Voting.Category result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.Voting.Category buildPartial() { - meerkat.protobuf.Voting.Category result = new meerkat.protobuf.Voting.Category(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - questionIndex_ = java.util.Collections.unmodifiableList(questionIndex_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.questionIndex_ = questionIndex_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.Voting.Category) { - return mergeFrom((meerkat.protobuf.Voting.Category)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.Voting.Category other) { - if (other == meerkat.protobuf.Voting.Category.getDefaultInstance()) return this; - if (!other.questionIndex_.isEmpty()) { - if (questionIndex_.isEmpty()) { - questionIndex_ = other.questionIndex_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureQuestionIndexIsMutable(); - questionIndex_.addAll(other.questionIndex_); - } - onChanged(); - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.Voting.Category parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.Voting.Category) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List<java.lang.Integer> questionIndex_ = java.util.Collections.emptyList(); - private void ensureQuestionIndexIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - questionIndex_ = new java.util.ArrayList<java.lang.Integer>(questionIndex_); - bitField0_ |= 0x00000001; - } - } - /** - * <code>repeated uint32 questionIndex = 1;</code> - */ - public java.util.List<java.lang.Integer> - getQuestionIndexList() { - return java.util.Collections.unmodifiableList(questionIndex_); - } - /** - * <code>repeated uint32 questionIndex = 1;</code> - */ - public int getQuestionIndexCount() { - return questionIndex_.size(); - } - /** - * <code>repeated uint32 questionIndex = 1;</code> - */ - public int getQuestionIndex(int index) { - return questionIndex_.get(index); - } - /** - * <code>repeated uint32 questionIndex = 1;</code> - */ - public Builder setQuestionIndex( - int index, int value) { - ensureQuestionIndexIsMutable(); - questionIndex_.set(index, value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 questionIndex = 1;</code> - */ - public Builder addQuestionIndex(int value) { - ensureQuestionIndexIsMutable(); - questionIndex_.add(value); - onChanged(); - return this; - } - /** - * <code>repeated uint32 questionIndex = 1;</code> - */ - public Builder addAllQuestionIndex( - java.lang.Iterable<? extends java.lang.Integer> values) { - ensureQuestionIndexIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, questionIndex_); - onChanged(); - return this; - } - /** - * <code>repeated uint32 questionIndex = 1;</code> - */ - public Builder clearQuestionIndex() { - questionIndex_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.Category) - } - - // @@protoc_insertion_point(class_scope:meerkat.Category) - private static final meerkat.protobuf.Voting.Category DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.Voting.Category(); - } - - public static meerkat.protobuf.Voting.Category getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<Category> - PARSER = new com.google.protobuf.AbstractParser<Category>() { - public Category parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Category(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<Category> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<Category> getParserForType() { - return PARSER; - } - - public meerkat.protobuf.Voting.Category getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CategoryChooserOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.CategoryChooser) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>repeated .meerkat.Category category = 1;</code> - */ - java.util.List<meerkat.protobuf.Voting.Category> - getCategoryList(); - /** - * <code>repeated .meerkat.Category category = 1;</code> - */ - meerkat.protobuf.Voting.Category getCategory(int index); - /** - * <code>repeated .meerkat.Category category = 1;</code> - */ - int getCategoryCount(); - /** - * <code>repeated .meerkat.Category category = 1;</code> - */ - java.util.List<? extends meerkat.protobuf.Voting.CategoryOrBuilder> - getCategoryOrBuilderList(); - /** - * <code>repeated .meerkat.Category category = 1;</code> - */ - meerkat.protobuf.Voting.CategoryOrBuilder getCategoryOrBuilder( - int index); - } - /** - * Protobuf type {@code meerkat.CategoryChooser} - */ - public static final class CategoryChooser extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.CategoryChooser) - CategoryChooserOrBuilder { - // Use CategoryChooser.newBuilder() to construct. - private CategoryChooser(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private CategoryChooser() { - category_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private CategoryChooser( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - category_ = new java.util.ArrayList<meerkat.protobuf.Voting.Category>(); - mutable_bitField0_ |= 0x00000001; - } - category_.add( - input.readMessage(meerkat.protobuf.Voting.Category.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - category_ = java.util.Collections.unmodifiableList(category_); - } - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Voting.internal_static_meerkat_CategoryChooser_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Voting.internal_static_meerkat_CategoryChooser_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Voting.CategoryChooser.class, meerkat.protobuf.Voting.CategoryChooser.Builder.class); - } - - public static final int CATEGORY_FIELD_NUMBER = 1; - private java.util.List<meerkat.protobuf.Voting.Category> category_; - /** - * <code>repeated .meerkat.Category category = 1;</code> - */ - public java.util.List<meerkat.protobuf.Voting.Category> getCategoryList() { - return category_; - } - /** - * <code>repeated .meerkat.Category category = 1;</code> - */ - public java.util.List<? extends meerkat.protobuf.Voting.CategoryOrBuilder> - getCategoryOrBuilderList() { - return category_; - } - /** - * <code>repeated .meerkat.Category category = 1;</code> - */ - public int getCategoryCount() { - return category_.size(); - } - /** - * <code>repeated .meerkat.Category category = 1;</code> - */ - public meerkat.protobuf.Voting.Category getCategory(int index) { - return category_.get(index); - } - /** - * <code>repeated .meerkat.Category category = 1;</code> - */ - public meerkat.protobuf.Voting.CategoryOrBuilder getCategoryOrBuilder( - int index) { - return category_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < category_.size(); i++) { - output.writeMessage(1, category_.get(i)); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < category_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, category_.get(i)); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.Voting.CategoryChooser)) { - return super.equals(obj); - } - meerkat.protobuf.Voting.CategoryChooser other = (meerkat.protobuf.Voting.CategoryChooser) obj; - - boolean result = true; - result = result && getCategoryList() - .equals(other.getCategoryList()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getCategoryCount() > 0) { - hash = (37 * hash) + CATEGORY_FIELD_NUMBER; - hash = (53 * hash) + getCategoryList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.Voting.CategoryChooser parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Voting.CategoryChooser parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Voting.CategoryChooser parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Voting.CategoryChooser parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Voting.CategoryChooser parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.CategoryChooser parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Voting.CategoryChooser parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.CategoryChooser parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Voting.CategoryChooser parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.CategoryChooser parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.Voting.CategoryChooser prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code meerkat.CategoryChooser} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:meerkat.CategoryChooser) - meerkat.protobuf.Voting.CategoryChooserOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Voting.internal_static_meerkat_CategoryChooser_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Voting.internal_static_meerkat_CategoryChooser_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Voting.CategoryChooser.class, meerkat.protobuf.Voting.CategoryChooser.Builder.class); - } - - // Construct using meerkat.protobuf.Voting.CategoryChooser.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getCategoryFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (categoryBuilder_ == null) { - category_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - categoryBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.Voting.internal_static_meerkat_CategoryChooser_descriptor; - } - - public meerkat.protobuf.Voting.CategoryChooser getDefaultInstanceForType() { - return meerkat.protobuf.Voting.CategoryChooser.getDefaultInstance(); - } - - public meerkat.protobuf.Voting.CategoryChooser build() { - meerkat.protobuf.Voting.CategoryChooser result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.Voting.CategoryChooser buildPartial() { - meerkat.protobuf.Voting.CategoryChooser result = new meerkat.protobuf.Voting.CategoryChooser(this); - int from_bitField0_ = bitField0_; - if (categoryBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - category_ = java.util.Collections.unmodifiableList(category_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.category_ = category_; - } else { - result.category_ = categoryBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.Voting.CategoryChooser) { - return mergeFrom((meerkat.protobuf.Voting.CategoryChooser)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.Voting.CategoryChooser other) { - if (other == meerkat.protobuf.Voting.CategoryChooser.getDefaultInstance()) return this; - if (categoryBuilder_ == null) { - if (!other.category_.isEmpty()) { - if (category_.isEmpty()) { - category_ = other.category_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureCategoryIsMutable(); - category_.addAll(other.category_); - } - onChanged(); - } - } else { - if (!other.category_.isEmpty()) { - if (categoryBuilder_.isEmpty()) { - categoryBuilder_.dispose(); - categoryBuilder_ = null; - category_ = other.category_; - bitField0_ = (bitField0_ & ~0x00000001); - categoryBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCategoryFieldBuilder() : null; - } else { - categoryBuilder_.addAllMessages(other.category_); - } - } - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.Voting.CategoryChooser parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.Voting.CategoryChooser) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List<meerkat.protobuf.Voting.Category> category_ = - java.util.Collections.emptyList(); - private void ensureCategoryIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - category_ = new java.util.ArrayList<meerkat.protobuf.Voting.Category>(category_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.Voting.Category, meerkat.protobuf.Voting.Category.Builder, meerkat.protobuf.Voting.CategoryOrBuilder> categoryBuilder_; - - /** - * <code>repeated .meerkat.Category category = 1;</code> - */ - public java.util.List<meerkat.protobuf.Voting.Category> getCategoryList() { - if (categoryBuilder_ == null) { - return java.util.Collections.unmodifiableList(category_); - } else { - return categoryBuilder_.getMessageList(); - } - } - /** - * <code>repeated .meerkat.Category category = 1;</code> - */ - public int getCategoryCount() { - if (categoryBuilder_ == null) { - return category_.size(); - } else { - return categoryBuilder_.getCount(); - } - } - /** - * <code>repeated .meerkat.Category category = 1;</code> - */ - public meerkat.protobuf.Voting.Category getCategory(int index) { - if (categoryBuilder_ == null) { - return category_.get(index); - } else { - return categoryBuilder_.getMessage(index); - } - } - /** - * <code>repeated .meerkat.Category category = 1;</code> - */ - public Builder setCategory( - int index, meerkat.protobuf.Voting.Category value) { - if (categoryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCategoryIsMutable(); - category_.set(index, value); - onChanged(); - } else { - categoryBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .meerkat.Category category = 1;</code> - */ - public Builder setCategory( - int index, meerkat.protobuf.Voting.Category.Builder builderForValue) { - if (categoryBuilder_ == null) { - ensureCategoryIsMutable(); - category_.set(index, builderForValue.build()); - onChanged(); - } else { - categoryBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .meerkat.Category category = 1;</code> - */ - public Builder addCategory(meerkat.protobuf.Voting.Category value) { - if (categoryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCategoryIsMutable(); - category_.add(value); - onChanged(); - } else { - categoryBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .meerkat.Category category = 1;</code> - */ - public Builder addCategory( - int index, meerkat.protobuf.Voting.Category value) { - if (categoryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCategoryIsMutable(); - category_.add(index, value); - onChanged(); - } else { - categoryBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .meerkat.Category category = 1;</code> - */ - public Builder addCategory( - meerkat.protobuf.Voting.Category.Builder builderForValue) { - if (categoryBuilder_ == null) { - ensureCategoryIsMutable(); - category_.add(builderForValue.build()); - onChanged(); - } else { - categoryBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .meerkat.Category category = 1;</code> - */ - public Builder addCategory( - int index, meerkat.protobuf.Voting.Category.Builder builderForValue) { - if (categoryBuilder_ == null) { - ensureCategoryIsMutable(); - category_.add(index, builderForValue.build()); - onChanged(); - } else { - categoryBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .meerkat.Category category = 1;</code> - */ - public Builder addAllCategory( - java.lang.Iterable<? extends meerkat.protobuf.Voting.Category> values) { - if (categoryBuilder_ == null) { - ensureCategoryIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, category_); - onChanged(); - } else { - categoryBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .meerkat.Category category = 1;</code> - */ - public Builder clearCategory() { - if (categoryBuilder_ == null) { - category_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - categoryBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .meerkat.Category category = 1;</code> - */ - public Builder removeCategory(int index) { - if (categoryBuilder_ == null) { - ensureCategoryIsMutable(); - category_.remove(index); - onChanged(); - } else { - categoryBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .meerkat.Category category = 1;</code> - */ - public meerkat.protobuf.Voting.Category.Builder getCategoryBuilder( - int index) { - return getCategoryFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .meerkat.Category category = 1;</code> - */ - public meerkat.protobuf.Voting.CategoryOrBuilder getCategoryOrBuilder( - int index) { - if (categoryBuilder_ == null) { - return category_.get(index); } else { - return categoryBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .meerkat.Category category = 1;</code> - */ - public java.util.List<? extends meerkat.protobuf.Voting.CategoryOrBuilder> - getCategoryOrBuilderList() { - if (categoryBuilder_ != null) { - return categoryBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(category_); - } - } - /** - * <code>repeated .meerkat.Category category = 1;</code> - */ - public meerkat.protobuf.Voting.Category.Builder addCategoryBuilder() { - return getCategoryFieldBuilder().addBuilder( - meerkat.protobuf.Voting.Category.getDefaultInstance()); - } - /** - * <code>repeated .meerkat.Category category = 1;</code> - */ - public meerkat.protobuf.Voting.Category.Builder addCategoryBuilder( - int index) { - return getCategoryFieldBuilder().addBuilder( - index, meerkat.protobuf.Voting.Category.getDefaultInstance()); - } - /** - * <code>repeated .meerkat.Category category = 1;</code> - */ - public java.util.List<meerkat.protobuf.Voting.Category.Builder> - getCategoryBuilderList() { - return getCategoryFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.Voting.Category, meerkat.protobuf.Voting.Category.Builder, meerkat.protobuf.Voting.CategoryOrBuilder> - getCategoryFieldBuilder() { - if (categoryBuilder_ == null) { - categoryBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.Voting.Category, meerkat.protobuf.Voting.Category.Builder, meerkat.protobuf.Voting.CategoryOrBuilder>( - category_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - category_ = null; - } - return categoryBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.CategoryChooser) - } - - // @@protoc_insertion_point(class_scope:meerkat.CategoryChooser) - private static final meerkat.protobuf.Voting.CategoryChooser DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.Voting.CategoryChooser(); - } - - public static meerkat.protobuf.Voting.CategoryChooser getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<CategoryChooser> - PARSER = new com.google.protobuf.AbstractParser<CategoryChooser>() { - public CategoryChooser parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CategoryChooser(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<CategoryChooser> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<CategoryChooser> getParserForType() { - return PARSER; - } - - public meerkat.protobuf.Voting.CategoryChooser getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SimpleCategoriesSelectionDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:meerkat.SimpleCategoriesSelectionData) - com.google.protobuf.MessageOrBuilder { - - /** - * <code>.meerkat.Category shared_defaults = 1;</code> - */ - boolean hasSharedDefaults(); - /** - * <code>.meerkat.Category shared_defaults = 1;</code> - */ - meerkat.protobuf.Voting.Category getSharedDefaults(); - /** - * <code>.meerkat.Category shared_defaults = 1;</code> - */ - meerkat.protobuf.Voting.CategoryOrBuilder getSharedDefaultsOrBuilder(); - - /** - * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> - */ - java.util.List<meerkat.protobuf.Voting.CategoryChooser> - getCategoryChooserList(); - /** - * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> - */ - meerkat.protobuf.Voting.CategoryChooser getCategoryChooser(int index); - /** - * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> - */ - int getCategoryChooserCount(); - /** - * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> - */ - java.util.List<? extends meerkat.protobuf.Voting.CategoryChooserOrBuilder> - getCategoryChooserOrBuilderList(); - /** - * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> - */ - meerkat.protobuf.Voting.CategoryChooserOrBuilder getCategoryChooserOrBuilder( - int index); - } - /** - * Protobuf type {@code meerkat.SimpleCategoriesSelectionData} - */ - public static final class SimpleCategoriesSelectionData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:meerkat.SimpleCategoriesSelectionData) - SimpleCategoriesSelectionDataOrBuilder { - // Use SimpleCategoriesSelectionData.newBuilder() to construct. - private SimpleCategoriesSelectionData(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { - super(builder); - } - private SimpleCategoriesSelectionData() { - categoryChooser_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private SimpleCategoriesSelectionData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - meerkat.protobuf.Voting.Category.Builder subBuilder = null; - if (sharedDefaults_ != null) { - subBuilder = sharedDefaults_.toBuilder(); - } - sharedDefaults_ = input.readMessage(meerkat.protobuf.Voting.Category.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sharedDefaults_); - sharedDefaults_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - categoryChooser_ = new java.util.ArrayList<meerkat.protobuf.Voting.CategoryChooser>(); - mutable_bitField0_ |= 0x00000002; - } - categoryChooser_.add( - input.readMessage(meerkat.protobuf.Voting.CategoryChooser.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - categoryChooser_ = java.util.Collections.unmodifiableList(categoryChooser_); - } - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Voting.internal_static_meerkat_SimpleCategoriesSelectionData_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Voting.internal_static_meerkat_SimpleCategoriesSelectionData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Voting.SimpleCategoriesSelectionData.class, meerkat.protobuf.Voting.SimpleCategoriesSelectionData.Builder.class); - } - - private int bitField0_; - public static final int SHARED_DEFAULTS_FIELD_NUMBER = 1; - private meerkat.protobuf.Voting.Category sharedDefaults_; - /** - * <code>.meerkat.Category shared_defaults = 1;</code> - */ - public boolean hasSharedDefaults() { - return sharedDefaults_ != null; - } - /** - * <code>.meerkat.Category shared_defaults = 1;</code> - */ - public meerkat.protobuf.Voting.Category getSharedDefaults() { - return sharedDefaults_ == null ? meerkat.protobuf.Voting.Category.getDefaultInstance() : sharedDefaults_; - } - /** - * <code>.meerkat.Category shared_defaults = 1;</code> - */ - public meerkat.protobuf.Voting.CategoryOrBuilder getSharedDefaultsOrBuilder() { - return getSharedDefaults(); - } - - public static final int CATEGORYCHOOSER_FIELD_NUMBER = 2; - private java.util.List<meerkat.protobuf.Voting.CategoryChooser> categoryChooser_; - /** - * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> - */ - public java.util.List<meerkat.protobuf.Voting.CategoryChooser> getCategoryChooserList() { - return categoryChooser_; - } - /** - * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> - */ - public java.util.List<? extends meerkat.protobuf.Voting.CategoryChooserOrBuilder> - getCategoryChooserOrBuilderList() { - return categoryChooser_; - } - /** - * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> - */ - public int getCategoryChooserCount() { - return categoryChooser_.size(); - } - /** - * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> - */ - public meerkat.protobuf.Voting.CategoryChooser getCategoryChooser(int index) { - return categoryChooser_.get(index); - } - /** - * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> - */ - public meerkat.protobuf.Voting.CategoryChooserOrBuilder getCategoryChooserOrBuilder( - int index) { - return categoryChooser_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (sharedDefaults_ != null) { - output.writeMessage(1, getSharedDefaults()); - } - for (int i = 0; i < categoryChooser_.size(); i++) { - output.writeMessage(2, categoryChooser_.get(i)); - } - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (sharedDefaults_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSharedDefaults()); - } - for (int i = 0; i < categoryChooser_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, categoryChooser_.get(i)); - } - memoizedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof meerkat.protobuf.Voting.SimpleCategoriesSelectionData)) { - return super.equals(obj); - } - meerkat.protobuf.Voting.SimpleCategoriesSelectionData other = (meerkat.protobuf.Voting.SimpleCategoriesSelectionData) obj; - - boolean result = true; - result = result && (hasSharedDefaults() == other.hasSharedDefaults()); - if (hasSharedDefaults()) { - result = result && getSharedDefaults() - .equals(other.getSharedDefaults()); - } - result = result && getCategoryChooserList() - .equals(other.getCategoryChooserList()); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasSharedDefaults()) { - hash = (37 * hash) + SHARED_DEFAULTS_FIELD_NUMBER; - hash = (53 * hash) + getSharedDefaults().hashCode(); - } - if (getCategoryChooserCount() > 0) { - hash = (37 * hash) + CATEGORYCHOOSER_FIELD_NUMBER; - hash = (53 * hash) + getCategoryChooserList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static meerkat.protobuf.Voting.SimpleCategoriesSelectionData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Voting.SimpleCategoriesSelectionData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Voting.SimpleCategoriesSelectionData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static meerkat.protobuf.Voting.SimpleCategoriesSelectionData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static meerkat.protobuf.Voting.SimpleCategoriesSelectionData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.SimpleCategoriesSelectionData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Voting.SimpleCategoriesSelectionData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.SimpleCategoriesSelectionData parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static meerkat.protobuf.Voting.SimpleCategoriesSelectionData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static meerkat.protobuf.Voting.SimpleCategoriesSelectionData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(meerkat.protobuf.Voting.SimpleCategoriesSelectionData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code meerkat.SimpleCategoriesSelectionData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:meerkat.SimpleCategoriesSelectionData) - meerkat.protobuf.Voting.SimpleCategoriesSelectionDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return meerkat.protobuf.Voting.internal_static_meerkat_SimpleCategoriesSelectionData_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return meerkat.protobuf.Voting.internal_static_meerkat_SimpleCategoriesSelectionData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - meerkat.protobuf.Voting.SimpleCategoriesSelectionData.class, meerkat.protobuf.Voting.SimpleCategoriesSelectionData.Builder.class); - } - - // Construct using meerkat.protobuf.Voting.SimpleCategoriesSelectionData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getCategoryChooserFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (sharedDefaultsBuilder_ == null) { - sharedDefaults_ = null; - } else { - sharedDefaults_ = null; - sharedDefaultsBuilder_ = null; - } - if (categoryChooserBuilder_ == null) { - categoryChooser_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - categoryChooserBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return meerkat.protobuf.Voting.internal_static_meerkat_SimpleCategoriesSelectionData_descriptor; - } - - public meerkat.protobuf.Voting.SimpleCategoriesSelectionData getDefaultInstanceForType() { - return meerkat.protobuf.Voting.SimpleCategoriesSelectionData.getDefaultInstance(); - } - - public meerkat.protobuf.Voting.SimpleCategoriesSelectionData build() { - meerkat.protobuf.Voting.SimpleCategoriesSelectionData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public meerkat.protobuf.Voting.SimpleCategoriesSelectionData buildPartial() { - meerkat.protobuf.Voting.SimpleCategoriesSelectionData result = new meerkat.protobuf.Voting.SimpleCategoriesSelectionData(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (sharedDefaultsBuilder_ == null) { - result.sharedDefaults_ = sharedDefaults_; - } else { - result.sharedDefaults_ = sharedDefaultsBuilder_.build(); - } - if (categoryChooserBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { - categoryChooser_ = java.util.Collections.unmodifiableList(categoryChooser_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.categoryChooser_ = categoryChooser_; - } else { - result.categoryChooser_ = categoryChooserBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof meerkat.protobuf.Voting.SimpleCategoriesSelectionData) { - return mergeFrom((meerkat.protobuf.Voting.SimpleCategoriesSelectionData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(meerkat.protobuf.Voting.SimpleCategoriesSelectionData other) { - if (other == meerkat.protobuf.Voting.SimpleCategoriesSelectionData.getDefaultInstance()) return this; - if (other.hasSharedDefaults()) { - mergeSharedDefaults(other.getSharedDefaults()); - } - if (categoryChooserBuilder_ == null) { - if (!other.categoryChooser_.isEmpty()) { - if (categoryChooser_.isEmpty()) { - categoryChooser_ = other.categoryChooser_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureCategoryChooserIsMutable(); - categoryChooser_.addAll(other.categoryChooser_); - } - onChanged(); - } - } else { - if (!other.categoryChooser_.isEmpty()) { - if (categoryChooserBuilder_.isEmpty()) { - categoryChooserBuilder_.dispose(); - categoryChooserBuilder_ = null; - categoryChooser_ = other.categoryChooser_; - bitField0_ = (bitField0_ & ~0x00000002); - categoryChooserBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCategoryChooserFieldBuilder() : null; - } else { - categoryChooserBuilder_.addAllMessages(other.categoryChooser_); - } - } - } - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - meerkat.protobuf.Voting.SimpleCategoriesSelectionData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (meerkat.protobuf.Voting.SimpleCategoriesSelectionData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private meerkat.protobuf.Voting.Category sharedDefaults_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Voting.Category, meerkat.protobuf.Voting.Category.Builder, meerkat.protobuf.Voting.CategoryOrBuilder> sharedDefaultsBuilder_; - /** - * <code>.meerkat.Category shared_defaults = 1;</code> - */ - public boolean hasSharedDefaults() { - return sharedDefaultsBuilder_ != null || sharedDefaults_ != null; - } - /** - * <code>.meerkat.Category shared_defaults = 1;</code> - */ - public meerkat.protobuf.Voting.Category getSharedDefaults() { - if (sharedDefaultsBuilder_ == null) { - return sharedDefaults_ == null ? meerkat.protobuf.Voting.Category.getDefaultInstance() : sharedDefaults_; - } else { - return sharedDefaultsBuilder_.getMessage(); - } - } - /** - * <code>.meerkat.Category shared_defaults = 1;</code> - */ - public Builder setSharedDefaults(meerkat.protobuf.Voting.Category value) { - if (sharedDefaultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sharedDefaults_ = value; - onChanged(); - } else { - sharedDefaultsBuilder_.setMessage(value); - } - - return this; - } - /** - * <code>.meerkat.Category shared_defaults = 1;</code> - */ - public Builder setSharedDefaults( - meerkat.protobuf.Voting.Category.Builder builderForValue) { - if (sharedDefaultsBuilder_ == null) { - sharedDefaults_ = builderForValue.build(); - onChanged(); - } else { - sharedDefaultsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * <code>.meerkat.Category shared_defaults = 1;</code> - */ - public Builder mergeSharedDefaults(meerkat.protobuf.Voting.Category value) { - if (sharedDefaultsBuilder_ == null) { - if (sharedDefaults_ != null) { - sharedDefaults_ = - meerkat.protobuf.Voting.Category.newBuilder(sharedDefaults_).mergeFrom(value).buildPartial(); - } else { - sharedDefaults_ = value; - } - onChanged(); - } else { - sharedDefaultsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * <code>.meerkat.Category shared_defaults = 1;</code> - */ - public Builder clearSharedDefaults() { - if (sharedDefaultsBuilder_ == null) { - sharedDefaults_ = null; - onChanged(); - } else { - sharedDefaults_ = null; - sharedDefaultsBuilder_ = null; - } - - return this; - } - /** - * <code>.meerkat.Category shared_defaults = 1;</code> - */ - public meerkat.protobuf.Voting.Category.Builder getSharedDefaultsBuilder() { - - onChanged(); - return getSharedDefaultsFieldBuilder().getBuilder(); - } - /** - * <code>.meerkat.Category shared_defaults = 1;</code> - */ - public meerkat.protobuf.Voting.CategoryOrBuilder getSharedDefaultsOrBuilder() { - if (sharedDefaultsBuilder_ != null) { - return sharedDefaultsBuilder_.getMessageOrBuilder(); - } else { - return sharedDefaults_ == null ? - meerkat.protobuf.Voting.Category.getDefaultInstance() : sharedDefaults_; - } - } - /** - * <code>.meerkat.Category shared_defaults = 1;</code> - */ - private com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Voting.Category, meerkat.protobuf.Voting.Category.Builder, meerkat.protobuf.Voting.CategoryOrBuilder> - getSharedDefaultsFieldBuilder() { - if (sharedDefaultsBuilder_ == null) { - sharedDefaultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - meerkat.protobuf.Voting.Category, meerkat.protobuf.Voting.Category.Builder, meerkat.protobuf.Voting.CategoryOrBuilder>( - getSharedDefaults(), - getParentForChildren(), - isClean()); - sharedDefaults_ = null; - } - return sharedDefaultsBuilder_; - } - - private java.util.List<meerkat.protobuf.Voting.CategoryChooser> categoryChooser_ = - java.util.Collections.emptyList(); - private void ensureCategoryChooserIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - categoryChooser_ = new java.util.ArrayList<meerkat.protobuf.Voting.CategoryChooser>(categoryChooser_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.Voting.CategoryChooser, meerkat.protobuf.Voting.CategoryChooser.Builder, meerkat.protobuf.Voting.CategoryChooserOrBuilder> categoryChooserBuilder_; - - /** - * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> - */ - public java.util.List<meerkat.protobuf.Voting.CategoryChooser> getCategoryChooserList() { - if (categoryChooserBuilder_ == null) { - return java.util.Collections.unmodifiableList(categoryChooser_); - } else { - return categoryChooserBuilder_.getMessageList(); - } - } - /** - * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> - */ - public int getCategoryChooserCount() { - if (categoryChooserBuilder_ == null) { - return categoryChooser_.size(); - } else { - return categoryChooserBuilder_.getCount(); - } - } - /** - * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> - */ - public meerkat.protobuf.Voting.CategoryChooser getCategoryChooser(int index) { - if (categoryChooserBuilder_ == null) { - return categoryChooser_.get(index); - } else { - return categoryChooserBuilder_.getMessage(index); - } - } - /** - * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> - */ - public Builder setCategoryChooser( - int index, meerkat.protobuf.Voting.CategoryChooser value) { - if (categoryChooserBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCategoryChooserIsMutable(); - categoryChooser_.set(index, value); - onChanged(); - } else { - categoryChooserBuilder_.setMessage(index, value); - } - return this; - } - /** - * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> - */ - public Builder setCategoryChooser( - int index, meerkat.protobuf.Voting.CategoryChooser.Builder builderForValue) { - if (categoryChooserBuilder_ == null) { - ensureCategoryChooserIsMutable(); - categoryChooser_.set(index, builderForValue.build()); - onChanged(); - } else { - categoryChooserBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> - */ - public Builder addCategoryChooser(meerkat.protobuf.Voting.CategoryChooser value) { - if (categoryChooserBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCategoryChooserIsMutable(); - categoryChooser_.add(value); - onChanged(); - } else { - categoryChooserBuilder_.addMessage(value); - } - return this; - } - /** - * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> - */ - public Builder addCategoryChooser( - int index, meerkat.protobuf.Voting.CategoryChooser value) { - if (categoryChooserBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCategoryChooserIsMutable(); - categoryChooser_.add(index, value); - onChanged(); - } else { - categoryChooserBuilder_.addMessage(index, value); - } - return this; - } - /** - * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> - */ - public Builder addCategoryChooser( - meerkat.protobuf.Voting.CategoryChooser.Builder builderForValue) { - if (categoryChooserBuilder_ == null) { - ensureCategoryChooserIsMutable(); - categoryChooser_.add(builderForValue.build()); - onChanged(); - } else { - categoryChooserBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> - */ - public Builder addCategoryChooser( - int index, meerkat.protobuf.Voting.CategoryChooser.Builder builderForValue) { - if (categoryChooserBuilder_ == null) { - ensureCategoryChooserIsMutable(); - categoryChooser_.add(index, builderForValue.build()); - onChanged(); - } else { - categoryChooserBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> - */ - public Builder addAllCategoryChooser( - java.lang.Iterable<? extends meerkat.protobuf.Voting.CategoryChooser> values) { - if (categoryChooserBuilder_ == null) { - ensureCategoryChooserIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, categoryChooser_); - onChanged(); - } else { - categoryChooserBuilder_.addAllMessages(values); - } - return this; - } - /** - * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> - */ - public Builder clearCategoryChooser() { - if (categoryChooserBuilder_ == null) { - categoryChooser_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - categoryChooserBuilder_.clear(); - } - return this; - } - /** - * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> - */ - public Builder removeCategoryChooser(int index) { - if (categoryChooserBuilder_ == null) { - ensureCategoryChooserIsMutable(); - categoryChooser_.remove(index); - onChanged(); - } else { - categoryChooserBuilder_.remove(index); - } - return this; - } - /** - * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> - */ - public meerkat.protobuf.Voting.CategoryChooser.Builder getCategoryChooserBuilder( - int index) { - return getCategoryChooserFieldBuilder().getBuilder(index); - } - /** - * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> - */ - public meerkat.protobuf.Voting.CategoryChooserOrBuilder getCategoryChooserOrBuilder( - int index) { - if (categoryChooserBuilder_ == null) { - return categoryChooser_.get(index); } else { - return categoryChooserBuilder_.getMessageOrBuilder(index); - } - } - /** - * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> - */ - public java.util.List<? extends meerkat.protobuf.Voting.CategoryChooserOrBuilder> - getCategoryChooserOrBuilderList() { - if (categoryChooserBuilder_ != null) { - return categoryChooserBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(categoryChooser_); - } - } - /** - * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> - */ - public meerkat.protobuf.Voting.CategoryChooser.Builder addCategoryChooserBuilder() { - return getCategoryChooserFieldBuilder().addBuilder( - meerkat.protobuf.Voting.CategoryChooser.getDefaultInstance()); - } - /** - * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> - */ - public meerkat.protobuf.Voting.CategoryChooser.Builder addCategoryChooserBuilder( - int index) { - return getCategoryChooserFieldBuilder().addBuilder( - index, meerkat.protobuf.Voting.CategoryChooser.getDefaultInstance()); - } - /** - * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> - */ - public java.util.List<meerkat.protobuf.Voting.CategoryChooser.Builder> - getCategoryChooserBuilderList() { - return getCategoryChooserFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.Voting.CategoryChooser, meerkat.protobuf.Voting.CategoryChooser.Builder, meerkat.protobuf.Voting.CategoryChooserOrBuilder> - getCategoryChooserFieldBuilder() { - if (categoryChooserBuilder_ == null) { - categoryChooserBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - meerkat.protobuf.Voting.CategoryChooser, meerkat.protobuf.Voting.CategoryChooser.Builder, meerkat.protobuf.Voting.CategoryChooserOrBuilder>( - categoryChooser_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); - categoryChooser_ = null; - } - return categoryChooserBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; - } - - - // @@protoc_insertion_point(builder_scope:meerkat.SimpleCategoriesSelectionData) - } - - // @@protoc_insertion_point(class_scope:meerkat.SimpleCategoriesSelectionData) - private static final meerkat.protobuf.Voting.SimpleCategoriesSelectionData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new meerkat.protobuf.Voting.SimpleCategoriesSelectionData(); - } - - public static meerkat.protobuf.Voting.SimpleCategoriesSelectionData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser<SimpleCategoriesSelectionData> - PARSER = new com.google.protobuf.AbstractParser<SimpleCategoriesSelectionData>() { - public SimpleCategoriesSelectionData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SimpleCategoriesSelectionData(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser<SimpleCategoriesSelectionData> parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser<SimpleCategoriesSelectionData> getParserForType() { - return PARSER; - } - - public meerkat.protobuf.Voting.SimpleCategoriesSelectionData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_UIElement_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_UIElement_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_BallotQuestion_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_BallotQuestion_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_QuestionCluster_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_QuestionCluster_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_Channel_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_Channel_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_BallotAnswer_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_BallotAnswer_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_PlaintextBallot_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_PlaintextBallot_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_EncryptedBallot_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_EncryptedBallot_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_SignedEncryptedBallot_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_SignedEncryptedBallot_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_BallotSecrets_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_BallotSecrets_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_BoothParams_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_BoothParams_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_BoothSystemMessages_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_BoothSystemMessages_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_BoothSystemMessages_SystemMessageEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_BoothSystemMessages_SystemMessageEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_BallotAnswerTranslationTable_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_BallotAnswerTranslationTable_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_BulletinBoardClientParams_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_BulletinBoardClientParams_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_ElectionParams_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_ElectionParams_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_Category_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_Category_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_CategoryChooser_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_CategoryChooser_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_meerkat_SimpleCategoriesSelectionData_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_meerkat_SimpleCategoriesSelectionData_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024meerkat/voting.proto\022\007meerkat\032\024meerkat" + - "/crypto.proto\"C\n\tUIElement\022(\n\004type\030\001 \001(\016" + - "2\032.meerkat.UIElementDataType\022\014\n\004data\030\002 \001" + - "(\014\"\231\001\n\016BallotQuestion\022\024\n\014is_mandatory\030\001 " + - "\001(\010\022$\n\010question\030\002 \001(\0132\022.meerkat.UIElemen" + - "t\022\'\n\013description\030\003 \001(\0132\022.meerkat.UIEleme" + - "nt\022\"\n\006answer\030\004 \003(\0132\022.meerkat.UIElement\"Z" + - "\n\017QuestionCluster\022/\n\023cluster_description" + - "\030\001 \001(\0132\022.meerkat.UIElement\022\026\n\016question_i" + - "ndex\030\002 \003(\005\"Q\n\007Channel\022/\n\023channel_descrip", - "tion\030\001 \001(\0132\022.meerkat.UIElement\022\025\n\rcluste" + - "r_index\030\002 \003(\005\"\"\n\014BallotAnswer\022\022\n\006answer\030" + - "\001 \003(\022B\002\020\001\"l\n\017PlaintextBallot\022\025\n\rserial_n" + - "umber\030\001 \001(\004\022\032\n\022channel_identifier\030\002 \001(\014\022" + - "&\n\007answers\030\003 \003(\0132\025.meerkat.BallotAnswer\"" + - "_\n\017EncryptedBallot\022\025\n\rserial_number\030\001 \001(" + - "\004\0225\n\004data\030\002 \001(\0132\'.meerkat.Rerandomizable" + - "EncryptedMessage\"r\n\025SignedEncryptedBallo" + - "t\0222\n\020encrypted_ballot\030\001 \001(\0132\030.meerkat.En" + - "cryptedBallot\022%\n\tsignature\030\002 \001(\0132\022.meerk", - "at.Signature\"\264\001\n\rBallotSecrets\0222\n\020plaint" + - "ext_ballot\030\001 \001(\0132\030.meerkat.PlaintextBall" + - "ot\022<\n\025encryption_randomness\030\002 \001(\0132\035.meer" + - "kat.EncryptionRandomness\0221\n\005proof\030\003 \001(\0132" + - "\".meerkat.RandomnessGenerationProof\"M\n\013B" + - "oothParams\022>\n\023pscVerificationKeys\030\001 \003(\0132" + - "!.meerkat.SignatureVerificationKey\"\250\001\n\023B" + - "oothSystemMessages\022G\n\016system_message\030\001 \003" + - "(\0132/.meerkat.BoothSystemMessages.SystemM" + - "essageEntry\032H\n\022SystemMessageEntry\022\013\n\003key", - "\030\001 \001(\t\022!\n\005value\030\002 \001(\0132\022.meerkat.UIElemen" + - "t:\0028\001\",\n\034BallotAnswerTranslationTable\022\014\n" + - "\004data\030\001 \001(\014\"P\n\031BulletinBoardClientParams" + - "\022\034\n\024bulletinBoardAddress\030\001 \003(\t\022\025\n\rminRed" + - "undancy\030\002 \001(\002\"\377\003\n\016ElectionParams\022B\n\027trus" + - "teeVerificationKeys\030\001 \003(\0132!.meerkat.Sign" + - "atureVerificationKey\022!\n\031trusteeSignature" + - "Threshold\030\002 \001(\r\0229\n\023ballotEncryptionKey\030\003" + - " \001(\0132\034.meerkat.EncryptionPublicKey\022@\n\025mi" + - "xerVerificationKeys\030\004 \003(\0132!.meerkat.Sign", - "atureVerificationKey\022\026\n\016mixerThreshold\030\005" + - " \001(\r\0229\n\030channel_choice_questions\030\006 \003(\0132\027" + - ".meerkat.BallotQuestion\022>\n\016selection_dat" + - "a\030\007 \001(\0132&.meerkat.SimpleCategoriesSelect" + - "ionData\022/\n\016race_questions\030\010 \003(\0132\027.meerka" + - "t.BallotQuestion\022E\n\031bulletinBoardClientP" + - "arams\030\t \001(\0132\".meerkat.BulletinBoardClien" + - "tParams\"!\n\010Category\022\025\n\rquestionIndex\030\001 \003" + - "(\r\"6\n\017CategoryChooser\022#\n\010category\030\001 \003(\0132" + - "\021.meerkat.Category\"~\n\035SimpleCategoriesSe", - "lectionData\022*\n\017shared_defaults\030\001 \001(\0132\021.m" + - "eerkat.Category\0221\n\017categoryChooser\030\002 \003(\013" + - "2\030.meerkat.CategoryChooser*3\n\021UIElementD" + - "ataType\022\010\n\004TEXT\020\000\022\t\n\005IMAGE\020\001\022\t\n\005VOICE\020\002*" + - "F\n\014QuestionType\022\023\n\017MULTIPLE_CHOICE\020\000\022\026\n\022" + - "MULTIPLE_SELECTION\020\001\022\t\n\005ORDER\020\002B\022\n\020meerk" + - "at.protobufb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - meerkat.protobuf.Crypto.getDescriptor(), - }, assigner); - internal_static_meerkat_UIElement_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_meerkat_UIElement_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_UIElement_descriptor, - new java.lang.String[] { "Type", "Data", }); - internal_static_meerkat_BallotQuestion_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_meerkat_BallotQuestion_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_BallotQuestion_descriptor, - new java.lang.String[] { "IsMandatory", "Question", "Description", "Answer", }); - internal_static_meerkat_QuestionCluster_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_meerkat_QuestionCluster_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_QuestionCluster_descriptor, - new java.lang.String[] { "ClusterDescription", "QuestionIndex", }); - internal_static_meerkat_Channel_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_meerkat_Channel_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_Channel_descriptor, - new java.lang.String[] { "ChannelDescription", "ClusterIndex", }); - internal_static_meerkat_BallotAnswer_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_meerkat_BallotAnswer_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_BallotAnswer_descriptor, - new java.lang.String[] { "Answer", }); - internal_static_meerkat_PlaintextBallot_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_meerkat_PlaintextBallot_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_PlaintextBallot_descriptor, - new java.lang.String[] { "SerialNumber", "ChannelIdentifier", "Answers", }); - internal_static_meerkat_EncryptedBallot_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_meerkat_EncryptedBallot_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_EncryptedBallot_descriptor, - new java.lang.String[] { "SerialNumber", "Data", }); - internal_static_meerkat_SignedEncryptedBallot_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_meerkat_SignedEncryptedBallot_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_SignedEncryptedBallot_descriptor, - new java.lang.String[] { "EncryptedBallot", "Signature", }); - internal_static_meerkat_BallotSecrets_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_meerkat_BallotSecrets_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_BallotSecrets_descriptor, - new java.lang.String[] { "PlaintextBallot", "EncryptionRandomness", "Proof", }); - internal_static_meerkat_BoothParams_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_meerkat_BoothParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_BoothParams_descriptor, - new java.lang.String[] { "PscVerificationKeys", }); - internal_static_meerkat_BoothSystemMessages_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_meerkat_BoothSystemMessages_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_BoothSystemMessages_descriptor, - new java.lang.String[] { "SystemMessage", }); - internal_static_meerkat_BoothSystemMessages_SystemMessageEntry_descriptor = - internal_static_meerkat_BoothSystemMessages_descriptor.getNestedTypes().get(0); - internal_static_meerkat_BoothSystemMessages_SystemMessageEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_BoothSystemMessages_SystemMessageEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_meerkat_BallotAnswerTranslationTable_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_meerkat_BallotAnswerTranslationTable_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_BallotAnswerTranslationTable_descriptor, - new java.lang.String[] { "Data", }); - internal_static_meerkat_BulletinBoardClientParams_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_meerkat_BulletinBoardClientParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_BulletinBoardClientParams_descriptor, - new java.lang.String[] { "BulletinBoardAddress", "MinRedundancy", }); - internal_static_meerkat_ElectionParams_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_meerkat_ElectionParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_ElectionParams_descriptor, - new java.lang.String[] { "TrusteeVerificationKeys", "TrusteeSignatureThreshold", "BallotEncryptionKey", "MixerVerificationKeys", "MixerThreshold", "ChannelChoiceQuestions", "SelectionData", "RaceQuestions", "BulletinBoardClientParams", }); - internal_static_meerkat_Category_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_meerkat_Category_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_Category_descriptor, - new java.lang.String[] { "QuestionIndex", }); - internal_static_meerkat_CategoryChooser_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_meerkat_CategoryChooser_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_CategoryChooser_descriptor, - new java.lang.String[] { "Category", }); - internal_static_meerkat_SimpleCategoriesSelectionData_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_meerkat_SimpleCategoriesSelectionData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_meerkat_SimpleCategoriesSelectionData_descriptor, - new java.lang.String[] { "SharedDefaults", "CategoryChooser", }); - meerkat.protobuf.Crypto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/android-scanner/src/main/java/meerkat/rest/Constants.java b/android-scanner/src/main/java/meerkat/rest/Constants.java deleted file mode 100644 index 2c04248..0000000 --- a/android-scanner/src/main/java/meerkat/rest/Constants.java +++ /dev/null @@ -1,8 +0,0 @@ -package meerkat.rest; - -/** - * Created by talm on 10/11/15. - */ -public interface Constants { - public static final String MEDIATYPE_PROTOBUF = "application/x-protobuf"; -} diff --git a/build.gradle-template b/build.gradle-template index 9832d46..6b5c5df 100644 --- a/build.gradle-template +++ b/build.gradle-template @@ -182,13 +182,15 @@ repositories { mavenCentral() } -task "info" << { +task "info" { + doLast { println "Project: ${project.name}" -println "Description: ${project.description}" + println "Description: ${project.description}" println "--------------------------" println "GroupId: $groupId" println "Version: $version (${isSnapshot ? 'snapshot' : 'release'})" println "" + } } info.description 'Print some information about project parameters' diff --git a/meerkat-common/build.gradle b/meerkat-common/build.gradle index e019d59..680f01b 100644 --- a/meerkat-common/build.gradle +++ b/meerkat-common/build.gradle @@ -15,6 +15,11 @@ apply plugin: 'maven-publish' mainClassName='Demo' +// We may need to use this code from Java. +targetCompatibility = '1.7' +sourceCompatibility = '1.7' + + // Is this a snapshot version? ext { isSnapshot = false } diff --git a/polling-station/build.gradle b/polling-station/build.gradle index bf1c1a9..f397d60 100644 --- a/polling-station/build.gradle +++ b/polling-station/build.gradle @@ -41,6 +41,7 @@ dependencies { // Meerkat common compile project(':meerkat-common') compile project(':restful-api-common') + compile project(':scanner-api-common') // Servlets compile 'org.eclipse.jetty:jetty-server:9.3.+' diff --git a/restful-api-common/build.gradle b/restful-api-common/build.gradle index 07ef0af..9cd71e6 100644 --- a/restful-api-common/build.gradle +++ b/restful-api-common/build.gradle @@ -14,6 +14,11 @@ apply plugin: 'idea' apply plugin: 'maven-publish' +// We may need to use this code from Java. +targetCompatibility = '1.7' +sourceCompatibility = '1.7' + + // Is this a snapshot version? ext { isSnapshot = false } diff --git a/scanner-api-common/build.gradle b/scanner-api-common/build.gradle new file mode 100644 index 0000000..a91acd0 --- /dev/null +++ b/scanner-api-common/build.gradle @@ -0,0 +1,233 @@ + +plugins { + id "us.kirchmeier.capsule" version "1.0.2" + id 'com.google.protobuf' version '0.8.0' +} + +apply plugin: 'java' +apply plugin: 'eclipse' +apply plugin: 'idea' + +apply plugin: 'maven-publish' + +// Uncomment the lines below to define an application +// (this will also allow you to build a "fatCapsule" which includes +// the entire application, including all dependencies in a single jar) +//apply plugin: 'application' +//mainClassName='your.main.ApplicationClass' + + +// We may need to use this code from Java. +targetCompatibility = '1.7' +sourceCompatibility = '1.7' + + +// Is this a snapshot version? +ext { isSnapshot = false } + +ext { + groupId = 'org.factcenter.meerkat' + nexusRepository = "https://cs.idc.ac.il/nexus/content/groups/${isSnapshot ? 'unstable' : 'public'}/" + + // Credentials for IDC nexus repositories (needed only for using unstable repositories and publishing) + // Should be set in ${HOME}/.gradle/gradle.properties + + // Credentials for publishing repositories + publishRepository = "https://cs.idc.ac.il/nexus/content/repositories/${project.isSnapshot ? 'snapshots' : 'releases'}" + publishUser = project.hasProperty('publishUser') ? project.property('publishUser') : "" + publishPassword = project.hasProperty('publishPassword') ? project.property('publishPassword') : "" +} + +description = "Common files for polling-station scanner client API" + +// Your project version +version = "0.0" + +version += "${isSnapshot ? '-SNAPSHOT' : ''}" + + +dependencies { + // Meerkat common + compile project(':meerkat-common') + compile project(':restful-api-common') + + // Logging + compile 'org.slf4j:slf4j-api:1.7.7' + runtime 'ch.qos.logback:logback-classic:1.1.2' + runtime 'ch.qos.logback:logback-core:1.1.2' + + // Google protobufs + compile 'com.google.protobuf:protobuf-java:3.+' + + testCompile 'junit:junit:4.+' + + runtime 'org.codehaus.groovy:groovy:2.4.+' +} + + +/*==== You probably don't have to edit below this line =======*/ + +// Setup test configuration that can appear as a dependency in +// other subprojects +configurations { + testOutput.extendsFrom (testCompile) +} + +task testJar(type: Jar, dependsOn: testClasses) { + classifier = 'tests' + from sourceSets.test.output +} + +artifacts { + testOutput testJar +} + +// The run task added by the application plugin +// is also of type JavaExec. +tasks.withType(JavaExec) { + // Assign all Java system properties from + // the command line to the JavaExec task. + systemProperties System.properties +} + + +protobuf { + // Configure the protoc executable + protoc { + // Download from repositories + artifact = 'com.google.protobuf:protoc:3.+' + } +} + + +idea { + module { + project.sourceSets.each { sourceSet -> + + def srcDir = "${protobuf.generatedFilesBaseDir}/$sourceSet.name/java" + + println "Adding $srcDir" + // add protobuf generated sources to generated source dir. + if ("test".equals(sourceSet.name)) { + testSourceDirs += file(srcDir) + } else { + sourceDirs += file(srcDir) + } + generatedSourceDirs += file(srcDir) + + } + + // Don't exclude build directory + excludeDirs -= file(buildDir) + } +} + + +/*=================================== + * "Fat" Build targets + *===================================*/ + + +if (project.hasProperty('mainClassName') && (mainClassName != null)) { + + task mavenCapsule(type: MavenCapsule) { + description = "Generate a capsule jar that automatically downloads and caches dependencies when run." + applicationClass mainClassName + destinationDir = buildDir + } + + task fatCapsule(type: FatCapsule) { + description = "Generate a single capsule jar containing everything. Use -Pfatmain=... to override main class" + + destinationDir = buildDir + + def fatMain + + if (this.hasProperty('fatmain')) { + fatMain = fatmain + appendix = "fat-${fatMain}" + } else { + fatMain = mainClassName + appendix = "fat" + } + + applicationClass fatMain + + def testJar = this.hasProperty('test') + + if (testJar) { + from sourceSets.test.output + } + } +} + + +/*=================================== + * Repositories + *===================================*/ + +repositories { + + // Prefer the local nexus repository (it may have 3rd party artifacts not found in mavenCentral) + maven { + url nexusRepository + + if (isSnapshot) { + credentials { username + password + + username nexusUser + password nexusPassword + } + } + } + + // Use local maven repository + mavenLocal() + + // Use 'maven central' for other dependencies. + mavenCentral() +} + +task "info" { + doLast { + println "Project: ${project.name}" + println "Description: ${project.description}" + println "--------------------------" + println "GroupId: $groupId" + println "Version: $version (${isSnapshot ? 'snapshot' : 'release'})" + println "" + } +} +info.description 'Print some information about project parameters' + +/*=================================== + * Publishing + *===================================*/ + +publishing { + publications { + mavenJava(MavenPublication) { + groupId project.groupId + pom.withXml { + asNode().appendNode('description', project.description) + } + from project.components.java + + } + } + repositories { + maven { + url publishRepository + credentials { username + password + + username publishUser + password publishPassword + } + } + } +} + + + diff --git a/scanner-api-common/gradlew b/scanner-api-common/gradlew new file mode 120000 index 0000000..502f5a2 --- /dev/null +++ b/scanner-api-common/gradlew @@ -0,0 +1 @@ +../gradlew \ No newline at end of file diff --git a/polling-station/src/main/java/meerkat/pollingstation/ScannerClientAPI.java b/scanner-api-common/src/main/java/meerkat/pollingstation/ScannerClientAPI.java similarity index 100% rename from polling-station/src/main/java/meerkat/pollingstation/ScannerClientAPI.java rename to scanner-api-common/src/main/java/meerkat/pollingstation/ScannerClientAPI.java diff --git a/settings.gradle b/settings.gradle index 0ce23a1..e541b14 100644 --- a/settings.gradle +++ b/settings.gradle @@ -3,6 +3,7 @@ include 'voting-booth' include 'bulletin-board-server' include 'polling-station' include 'restful-api-common' +include 'scanner-api-common' include 'mixer' include 'bulletin-board-client' include 'distributed-key-generation'