From 61b52574b95fd97bb2452cb0c0ec7c1f73a6b0df Mon Sep 17 00:00:00 2001 From: LINCKODE Date: Sat, 14 Sep 2024 01:19:14 +0300 Subject: [PATCH] Proto --- build.gradle | 34 +- .../org/qubic/archiver/proto/Computors.java | 816 -------- .../archiver/proto/ComputorsOrBuilder.java | 52 - .../archiver/proto/GetChainHashRequest.java | 483 ----- .../proto/GetChainHashRequestOrBuilder.java | 15 - .../archiver/proto/GetChainHashResponse.java | 557 ----- .../proto/GetChainHashResponseOrBuilder.java | 21 - .../archiver/proto/GetComputorsRequest.java | 483 ----- .../proto/GetComputorsRequestOrBuilder.java | 15 - .../archiver/proto/GetComputorsResponse.java | 607 ------ .../proto/GetComputorsResponseOrBuilder.java | 24 - .../proto/GetHealthCheckResponse.java | 484 ----- .../GetHealthCheckResponseOrBuilder.java | 15 - ...dentityTransfersInTickRangeResponseV2.java | 770 ------- ...ansfersInTickRangeResponseV2OrBuilder.java | 33 - .../archiver/proto/GetLatestTickResponse.java | 483 ----- .../proto/GetLatestTickResponseOrBuilder.java | 15 - .../proto/GetQuorumTickDataRequest.java | 483 ----- .../GetQuorumTickDataRequestOrBuilder.java | 15 - .../proto/GetQuorumTickDataResponse.java | 607 ------ .../GetQuorumTickDataResponseOrBuilder.java | 24 - .../GetQuorumTickDataResponseStored.java | 607 ------ ...QuorumTickDataResponseStoredOrBuilder.java | 24 - .../GetSendManyTransactionRequestV2.java | 557 ----- ...SendManyTransactionRequestV2OrBuilder.java | 21 - .../GetSendManyTransactionResponseV2.java | 737 ------- ...endManyTransactionResponseV2OrBuilder.java | 36 - .../archiver/proto/GetStatusResponse.java | 1844 ----------------- .../proto/GetStatusResponseOrBuilder.java | 140 -- .../GetTickApprovedTransactionsRequest.java | 483 ----- ...kApprovedTransactionsRequestOrBuilder.java | 15 - .../GetTickApprovedTransactionsResponse.java | 770 ------- ...ApprovedTransactionsResponseOrBuilder.java | 33 - .../archiver/proto/GetTickDataRequest.java | 483 ----- .../proto/GetTickDataRequestOrBuilder.java | 15 - .../archiver/proto/GetTickDataResponse.java | 607 ------ .../proto/GetTickDataResponseOrBuilder.java | 24 - .../archiver/proto/GetTickRequestV2.java | 491 ----- .../proto/GetTickRequestV2OrBuilder.java | 15 - .../archiver/proto/GetTickResponseV2.java | 607 ------ .../proto/GetTickResponseV2OrBuilder.java | 24 - .../proto/GetTickTransactionsRequest.java | 483 ----- .../GetTickTransactionsRequestOrBuilder.java | 15 - .../proto/GetTickTransactionsRequestV2.java | 613 ------ ...GetTickTransactionsRequestV2OrBuilder.java | 27 - .../proto/GetTickTransactionsResponse.java | 770 ------- .../GetTickTransactionsResponseOrBuilder.java | 33 - .../proto/GetTickTransactionsResponseV2.java | 770 ------- ...etTickTransactionsResponseV2OrBuilder.java | 33 - .../archiver/proto/GetTransactionRequest.java | 557 ----- .../proto/GetTransactionRequestOrBuilder.java | 21 - .../proto/GetTransactionRequestV2.java | 565 ----- .../GetTransactionRequestV2OrBuilder.java | 21 - .../proto/GetTransactionResponse.java | 607 ------ .../GetTransactionResponseOrBuilder.java | 24 - .../proto/GetTransactionResponseV2.java | 737 ------- .../GetTransactionResponseV2OrBuilder.java | 36 - .../proto/GetTransactionStatusRequest.java | 557 ----- .../GetTransactionStatusRequestOrBuilder.java | 21 - .../proto/GetTransactionStatusResponse.java | 607 ------ ...GetTransactionStatusResponseOrBuilder.java | 24 - ...GetTransferTransactionsPerTickRequest.java | 685 ------ ...erTransactionsPerTickRequestOrBuilder.java | 33 - ...tTransferTransactionsPerTickRequestV2.java | 815 -------- ...TransactionsPerTickRequestV2OrBuilder.java | 45 - ...etTransferTransactionsPerTickResponse.java | 770 ------- ...rTransactionsPerTickResponseOrBuilder.java | 33 - .../archiver/proto/LastProcessedTick.java | 483 ----- .../proto/LastProcessedTickOrBuilder.java | 15 - .../archiver/proto/NextAvailableTick.java | 483 ----- .../proto/NextAvailableTickOrBuilder.java | 15 - .../proto/PerTickIdentityTransfers.java | 972 --------- .../PerTickIdentityTransfersOrBuilder.java | 51 - .../qubic/archiver/proto/ProcessedTick.java | 547 ----- .../archiver/proto/ProcessedTickInterval.java | 547 ----- .../proto/ProcessedTickIntervalOrBuilder.java | 21 - .../proto/ProcessedTickIntervalsPerEpoch.java | 834 -------- ...ocessedTickIntervalsPerEpochOrBuilder.java | 39 - .../proto/ProcessedTickOrBuilder.java | 21 - .../archiver/proto/QubicArchiverProtos.java | 955 --------- .../org/qubic/archiver/proto/QuorumDiff.java | 1247 ----------- .../archiver/proto/QuorumDiffOrBuilder.java | 81 - .../archiver/proto/QuorumDiffStored.java | 695 ------- .../proto/QuorumDiffStoredOrBuilder.java | 33 - .../qubic/archiver/proto/QuorumTickData.java | 893 -------- .../proto/QuorumTickDataOrBuilder.java | 58 - .../archiver/proto/QuorumTickDataStored.java | 893 -------- .../proto/QuorumTickDataStoredOrBuilder.java | 58 - .../archiver/proto/QuorumTickStructure.java | 1302 ------------ .../proto/QuorumTickStructureOrBuilder.java | 87 - .../archiver/proto/SendManyTransaction.java | 1313 ------------ .../proto/SendManyTransactionData.java | 745 ------- .../SendManyTransactionDataOrBuilder.java | 36 - .../proto/SendManyTransactionOrBuilder.java | 81 - .../archiver/proto/SendManyTransfer.java | 630 ------ .../proto/SendManyTransferOrBuilder.java | 27 - .../archiver/proto/SkippedTicksInterval.java | 547 ----- .../proto/SkippedTicksIntervalList.java | 770 ------- .../SkippedTicksIntervalListOrBuilder.java | 33 - .../proto/SkippedTicksIntervalOrBuilder.java | 21 - .../java/org/qubic/archiver/proto/Tick.java | 1338 ------------ .../org/qubic/archiver/proto/TickData.java | 1322 ------------ .../archiver/proto/TickDataOrBuilder.java | 99 - .../qubic/archiver/proto/TickOrBuilder.java | 103 - .../proto/TickTransactionsStatus.java | 770 ------- .../TickTransactionsStatusOrBuilder.java | 33 - .../org/qubic/archiver/proto/Transaction.java | 1366 ------------ .../qubic/archiver/proto/TransactionData.java | 745 ------- .../proto/TransactionDataOrBuilder.java | 36 - .../archiver/proto/TransactionOrBuilder.java | 93 - .../archiver/proto/TransactionStatus.java | 622 ------ .../proto/TransactionStatusOrBuilder.java | 27 - .../proto/TransferTransactionsPerTick.java | 972 --------- .../TransferTransactionsPerTickOrBuilder.java | 51 - src/main/proto/archive.proto | 457 ++++ 115 files changed, 488 insertions(+), 44550 deletions(-) delete mode 100644 src/main/java/org/qubic/archiver/proto/Computors.java delete mode 100644 src/main/java/org/qubic/archiver/proto/ComputorsOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetChainHashRequest.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetChainHashRequestOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetChainHashResponse.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetChainHashResponseOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetComputorsRequest.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetComputorsRequestOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetComputorsResponse.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetComputorsResponseOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetHealthCheckResponse.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetHealthCheckResponseOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetIdentityTransfersInTickRangeResponseV2.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetIdentityTransfersInTickRangeResponseV2OrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetLatestTickResponse.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetLatestTickResponseOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetQuorumTickDataRequest.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetQuorumTickDataRequestOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetQuorumTickDataResponse.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetQuorumTickDataResponseOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetQuorumTickDataResponseStored.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetQuorumTickDataResponseStoredOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetSendManyTransactionRequestV2.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetSendManyTransactionRequestV2OrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetSendManyTransactionResponseV2.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetSendManyTransactionResponseV2OrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetStatusResponse.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetStatusResponseOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetTickApprovedTransactionsRequest.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetTickApprovedTransactionsRequestOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetTickApprovedTransactionsResponse.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetTickApprovedTransactionsResponseOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetTickDataRequest.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetTickDataRequestOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetTickDataResponse.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetTickDataResponseOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetTickRequestV2.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetTickRequestV2OrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetTickResponseV2.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetTickResponseV2OrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetTickTransactionsRequest.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetTickTransactionsRequestOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetTickTransactionsRequestV2.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetTickTransactionsRequestV2OrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetTickTransactionsResponse.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetTickTransactionsResponseOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetTickTransactionsResponseV2.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetTickTransactionsResponseV2OrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetTransactionRequest.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetTransactionRequestOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetTransactionRequestV2.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetTransactionRequestV2OrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetTransactionResponse.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetTransactionResponseOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetTransactionResponseV2.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetTransactionResponseV2OrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetTransactionStatusRequest.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetTransactionStatusRequestOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetTransactionStatusResponse.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetTransactionStatusResponseOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetTransferTransactionsPerTickRequest.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetTransferTransactionsPerTickRequestOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetTransferTransactionsPerTickRequestV2.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetTransferTransactionsPerTickRequestV2OrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetTransferTransactionsPerTickResponse.java delete mode 100644 src/main/java/org/qubic/archiver/proto/GetTransferTransactionsPerTickResponseOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/LastProcessedTick.java delete mode 100644 src/main/java/org/qubic/archiver/proto/LastProcessedTickOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/NextAvailableTick.java delete mode 100644 src/main/java/org/qubic/archiver/proto/NextAvailableTickOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/PerTickIdentityTransfers.java delete mode 100644 src/main/java/org/qubic/archiver/proto/PerTickIdentityTransfersOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/ProcessedTick.java delete mode 100644 src/main/java/org/qubic/archiver/proto/ProcessedTickInterval.java delete mode 100644 src/main/java/org/qubic/archiver/proto/ProcessedTickIntervalOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/ProcessedTickIntervalsPerEpoch.java delete mode 100644 src/main/java/org/qubic/archiver/proto/ProcessedTickIntervalsPerEpochOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/ProcessedTickOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/QubicArchiverProtos.java delete mode 100644 src/main/java/org/qubic/archiver/proto/QuorumDiff.java delete mode 100644 src/main/java/org/qubic/archiver/proto/QuorumDiffOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/QuorumDiffStored.java delete mode 100644 src/main/java/org/qubic/archiver/proto/QuorumDiffStoredOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/QuorumTickData.java delete mode 100644 src/main/java/org/qubic/archiver/proto/QuorumTickDataOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/QuorumTickDataStored.java delete mode 100644 src/main/java/org/qubic/archiver/proto/QuorumTickDataStoredOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/QuorumTickStructure.java delete mode 100644 src/main/java/org/qubic/archiver/proto/QuorumTickStructureOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/SendManyTransaction.java delete mode 100644 src/main/java/org/qubic/archiver/proto/SendManyTransactionData.java delete mode 100644 src/main/java/org/qubic/archiver/proto/SendManyTransactionDataOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/SendManyTransactionOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/SendManyTransfer.java delete mode 100644 src/main/java/org/qubic/archiver/proto/SendManyTransferOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/SkippedTicksInterval.java delete mode 100644 src/main/java/org/qubic/archiver/proto/SkippedTicksIntervalList.java delete mode 100644 src/main/java/org/qubic/archiver/proto/SkippedTicksIntervalListOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/SkippedTicksIntervalOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/Tick.java delete mode 100644 src/main/java/org/qubic/archiver/proto/TickData.java delete mode 100644 src/main/java/org/qubic/archiver/proto/TickDataOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/TickOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/TickTransactionsStatus.java delete mode 100644 src/main/java/org/qubic/archiver/proto/TickTransactionsStatusOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/Transaction.java delete mode 100644 src/main/java/org/qubic/archiver/proto/TransactionData.java delete mode 100644 src/main/java/org/qubic/archiver/proto/TransactionDataOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/TransactionOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/TransactionStatus.java delete mode 100644 src/main/java/org/qubic/archiver/proto/TransactionStatusOrBuilder.java delete mode 100644 src/main/java/org/qubic/archiver/proto/TransferTransactionsPerTick.java delete mode 100644 src/main/java/org/qubic/archiver/proto/TransferTransactionsPerTickOrBuilder.java create mode 100644 src/main/proto/archive.proto diff --git a/build.gradle b/build.gradle index b116f41..1eeadc2 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,7 @@ plugins { id 'java' id 'maven-publish' + id 'com.google.protobuf' version '0.9.4' } group = 'org.qubic.archiver' @@ -10,6 +11,8 @@ repositories { mavenCentral() } + + publishing { publications { maven(MavenPublication) { @@ -29,16 +32,41 @@ publishing { } } +def grpcVersion = '1.66.0' // CURRENT_GRPC_VERSION +def protobufVersion = '3.25.3' +def protocVersion = protobufVersion + dependencies { - implementation 'com.google.protobuf:protobuf-java:3.15.8' - implementation 'com.google.protobuf:protobuf-java-util:3.15.8' - implementation 'com.google.api.grpc:proto-google-common-protos:2.44.0' + implementation "io.grpc:grpc-protobuf:${grpcVersion}" + implementation "io.grpc:grpc-services:${grpcVersion}" + implementation "io.grpc:grpc-stub:${grpcVersion}" + compileOnly "org.apache.tomcat:annotations-api:6.0.53" + implementation "com.google.protobuf:protobuf-java-util:${protobufVersion}" testImplementation platform('org.junit:junit-bom:5.10.0') testImplementation 'org.junit.jupiter:junit-jupiter' } +protobuf { + protoc { artifact = "com.google.protobuf:protoc:${protocVersion}" } + plugins { + grpc { artifact = "io.grpc:protoc-gen-grpc-java:${grpcVersion}" } + } + generateProtoTasks { + all()*.plugins { grpc {} } + } +} + +sourceSets { + main { + java { + srcDirs 'build/generated/source/proto/main/grpc' + srcDirs 'build/generated/source/proto/main/java' + } + } +} + test { useJUnitPlatform() } diff --git a/src/main/java/org/qubic/archiver/proto/Computors.java b/src/main/java/org/qubic/archiver/proto/Computors.java deleted file mode 100644 index 5dd36d0..0000000 --- a/src/main/java/org/qubic/archiver/proto/Computors.java +++ /dev/null @@ -1,816 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.Computors} - */ -public final class Computors extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.Computors) - ComputorsOrBuilder { -private static final long serialVersionUID = 0L; - // Use Computors.newBuilder() to construct. - private Computors(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Computors() { - identities_ = com.google.protobuf.LazyStringArrayList.EMPTY; - signatureHex_ = ""; - } - - @Override - @SuppressWarnings({"unused"}) - protected Object newInstance( - UnusedPrivateParameter unused) { - return new Computors(); - } - - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Computors( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - epoch_ = input.readUInt32(); - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - identities_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - identities_.add(s); - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - signatureHex_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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) != 0)) { - identities_ = identities_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_Computors_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_Computors_fieldAccessorTable - .ensureFieldAccessorsInitialized( - Computors.class, Builder.class); - } - - public static final int EPOCH_FIELD_NUMBER = 1; - private int epoch_; - /** - * uint32 epoch = 1; - * @return The epoch. - */ - @Override - public int getEpoch() { - return epoch_; - } - - public static final int IDENTITIES_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList identities_; - /** - * repeated string identities = 2; - * @return A list containing the identities. - */ - public com.google.protobuf.ProtocolStringList - getIdentitiesList() { - return identities_; - } - /** - * repeated string identities = 2; - * @return The count of identities. - */ - public int getIdentitiesCount() { - return identities_.size(); - } - /** - * repeated string identities = 2; - * @param index The index of the element to return. - * @return The identities at the given index. - */ - public String getIdentities(int index) { - return identities_.get(index); - } - /** - * repeated string identities = 2; - * @param index The index of the value to return. - * @return The bytes of the identities at the given index. - */ - public com.google.protobuf.ByteString - getIdentitiesBytes(int index) { - return identities_.getByteString(index); - } - - public static final int SIGNATURE_HEX_FIELD_NUMBER = 3; - private volatile Object signatureHex_; - /** - * string signature_hex = 3; - * @return The signatureHex. - */ - @Override - public String getSignatureHex() { - Object ref = signatureHex_; - if (ref instanceof String) { - return (String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - signatureHex_ = s; - return s; - } - } - /** - * string signature_hex = 3; - * @return The bytes for signatureHex. - */ - @Override - public com.google.protobuf.ByteString - getSignatureHexBytes() { - Object ref = signatureHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - signatureHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (epoch_ != 0) { - output.writeUInt32(1, epoch_); - } - for (int i = 0; i < identities_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, identities_.getRaw(i)); - } - if (!getSignatureHexBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, signatureHex_); - } - unknownFields.writeTo(output); - } - - @Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (epoch_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, epoch_); - } - { - int dataSize = 0; - for (int i = 0; i < identities_.size(); i++) { - dataSize += computeStringSizeNoTag(identities_.getRaw(i)); - } - size += dataSize; - size += 1 * getIdentitiesList().size(); - } - if (!getSignatureHexBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, signatureHex_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @Override - public boolean equals(final Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof Computors)) { - return super.equals(obj); - } - Computors other = (Computors) obj; - - if (getEpoch() - != other.getEpoch()) return false; - if (!getIdentitiesList() - .equals(other.getIdentitiesList())) return false; - if (!getSignatureHex() - .equals(other.getSignatureHex())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + EPOCH_FIELD_NUMBER; - hash = (53 * hash) + getEpoch(); - if (getIdentitiesCount() > 0) { - hash = (37 * hash) + IDENTITIES_FIELD_NUMBER; - hash = (53 * hash) + getIdentitiesList().hashCode(); - } - hash = (37 * hash) + SIGNATURE_HEX_FIELD_NUMBER; - hash = (53 * hash) + getSignatureHex().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static Computors parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Computors parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static Computors parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Computors parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static Computors parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Computors parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static Computors parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static Computors 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 Computors parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static Computors 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 Computors parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static Computors parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(Computors prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.Computors} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.Computors) - ComputorsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_Computors_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_Computors_fieldAccessorTable - .ensureFieldAccessorsInitialized( - Computors.class, Builder.class); - } - - // Construct using org.qubic.archiver.proto.Computors.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @Override - public Builder clear() { - super.clear(); - epoch_ = 0; - - identities_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - signatureHex_ = ""; - - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_Computors_descriptor; - } - - @Override - public Computors getDefaultInstanceForType() { - return Computors.getDefaultInstance(); - } - - @Override - public Computors build() { - Computors result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public Computors buildPartial() { - Computors result = new Computors(this); - int from_bitField0_ = bitField0_; - result.epoch_ = epoch_; - if (((bitField0_ & 0x00000001) != 0)) { - identities_ = identities_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.identities_ = identities_; - result.signatureHex_ = signatureHex_; - onBuilt(); - return result; - } - - @Override - public Builder clone() { - return super.clone(); - } - @Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.setField(field, value); - } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return super.setRepeatedField(field, index, value); - } - @Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.addRepeatedField(field, value); - } - @Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof Computors) { - return mergeFrom((Computors)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(Computors other) { - if (other == Computors.getDefaultInstance()) return this; - if (other.getEpoch() != 0) { - setEpoch(other.getEpoch()); - } - if (!other.identities_.isEmpty()) { - if (identities_.isEmpty()) { - identities_ = other.identities_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureIdentitiesIsMutable(); - identities_.addAll(other.identities_); - } - onChanged(); - } - if (!other.getSignatureHex().isEmpty()) { - signatureHex_ = other.signatureHex_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - Computors parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Computors) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int epoch_ ; - /** - * uint32 epoch = 1; - * @return The epoch. - */ - @Override - public int getEpoch() { - return epoch_; - } - /** - * uint32 epoch = 1; - * @param value The epoch to set. - * @return This builder for chaining. - */ - public Builder setEpoch(int value) { - - epoch_ = value; - onChanged(); - return this; - } - /** - * uint32 epoch = 1; - * @return This builder for chaining. - */ - public Builder clearEpoch() { - - epoch_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList identities_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureIdentitiesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - identities_ = new com.google.protobuf.LazyStringArrayList(identities_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string identities = 2; - * @return A list containing the identities. - */ - public com.google.protobuf.ProtocolStringList - getIdentitiesList() { - return identities_.getUnmodifiableView(); - } - /** - * repeated string identities = 2; - * @return The count of identities. - */ - public int getIdentitiesCount() { - return identities_.size(); - } - /** - * repeated string identities = 2; - * @param index The index of the element to return. - * @return The identities at the given index. - */ - public String getIdentities(int index) { - return identities_.get(index); - } - /** - * repeated string identities = 2; - * @param index The index of the value to return. - * @return The bytes of the identities at the given index. - */ - public com.google.protobuf.ByteString - getIdentitiesBytes(int index) { - return identities_.getByteString(index); - } - /** - * repeated string identities = 2; - * @param index The index to set the value at. - * @param value The identities to set. - * @return This builder for chaining. - */ - public Builder setIdentities( - int index, String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIdentitiesIsMutable(); - identities_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string identities = 2; - * @param value The identities to add. - * @return This builder for chaining. - */ - public Builder addIdentities( - String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIdentitiesIsMutable(); - identities_.add(value); - onChanged(); - return this; - } - /** - * repeated string identities = 2; - * @param values The identities to add. - * @return This builder for chaining. - */ - public Builder addAllIdentities( - Iterable values) { - ensureIdentitiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, identities_); - onChanged(); - return this; - } - /** - * repeated string identities = 2; - * @return This builder for chaining. - */ - public Builder clearIdentities() { - identities_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string identities = 2; - * @param value The bytes of the identities to add. - * @return This builder for chaining. - */ - public Builder addIdentitiesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureIdentitiesIsMutable(); - identities_.add(value); - onChanged(); - return this; - } - - private Object signatureHex_ = ""; - /** - * string signature_hex = 3; - * @return The signatureHex. - */ - public String getSignatureHex() { - Object ref = signatureHex_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - signatureHex_ = s; - return s; - } else { - return (String) ref; - } - } - /** - * string signature_hex = 3; - * @return The bytes for signatureHex. - */ - public com.google.protobuf.ByteString - getSignatureHexBytes() { - Object ref = signatureHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - signatureHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string signature_hex = 3; - * @param value The signatureHex to set. - * @return This builder for chaining. - */ - public Builder setSignatureHex( - String value) { - if (value == null) { - throw new NullPointerException(); - } - - signatureHex_ = value; - onChanged(); - return this; - } - /** - * string signature_hex = 3; - * @return This builder for chaining. - */ - public Builder clearSignatureHex() { - - signatureHex_ = getDefaultInstance().getSignatureHex(); - onChanged(); - return this; - } - /** - * string signature_hex = 3; - * @param value The bytes for signatureHex to set. - * @return This builder for chaining. - */ - public Builder setSignatureHexBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - signatureHex_ = value; - onChanged(); - return this; - } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.Computors) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.Computors) - private static final Computors DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new Computors(); - } - - public static Computors getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public Computors parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Computors(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public Computors getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/ComputorsOrBuilder.java b/src/main/java/org/qubic/archiver/proto/ComputorsOrBuilder.java deleted file mode 100644 index eb6374c..0000000 --- a/src/main/java/org/qubic/archiver/proto/ComputorsOrBuilder.java +++ /dev/null @@ -1,52 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface ComputorsOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.Computors) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 epoch = 1; - * @return The epoch. - */ - int getEpoch(); - - /** - * repeated string identities = 2; - * @return A list containing the identities. - */ - java.util.List - getIdentitiesList(); - /** - * repeated string identities = 2; - * @return The count of identities. - */ - int getIdentitiesCount(); - /** - * repeated string identities = 2; - * @param index The index of the element to return. - * @return The identities at the given index. - */ - String getIdentities(int index); - /** - * repeated string identities = 2; - * @param index The index of the value to return. - * @return The bytes of the identities at the given index. - */ - com.google.protobuf.ByteString - getIdentitiesBytes(int index); - - /** - * string signature_hex = 3; - * @return The signatureHex. - */ - String getSignatureHex(); - /** - * string signature_hex = 3; - * @return The bytes for signatureHex. - */ - com.google.protobuf.ByteString - getSignatureHexBytes(); -} diff --git a/src/main/java/org/qubic/archiver/proto/GetChainHashRequest.java b/src/main/java/org/qubic/archiver/proto/GetChainHashRequest.java deleted file mode 100644 index 7fe20cf..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetChainHashRequest.java +++ /dev/null @@ -1,483 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.GetChainHashRequest} - */ -public final class GetChainHashRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.GetChainHashRequest) - GetChainHashRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetChainHashRequest.newBuilder() to construct. - private GetChainHashRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetChainHashRequest() { - } - - @Override - @SuppressWarnings({"unused"}) - protected Object newInstance( - UnusedPrivateParameter unused) { - return new GetChainHashRequest(); - } - - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetChainHashRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - tickNumber_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetChainHashRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetChainHashRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - GetChainHashRequest.class, Builder.class); - } - - public static final int TICK_NUMBER_FIELD_NUMBER = 1; - private int tickNumber_; - /** - * uint32 tick_number = 1; - * @return The tickNumber. - */ - @Override - public int getTickNumber() { - return tickNumber_; - } - - private byte memoizedIsInitialized = -1; - @Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (tickNumber_ != 0) { - output.writeUInt32(1, tickNumber_); - } - unknownFields.writeTo(output); - } - - @Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (tickNumber_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, tickNumber_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @Override - public boolean equals(final Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof GetChainHashRequest)) { - return super.equals(obj); - } - GetChainHashRequest other = (GetChainHashRequest) obj; - - if (getTickNumber() - != other.getTickNumber()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TICK_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getTickNumber(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static GetChainHashRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetChainHashRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetChainHashRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetChainHashRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetChainHashRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetChainHashRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetChainHashRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static GetChainHashRequest 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 GetChainHashRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static GetChainHashRequest 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 GetChainHashRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static GetChainHashRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(GetChainHashRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.GetChainHashRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.GetChainHashRequest) - GetChainHashRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetChainHashRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetChainHashRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - GetChainHashRequest.class, Builder.class); - } - - // Construct using org.qubic.archiver.proto.GetChainHashRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @Override - public Builder clear() { - super.clear(); - tickNumber_ = 0; - - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetChainHashRequest_descriptor; - } - - @Override - public GetChainHashRequest getDefaultInstanceForType() { - return GetChainHashRequest.getDefaultInstance(); - } - - @Override - public GetChainHashRequest build() { - GetChainHashRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public GetChainHashRequest buildPartial() { - GetChainHashRequest result = new GetChainHashRequest(this); - result.tickNumber_ = tickNumber_; - onBuilt(); - return result; - } - - @Override - public Builder clone() { - return super.clone(); - } - @Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.setField(field, value); - } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return super.setRepeatedField(field, index, value); - } - @Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.addRepeatedField(field, value); - } - @Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof GetChainHashRequest) { - return mergeFrom((GetChainHashRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(GetChainHashRequest other) { - if (other == GetChainHashRequest.getDefaultInstance()) return this; - if (other.getTickNumber() != 0) { - setTickNumber(other.getTickNumber()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - GetChainHashRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (GetChainHashRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int tickNumber_ ; - /** - * uint32 tick_number = 1; - * @return The tickNumber. - */ - @Override - public int getTickNumber() { - return tickNumber_; - } - /** - * uint32 tick_number = 1; - * @param value The tickNumber to set. - * @return This builder for chaining. - */ - public Builder setTickNumber(int value) { - - tickNumber_ = value; - onChanged(); - return this; - } - /** - * uint32 tick_number = 1; - * @return This builder for chaining. - */ - public Builder clearTickNumber() { - - tickNumber_ = 0; - onChanged(); - return this; - } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.GetChainHashRequest) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.GetChainHashRequest) - private static final GetChainHashRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new GetChainHashRequest(); - } - - public static GetChainHashRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public GetChainHashRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetChainHashRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public GetChainHashRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/GetChainHashRequestOrBuilder.java b/src/main/java/org/qubic/archiver/proto/GetChainHashRequestOrBuilder.java deleted file mode 100644 index 1ffbf3a..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetChainHashRequestOrBuilder.java +++ /dev/null @@ -1,15 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface GetChainHashRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.GetChainHashRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 tick_number = 1; - * @return The tickNumber. - */ - int getTickNumber(); -} diff --git a/src/main/java/org/qubic/archiver/proto/GetChainHashResponse.java b/src/main/java/org/qubic/archiver/proto/GetChainHashResponse.java deleted file mode 100644 index 4b2f947..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetChainHashResponse.java +++ /dev/null @@ -1,557 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.GetChainHashResponse} - */ -public final class GetChainHashResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.GetChainHashResponse) - GetChainHashResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetChainHashResponse.newBuilder() to construct. - private GetChainHashResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetChainHashResponse() { - hexDigest_ = ""; - } - - @Override - @SuppressWarnings({"unused"}) - protected Object newInstance( - UnusedPrivateParameter unused) { - return new GetChainHashResponse(); - } - - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetChainHashResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - String s = input.readStringRequireUtf8(); - - hexDigest_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetChainHashResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetChainHashResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - GetChainHashResponse.class, Builder.class); - } - - public static final int HEX_DIGEST_FIELD_NUMBER = 1; - private volatile Object hexDigest_; - /** - * string hex_digest = 1; - * @return The hexDigest. - */ - @Override - public String getHexDigest() { - Object ref = hexDigest_; - if (ref instanceof String) { - return (String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - hexDigest_ = s; - return s; - } - } - /** - * string hex_digest = 1; - * @return The bytes for hexDigest. - */ - @Override - public com.google.protobuf.ByteString - getHexDigestBytes() { - Object ref = hexDigest_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - hexDigest_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getHexDigestBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hexDigest_); - } - unknownFields.writeTo(output); - } - - @Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getHexDigestBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hexDigest_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @Override - public boolean equals(final Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof GetChainHashResponse)) { - return super.equals(obj); - } - GetChainHashResponse other = (GetChainHashResponse) obj; - - if (!getHexDigest() - .equals(other.getHexDigest())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HEX_DIGEST_FIELD_NUMBER; - hash = (53 * hash) + getHexDigest().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static GetChainHashResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetChainHashResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetChainHashResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetChainHashResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetChainHashResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetChainHashResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetChainHashResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static GetChainHashResponse 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 GetChainHashResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static GetChainHashResponse 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 GetChainHashResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static GetChainHashResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(GetChainHashResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.GetChainHashResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.GetChainHashResponse) - GetChainHashResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetChainHashResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetChainHashResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - GetChainHashResponse.class, Builder.class); - } - - // Construct using org.qubic.archiver.proto.GetChainHashResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @Override - public Builder clear() { - super.clear(); - hexDigest_ = ""; - - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetChainHashResponse_descriptor; - } - - @Override - public GetChainHashResponse getDefaultInstanceForType() { - return GetChainHashResponse.getDefaultInstance(); - } - - @Override - public GetChainHashResponse build() { - GetChainHashResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public GetChainHashResponse buildPartial() { - GetChainHashResponse result = new GetChainHashResponse(this); - result.hexDigest_ = hexDigest_; - onBuilt(); - return result; - } - - @Override - public Builder clone() { - return super.clone(); - } - @Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.setField(field, value); - } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return super.setRepeatedField(field, index, value); - } - @Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.addRepeatedField(field, value); - } - @Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof GetChainHashResponse) { - return mergeFrom((GetChainHashResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(GetChainHashResponse other) { - if (other == GetChainHashResponse.getDefaultInstance()) return this; - if (!other.getHexDigest().isEmpty()) { - hexDigest_ = other.hexDigest_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - GetChainHashResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (GetChainHashResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private Object hexDigest_ = ""; - /** - * string hex_digest = 1; - * @return The hexDigest. - */ - public String getHexDigest() { - Object ref = hexDigest_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - hexDigest_ = s; - return s; - } else { - return (String) ref; - } - } - /** - * string hex_digest = 1; - * @return The bytes for hexDigest. - */ - public com.google.protobuf.ByteString - getHexDigestBytes() { - Object ref = hexDigest_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - hexDigest_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string hex_digest = 1; - * @param value The hexDigest to set. - * @return This builder for chaining. - */ - public Builder setHexDigest( - String value) { - if (value == null) { - throw new NullPointerException(); - } - - hexDigest_ = value; - onChanged(); - return this; - } - /** - * string hex_digest = 1; - * @return This builder for chaining. - */ - public Builder clearHexDigest() { - - hexDigest_ = getDefaultInstance().getHexDigest(); - onChanged(); - return this; - } - /** - * string hex_digest = 1; - * @param value The bytes for hexDigest to set. - * @return This builder for chaining. - */ - public Builder setHexDigestBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - hexDigest_ = value; - onChanged(); - return this; - } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.GetChainHashResponse) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.GetChainHashResponse) - private static final GetChainHashResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new GetChainHashResponse(); - } - - public static GetChainHashResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public GetChainHashResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetChainHashResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public GetChainHashResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/GetChainHashResponseOrBuilder.java b/src/main/java/org/qubic/archiver/proto/GetChainHashResponseOrBuilder.java deleted file mode 100644 index d6d9fc0..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetChainHashResponseOrBuilder.java +++ /dev/null @@ -1,21 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface GetChainHashResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.GetChainHashResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * string hex_digest = 1; - * @return The hexDigest. - */ - java.lang.String getHexDigest(); - /** - * string hex_digest = 1; - * @return The bytes for hexDigest. - */ - com.google.protobuf.ByteString - getHexDigestBytes(); -} diff --git a/src/main/java/org/qubic/archiver/proto/GetComputorsRequest.java b/src/main/java/org/qubic/archiver/proto/GetComputorsRequest.java deleted file mode 100644 index 2e63317..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetComputorsRequest.java +++ /dev/null @@ -1,483 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.GetComputorsRequest} - */ -public final class GetComputorsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.GetComputorsRequest) - GetComputorsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetComputorsRequest.newBuilder() to construct. - private GetComputorsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetComputorsRequest() { - } - - @Override - @SuppressWarnings({"unused"}) - protected Object newInstance( - UnusedPrivateParameter unused) { - return new GetComputorsRequest(); - } - - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetComputorsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - epoch_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetComputorsRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetComputorsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - GetComputorsRequest.class, Builder.class); - } - - public static final int EPOCH_FIELD_NUMBER = 1; - private int epoch_; - /** - * uint32 epoch = 1; - * @return The epoch. - */ - @Override - public int getEpoch() { - return epoch_; - } - - private byte memoizedIsInitialized = -1; - @Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (epoch_ != 0) { - output.writeUInt32(1, epoch_); - } - unknownFields.writeTo(output); - } - - @Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (epoch_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, epoch_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @Override - public boolean equals(final Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof GetComputorsRequest)) { - return super.equals(obj); - } - GetComputorsRequest other = (GetComputorsRequest) obj; - - if (getEpoch() - != other.getEpoch()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + EPOCH_FIELD_NUMBER; - hash = (53 * hash) + getEpoch(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static GetComputorsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetComputorsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetComputorsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetComputorsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetComputorsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetComputorsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetComputorsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static GetComputorsRequest 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 GetComputorsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static GetComputorsRequest 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 GetComputorsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static GetComputorsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(GetComputorsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.GetComputorsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.GetComputorsRequest) - GetComputorsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetComputorsRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetComputorsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - GetComputorsRequest.class, Builder.class); - } - - // Construct using org.qubic.archiver.proto.GetComputorsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @Override - public Builder clear() { - super.clear(); - epoch_ = 0; - - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetComputorsRequest_descriptor; - } - - @Override - public GetComputorsRequest getDefaultInstanceForType() { - return GetComputorsRequest.getDefaultInstance(); - } - - @Override - public GetComputorsRequest build() { - GetComputorsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public GetComputorsRequest buildPartial() { - GetComputorsRequest result = new GetComputorsRequest(this); - result.epoch_ = epoch_; - onBuilt(); - return result; - } - - @Override - public Builder clone() { - return super.clone(); - } - @Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.setField(field, value); - } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return super.setRepeatedField(field, index, value); - } - @Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.addRepeatedField(field, value); - } - @Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof GetComputorsRequest) { - return mergeFrom((GetComputorsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(GetComputorsRequest other) { - if (other == GetComputorsRequest.getDefaultInstance()) return this; - if (other.getEpoch() != 0) { - setEpoch(other.getEpoch()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - GetComputorsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (GetComputorsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int epoch_ ; - /** - * uint32 epoch = 1; - * @return The epoch. - */ - @Override - public int getEpoch() { - return epoch_; - } - /** - * uint32 epoch = 1; - * @param value The epoch to set. - * @return This builder for chaining. - */ - public Builder setEpoch(int value) { - - epoch_ = value; - onChanged(); - return this; - } - /** - * uint32 epoch = 1; - * @return This builder for chaining. - */ - public Builder clearEpoch() { - - epoch_ = 0; - onChanged(); - return this; - } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.GetComputorsRequest) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.GetComputorsRequest) - private static final GetComputorsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new GetComputorsRequest(); - } - - public static GetComputorsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public GetComputorsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetComputorsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public GetComputorsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/GetComputorsRequestOrBuilder.java b/src/main/java/org/qubic/archiver/proto/GetComputorsRequestOrBuilder.java deleted file mode 100644 index a7fed43..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetComputorsRequestOrBuilder.java +++ /dev/null @@ -1,15 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface GetComputorsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.GetComputorsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 epoch = 1; - * @return The epoch. - */ - int getEpoch(); -} diff --git a/src/main/java/org/qubic/archiver/proto/GetComputorsResponse.java b/src/main/java/org/qubic/archiver/proto/GetComputorsResponse.java deleted file mode 100644 index 43708d6..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetComputorsResponse.java +++ /dev/null @@ -1,607 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.GetComputorsResponse} - */ -public final class GetComputorsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.GetComputorsResponse) - GetComputorsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetComputorsResponse.newBuilder() to construct. - private GetComputorsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetComputorsResponse() { - } - - @Override - @SuppressWarnings({"unused"}) - protected Object newInstance( - UnusedPrivateParameter unused) { - return new GetComputorsResponse(); - } - - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetComputorsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - Computors.Builder subBuilder = null; - if (computors_ != null) { - subBuilder = computors_.toBuilder(); - } - computors_ = input.readMessage(Computors.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(computors_); - computors_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetComputorsResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetComputorsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - GetComputorsResponse.class, Builder.class); - } - - public static final int COMPUTORS_FIELD_NUMBER = 1; - private Computors computors_; - /** - * .qubic.archiver.archive.pb.Computors computors = 1; - * @return Whether the computors field is set. - */ - @Override - public boolean hasComputors() { - return computors_ != null; - } - /** - * .qubic.archiver.archive.pb.Computors computors = 1; - * @return The computors. - */ - @Override - public Computors getComputors() { - return computors_ == null ? Computors.getDefaultInstance() : computors_; - } - /** - * .qubic.archiver.archive.pb.Computors computors = 1; - */ - @Override - public ComputorsOrBuilder getComputorsOrBuilder() { - return getComputors(); - } - - private byte memoizedIsInitialized = -1; - @Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (computors_ != null) { - output.writeMessage(1, getComputors()); - } - unknownFields.writeTo(output); - } - - @Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (computors_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getComputors()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @Override - public boolean equals(final Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof GetComputorsResponse)) { - return super.equals(obj); - } - GetComputorsResponse other = (GetComputorsResponse) obj; - - if (hasComputors() != other.hasComputors()) return false; - if (hasComputors()) { - if (!getComputors() - .equals(other.getComputors())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasComputors()) { - hash = (37 * hash) + COMPUTORS_FIELD_NUMBER; - hash = (53 * hash) + getComputors().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static GetComputorsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetComputorsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetComputorsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetComputorsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetComputorsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetComputorsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetComputorsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static GetComputorsResponse 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 GetComputorsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static GetComputorsResponse 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 GetComputorsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static GetComputorsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(GetComputorsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.GetComputorsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.GetComputorsResponse) - GetComputorsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetComputorsResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetComputorsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - GetComputorsResponse.class, Builder.class); - } - - // Construct using org.qubic.archiver.proto.GetComputorsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @Override - public Builder clear() { - super.clear(); - if (computorsBuilder_ == null) { - computors_ = null; - } else { - computors_ = null; - computorsBuilder_ = null; - } - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetComputorsResponse_descriptor; - } - - @Override - public GetComputorsResponse getDefaultInstanceForType() { - return GetComputorsResponse.getDefaultInstance(); - } - - @Override - public GetComputorsResponse build() { - GetComputorsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public GetComputorsResponse buildPartial() { - GetComputorsResponse result = new GetComputorsResponse(this); - if (computorsBuilder_ == null) { - result.computors_ = computors_; - } else { - result.computors_ = computorsBuilder_.build(); - } - onBuilt(); - return result; - } - - @Override - public Builder clone() { - return super.clone(); - } - @Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.setField(field, value); - } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return super.setRepeatedField(field, index, value); - } - @Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.addRepeatedField(field, value); - } - @Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof GetComputorsResponse) { - return mergeFrom((GetComputorsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(GetComputorsResponse other) { - if (other == GetComputorsResponse.getDefaultInstance()) return this; - if (other.hasComputors()) { - mergeComputors(other.getComputors()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - GetComputorsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (GetComputorsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private Computors computors_; - private com.google.protobuf.SingleFieldBuilderV3< - Computors, Computors.Builder, ComputorsOrBuilder> computorsBuilder_; - /** - * .qubic.archiver.archive.pb.Computors computors = 1; - * @return Whether the computors field is set. - */ - public boolean hasComputors() { - return computorsBuilder_ != null || computors_ != null; - } - /** - * .qubic.archiver.archive.pb.Computors computors = 1; - * @return The computors. - */ - public Computors getComputors() { - if (computorsBuilder_ == null) { - return computors_ == null ? Computors.getDefaultInstance() : computors_; - } else { - return computorsBuilder_.getMessage(); - } - } - /** - * .qubic.archiver.archive.pb.Computors computors = 1; - */ - public Builder setComputors(Computors value) { - if (computorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - computors_ = value; - onChanged(); - } else { - computorsBuilder_.setMessage(value); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.Computors computors = 1; - */ - public Builder setComputors( - Computors.Builder builderForValue) { - if (computorsBuilder_ == null) { - computors_ = builderForValue.build(); - onChanged(); - } else { - computorsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.Computors computors = 1; - */ - public Builder mergeComputors(Computors value) { - if (computorsBuilder_ == null) { - if (computors_ != null) { - computors_ = - Computors.newBuilder(computors_).mergeFrom(value).buildPartial(); - } else { - computors_ = value; - } - onChanged(); - } else { - computorsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.Computors computors = 1; - */ - public Builder clearComputors() { - if (computorsBuilder_ == null) { - computors_ = null; - onChanged(); - } else { - computors_ = null; - computorsBuilder_ = null; - } - - return this; - } - /** - * .qubic.archiver.archive.pb.Computors computors = 1; - */ - public Computors.Builder getComputorsBuilder() { - - onChanged(); - return getComputorsFieldBuilder().getBuilder(); - } - /** - * .qubic.archiver.archive.pb.Computors computors = 1; - */ - public ComputorsOrBuilder getComputorsOrBuilder() { - if (computorsBuilder_ != null) { - return computorsBuilder_.getMessageOrBuilder(); - } else { - return computors_ == null ? - Computors.getDefaultInstance() : computors_; - } - } - /** - * .qubic.archiver.archive.pb.Computors computors = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - Computors, Computors.Builder, ComputorsOrBuilder> - getComputorsFieldBuilder() { - if (computorsBuilder_ == null) { - computorsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - Computors, Computors.Builder, ComputorsOrBuilder>( - getComputors(), - getParentForChildren(), - isClean()); - computors_ = null; - } - return computorsBuilder_; - } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.GetComputorsResponse) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.GetComputorsResponse) - private static final GetComputorsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new GetComputorsResponse(); - } - - public static GetComputorsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public GetComputorsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetComputorsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public GetComputorsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/GetComputorsResponseOrBuilder.java b/src/main/java/org/qubic/archiver/proto/GetComputorsResponseOrBuilder.java deleted file mode 100644 index dc4cf32..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetComputorsResponseOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface GetComputorsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.GetComputorsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .qubic.archiver.archive.pb.Computors computors = 1; - * @return Whether the computors field is set. - */ - boolean hasComputors(); - /** - * .qubic.archiver.archive.pb.Computors computors = 1; - * @return The computors. - */ - org.qubic.archiver.proto.Computors getComputors(); - /** - * .qubic.archiver.archive.pb.Computors computors = 1; - */ - org.qubic.archiver.proto.ComputorsOrBuilder getComputorsOrBuilder(); -} diff --git a/src/main/java/org/qubic/archiver/proto/GetHealthCheckResponse.java b/src/main/java/org/qubic/archiver/proto/GetHealthCheckResponse.java deleted file mode 100644 index 6b0c046..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetHealthCheckResponse.java +++ /dev/null @@ -1,484 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.GetHealthCheckResponse} - */ -public final class GetHealthCheckResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.GetHealthCheckResponse) - GetHealthCheckResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetHealthCheckResponse.newBuilder() to construct. - private GetHealthCheckResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetHealthCheckResponse() { - } - - @Override - @SuppressWarnings({"unused"}) - protected Object newInstance( - UnusedPrivateParameter unused) { - return new GetHealthCheckResponse(); - } - - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetHealthCheckResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - status_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetHealthCheckResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetHealthCheckResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - GetHealthCheckResponse.class, Builder.class); - } - - public static final int STATUS_FIELD_NUMBER = 1; - private boolean status_; - /** - * bool status = 1; - * @return The status. - */ - @Override - public boolean getStatus() { - return status_; - } - - private byte memoizedIsInitialized = -1; - @Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (status_ != false) { - output.writeBool(1, status_); - } - unknownFields.writeTo(output); - } - - @Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (status_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, status_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @Override - public boolean equals(final Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof GetHealthCheckResponse)) { - return super.equals(obj); - } - GetHealthCheckResponse other = (GetHealthCheckResponse) obj; - - if (getStatus() - != other.getStatus()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getStatus()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static GetHealthCheckResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetHealthCheckResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetHealthCheckResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetHealthCheckResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetHealthCheckResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetHealthCheckResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetHealthCheckResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static GetHealthCheckResponse 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 GetHealthCheckResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static GetHealthCheckResponse 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 GetHealthCheckResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static GetHealthCheckResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(GetHealthCheckResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.GetHealthCheckResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.GetHealthCheckResponse) - GetHealthCheckResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetHealthCheckResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetHealthCheckResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - GetHealthCheckResponse.class, Builder.class); - } - - // Construct using org.qubic.archiver.proto.GetHealthCheckResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @Override - public Builder clear() { - super.clear(); - status_ = false; - - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetHealthCheckResponse_descriptor; - } - - @Override - public GetHealthCheckResponse getDefaultInstanceForType() { - return GetHealthCheckResponse.getDefaultInstance(); - } - - @Override - public GetHealthCheckResponse build() { - GetHealthCheckResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public GetHealthCheckResponse buildPartial() { - GetHealthCheckResponse result = new GetHealthCheckResponse(this); - result.status_ = status_; - onBuilt(); - return result; - } - - @Override - public Builder clone() { - return super.clone(); - } - @Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.setField(field, value); - } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return super.setRepeatedField(field, index, value); - } - @Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.addRepeatedField(field, value); - } - @Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof GetHealthCheckResponse) { - return mergeFrom((GetHealthCheckResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(GetHealthCheckResponse other) { - if (other == GetHealthCheckResponse.getDefaultInstance()) return this; - if (other.getStatus() != false) { - setStatus(other.getStatus()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - GetHealthCheckResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (GetHealthCheckResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean status_ ; - /** - * bool status = 1; - * @return The status. - */ - @Override - public boolean getStatus() { - return status_; - } - /** - * bool status = 1; - * @param value The status to set. - * @return This builder for chaining. - */ - public Builder setStatus(boolean value) { - - status_ = value; - onChanged(); - return this; - } - /** - * bool status = 1; - * @return This builder for chaining. - */ - public Builder clearStatus() { - - status_ = false; - onChanged(); - return this; - } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.GetHealthCheckResponse) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.GetHealthCheckResponse) - private static final GetHealthCheckResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new GetHealthCheckResponse(); - } - - public static GetHealthCheckResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public GetHealthCheckResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetHealthCheckResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public GetHealthCheckResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/GetHealthCheckResponseOrBuilder.java b/src/main/java/org/qubic/archiver/proto/GetHealthCheckResponseOrBuilder.java deleted file mode 100644 index 1f7fcd4..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetHealthCheckResponseOrBuilder.java +++ /dev/null @@ -1,15 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface GetHealthCheckResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.GetHealthCheckResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * bool status = 1; - * @return The status. - */ - boolean getStatus(); -} diff --git a/src/main/java/org/qubic/archiver/proto/GetIdentityTransfersInTickRangeResponseV2.java b/src/main/java/org/qubic/archiver/proto/GetIdentityTransfersInTickRangeResponseV2.java deleted file mode 100644 index 699c6a8..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetIdentityTransfersInTickRangeResponseV2.java +++ /dev/null @@ -1,770 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.GetIdentityTransfersInTickRangeResponseV2} - */ -public final class GetIdentityTransfersInTickRangeResponseV2 extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.GetIdentityTransfersInTickRangeResponseV2) - GetIdentityTransfersInTickRangeResponseV2OrBuilder { -private static final long serialVersionUID = 0L; - // Use GetIdentityTransfersInTickRangeResponseV2.newBuilder() to construct. - private GetIdentityTransfersInTickRangeResponseV2(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetIdentityTransfersInTickRangeResponseV2() { - transactions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetIdentityTransfersInTickRangeResponseV2(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetIdentityTransfersInTickRangeResponseV2( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - transactions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - transactions_.add( - input.readMessage(org.qubic.archiver.proto.PerTickIdentityTransfers.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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) != 0)) { - transactions_ = java.util.Collections.unmodifiableList(transactions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetIdentityTransfersInTickRangeResponseV2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetIdentityTransfersInTickRangeResponseV2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.qubic.archiver.proto.GetIdentityTransfersInTickRangeResponseV2.class, org.qubic.archiver.proto.GetIdentityTransfersInTickRangeResponseV2.Builder.class); - } - - public static final int TRANSACTIONS_FIELD_NUMBER = 1; - private java.util.List transactions_; - /** - * repeated .qubic.archiver.archive.pb.PerTickIdentityTransfers transactions = 1; - */ - @java.lang.Override - public java.util.List getTransactionsList() { - return transactions_; - } - /** - * repeated .qubic.archiver.archive.pb.PerTickIdentityTransfers transactions = 1; - */ - @java.lang.Override - public java.util.List - getTransactionsOrBuilderList() { - return transactions_; - } - /** - * repeated .qubic.archiver.archive.pb.PerTickIdentityTransfers transactions = 1; - */ - @java.lang.Override - public int getTransactionsCount() { - return transactions_.size(); - } - /** - * repeated .qubic.archiver.archive.pb.PerTickIdentityTransfers transactions = 1; - */ - @java.lang.Override - public org.qubic.archiver.proto.PerTickIdentityTransfers getTransactions(int index) { - return transactions_.get(index); - } - /** - * repeated .qubic.archiver.archive.pb.PerTickIdentityTransfers transactions = 1; - */ - @java.lang.Override - public org.qubic.archiver.proto.PerTickIdentityTransfersOrBuilder getTransactionsOrBuilder( - int index) { - return transactions_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < transactions_.size(); i++) { - output.writeMessage(1, transactions_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < transactions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, transactions_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.qubic.archiver.proto.GetIdentityTransfersInTickRangeResponseV2)) { - return super.equals(obj); - } - org.qubic.archiver.proto.GetIdentityTransfersInTickRangeResponseV2 other = (org.qubic.archiver.proto.GetIdentityTransfersInTickRangeResponseV2) obj; - - if (!getTransactionsList() - .equals(other.getTransactionsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTransactionsCount() > 0) { - hash = (37 * hash) + TRANSACTIONS_FIELD_NUMBER; - hash = (53 * hash) + getTransactionsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.qubic.archiver.proto.GetIdentityTransfersInTickRangeResponseV2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetIdentityTransfersInTickRangeResponseV2 parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetIdentityTransfersInTickRangeResponseV2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetIdentityTransfersInTickRangeResponseV2 parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetIdentityTransfersInTickRangeResponseV2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetIdentityTransfersInTickRangeResponseV2 parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetIdentityTransfersInTickRangeResponseV2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetIdentityTransfersInTickRangeResponseV2 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 org.qubic.archiver.proto.GetIdentityTransfersInTickRangeResponseV2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetIdentityTransfersInTickRangeResponseV2 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 org.qubic.archiver.proto.GetIdentityTransfersInTickRangeResponseV2 parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetIdentityTransfersInTickRangeResponseV2 parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.qubic.archiver.proto.GetIdentityTransfersInTickRangeResponseV2 prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.GetIdentityTransfersInTickRangeResponseV2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.GetIdentityTransfersInTickRangeResponseV2) - org.qubic.archiver.proto.GetIdentityTransfersInTickRangeResponseV2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetIdentityTransfersInTickRangeResponseV2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetIdentityTransfersInTickRangeResponseV2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.qubic.archiver.proto.GetIdentityTransfersInTickRangeResponseV2.class, org.qubic.archiver.proto.GetIdentityTransfersInTickRangeResponseV2.Builder.class); - } - - // Construct using org.qubic.archiver.proto.GetIdentityTransfersInTickRangeResponseV2.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTransactionsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (transactionsBuilder_ == null) { - transactions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - transactionsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetIdentityTransfersInTickRangeResponseV2_descriptor; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetIdentityTransfersInTickRangeResponseV2 getDefaultInstanceForType() { - return org.qubic.archiver.proto.GetIdentityTransfersInTickRangeResponseV2.getDefaultInstance(); - } - - @java.lang.Override - public org.qubic.archiver.proto.GetIdentityTransfersInTickRangeResponseV2 build() { - org.qubic.archiver.proto.GetIdentityTransfersInTickRangeResponseV2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetIdentityTransfersInTickRangeResponseV2 buildPartial() { - org.qubic.archiver.proto.GetIdentityTransfersInTickRangeResponseV2 result = new org.qubic.archiver.proto.GetIdentityTransfersInTickRangeResponseV2(this); - int from_bitField0_ = bitField0_; - if (transactionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - transactions_ = java.util.Collections.unmodifiableList(transactions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.transactions_ = transactions_; - } else { - result.transactions_ = transactionsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.qubic.archiver.proto.GetIdentityTransfersInTickRangeResponseV2) { - return mergeFrom((org.qubic.archiver.proto.GetIdentityTransfersInTickRangeResponseV2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.qubic.archiver.proto.GetIdentityTransfersInTickRangeResponseV2 other) { - if (other == org.qubic.archiver.proto.GetIdentityTransfersInTickRangeResponseV2.getDefaultInstance()) return this; - if (transactionsBuilder_ == null) { - if (!other.transactions_.isEmpty()) { - if (transactions_.isEmpty()) { - transactions_ = other.transactions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTransactionsIsMutable(); - transactions_.addAll(other.transactions_); - } - onChanged(); - } - } else { - if (!other.transactions_.isEmpty()) { - if (transactionsBuilder_.isEmpty()) { - transactionsBuilder_.dispose(); - transactionsBuilder_ = null; - transactions_ = other.transactions_; - bitField0_ = (bitField0_ & ~0x00000001); - transactionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTransactionsFieldBuilder() : null; - } else { - transactionsBuilder_.addAllMessages(other.transactions_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.qubic.archiver.proto.GetIdentityTransfersInTickRangeResponseV2 parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.qubic.archiver.proto.GetIdentityTransfersInTickRangeResponseV2) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List transactions_ = - java.util.Collections.emptyList(); - private void ensureTransactionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - transactions_ = new java.util.ArrayList(transactions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.qubic.archiver.proto.PerTickIdentityTransfers, org.qubic.archiver.proto.PerTickIdentityTransfers.Builder, org.qubic.archiver.proto.PerTickIdentityTransfersOrBuilder> transactionsBuilder_; - - /** - * repeated .qubic.archiver.archive.pb.PerTickIdentityTransfers transactions = 1; - */ - public java.util.List getTransactionsList() { - if (transactionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(transactions_); - } else { - return transactionsBuilder_.getMessageList(); - } - } - /** - * repeated .qubic.archiver.archive.pb.PerTickIdentityTransfers transactions = 1; - */ - public int getTransactionsCount() { - if (transactionsBuilder_ == null) { - return transactions_.size(); - } else { - return transactionsBuilder_.getCount(); - } - } - /** - * repeated .qubic.archiver.archive.pb.PerTickIdentityTransfers transactions = 1; - */ - public org.qubic.archiver.proto.PerTickIdentityTransfers getTransactions(int index) { - if (transactionsBuilder_ == null) { - return transactions_.get(index); - } else { - return transactionsBuilder_.getMessage(index); - } - } - /** - * repeated .qubic.archiver.archive.pb.PerTickIdentityTransfers transactions = 1; - */ - public Builder setTransactions( - int index, org.qubic.archiver.proto.PerTickIdentityTransfers value) { - if (transactionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransactionsIsMutable(); - transactions_.set(index, value); - onChanged(); - } else { - transactionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.PerTickIdentityTransfers transactions = 1; - */ - public Builder setTransactions( - int index, org.qubic.archiver.proto.PerTickIdentityTransfers.Builder builderForValue) { - if (transactionsBuilder_ == null) { - ensureTransactionsIsMutable(); - transactions_.set(index, builderForValue.build()); - onChanged(); - } else { - transactionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.PerTickIdentityTransfers transactions = 1; - */ - public Builder addTransactions(org.qubic.archiver.proto.PerTickIdentityTransfers value) { - if (transactionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransactionsIsMutable(); - transactions_.add(value); - onChanged(); - } else { - transactionsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.PerTickIdentityTransfers transactions = 1; - */ - public Builder addTransactions( - int index, org.qubic.archiver.proto.PerTickIdentityTransfers value) { - if (transactionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransactionsIsMutable(); - transactions_.add(index, value); - onChanged(); - } else { - transactionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.PerTickIdentityTransfers transactions = 1; - */ - public Builder addTransactions( - org.qubic.archiver.proto.PerTickIdentityTransfers.Builder builderForValue) { - if (transactionsBuilder_ == null) { - ensureTransactionsIsMutable(); - transactions_.add(builderForValue.build()); - onChanged(); - } else { - transactionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.PerTickIdentityTransfers transactions = 1; - */ - public Builder addTransactions( - int index, org.qubic.archiver.proto.PerTickIdentityTransfers.Builder builderForValue) { - if (transactionsBuilder_ == null) { - ensureTransactionsIsMutable(); - transactions_.add(index, builderForValue.build()); - onChanged(); - } else { - transactionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.PerTickIdentityTransfers transactions = 1; - */ - public Builder addAllTransactions( - java.lang.Iterable values) { - if (transactionsBuilder_ == null) { - ensureTransactionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, transactions_); - onChanged(); - } else { - transactionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.PerTickIdentityTransfers transactions = 1; - */ - public Builder clearTransactions() { - if (transactionsBuilder_ == null) { - transactions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - transactionsBuilder_.clear(); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.PerTickIdentityTransfers transactions = 1; - */ - public Builder removeTransactions(int index) { - if (transactionsBuilder_ == null) { - ensureTransactionsIsMutable(); - transactions_.remove(index); - onChanged(); - } else { - transactionsBuilder_.remove(index); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.PerTickIdentityTransfers transactions = 1; - */ - public org.qubic.archiver.proto.PerTickIdentityTransfers.Builder getTransactionsBuilder( - int index) { - return getTransactionsFieldBuilder().getBuilder(index); - } - /** - * repeated .qubic.archiver.archive.pb.PerTickIdentityTransfers transactions = 1; - */ - public org.qubic.archiver.proto.PerTickIdentityTransfersOrBuilder getTransactionsOrBuilder( - int index) { - if (transactionsBuilder_ == null) { - return transactions_.get(index); } else { - return transactionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .qubic.archiver.archive.pb.PerTickIdentityTransfers transactions = 1; - */ - public java.util.List - getTransactionsOrBuilderList() { - if (transactionsBuilder_ != null) { - return transactionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(transactions_); - } - } - /** - * repeated .qubic.archiver.archive.pb.PerTickIdentityTransfers transactions = 1; - */ - public org.qubic.archiver.proto.PerTickIdentityTransfers.Builder addTransactionsBuilder() { - return getTransactionsFieldBuilder().addBuilder( - org.qubic.archiver.proto.PerTickIdentityTransfers.getDefaultInstance()); - } - /** - * repeated .qubic.archiver.archive.pb.PerTickIdentityTransfers transactions = 1; - */ - public org.qubic.archiver.proto.PerTickIdentityTransfers.Builder addTransactionsBuilder( - int index) { - return getTransactionsFieldBuilder().addBuilder( - index, org.qubic.archiver.proto.PerTickIdentityTransfers.getDefaultInstance()); - } - /** - * repeated .qubic.archiver.archive.pb.PerTickIdentityTransfers transactions = 1; - */ - public java.util.List - getTransactionsBuilderList() { - return getTransactionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.qubic.archiver.proto.PerTickIdentityTransfers, org.qubic.archiver.proto.PerTickIdentityTransfers.Builder, org.qubic.archiver.proto.PerTickIdentityTransfersOrBuilder> - getTransactionsFieldBuilder() { - if (transactionsBuilder_ == null) { - transactionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.qubic.archiver.proto.PerTickIdentityTransfers, org.qubic.archiver.proto.PerTickIdentityTransfers.Builder, org.qubic.archiver.proto.PerTickIdentityTransfersOrBuilder>( - transactions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - transactions_ = null; - } - return transactionsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.GetIdentityTransfersInTickRangeResponseV2) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.GetIdentityTransfersInTickRangeResponseV2) - private static final org.qubic.archiver.proto.GetIdentityTransfersInTickRangeResponseV2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.qubic.archiver.proto.GetIdentityTransfersInTickRangeResponseV2(); - } - - public static org.qubic.archiver.proto.GetIdentityTransfersInTickRangeResponseV2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetIdentityTransfersInTickRangeResponseV2 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetIdentityTransfersInTickRangeResponseV2(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetIdentityTransfersInTickRangeResponseV2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/GetIdentityTransfersInTickRangeResponseV2OrBuilder.java b/src/main/java/org/qubic/archiver/proto/GetIdentityTransfersInTickRangeResponseV2OrBuilder.java deleted file mode 100644 index 40a16b1..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetIdentityTransfersInTickRangeResponseV2OrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface GetIdentityTransfersInTickRangeResponseV2OrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.GetIdentityTransfersInTickRangeResponseV2) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .qubic.archiver.archive.pb.PerTickIdentityTransfers transactions = 1; - */ - java.util.List - getTransactionsList(); - /** - * repeated .qubic.archiver.archive.pb.PerTickIdentityTransfers transactions = 1; - */ - org.qubic.archiver.proto.PerTickIdentityTransfers getTransactions(int index); - /** - * repeated .qubic.archiver.archive.pb.PerTickIdentityTransfers transactions = 1; - */ - int getTransactionsCount(); - /** - * repeated .qubic.archiver.archive.pb.PerTickIdentityTransfers transactions = 1; - */ - java.util.List - getTransactionsOrBuilderList(); - /** - * repeated .qubic.archiver.archive.pb.PerTickIdentityTransfers transactions = 1; - */ - org.qubic.archiver.proto.PerTickIdentityTransfersOrBuilder getTransactionsOrBuilder( - int index); -} diff --git a/src/main/java/org/qubic/archiver/proto/GetLatestTickResponse.java b/src/main/java/org/qubic/archiver/proto/GetLatestTickResponse.java deleted file mode 100644 index e6393b1..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetLatestTickResponse.java +++ /dev/null @@ -1,483 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.GetLatestTickResponse} - */ -public final class GetLatestTickResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.GetLatestTickResponse) - GetLatestTickResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetLatestTickResponse.newBuilder() to construct. - private GetLatestTickResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetLatestTickResponse() { - } - - @Override - @SuppressWarnings({"unused"}) - protected Object newInstance( - UnusedPrivateParameter unused) { - return new GetLatestTickResponse(); - } - - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetLatestTickResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - latestTick_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetLatestTickResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetLatestTickResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - GetLatestTickResponse.class, Builder.class); - } - - public static final int LATEST_TICK_FIELD_NUMBER = 1; - private int latestTick_; - /** - * uint32 latest_tick = 1; - * @return The latestTick. - */ - @Override - public int getLatestTick() { - return latestTick_; - } - - private byte memoizedIsInitialized = -1; - @Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (latestTick_ != 0) { - output.writeUInt32(1, latestTick_); - } - unknownFields.writeTo(output); - } - - @Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (latestTick_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, latestTick_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @Override - public boolean equals(final Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof GetLatestTickResponse)) { - return super.equals(obj); - } - GetLatestTickResponse other = (GetLatestTickResponse) obj; - - if (getLatestTick() - != other.getLatestTick()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + LATEST_TICK_FIELD_NUMBER; - hash = (53 * hash) + getLatestTick(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static GetLatestTickResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetLatestTickResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetLatestTickResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetLatestTickResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetLatestTickResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetLatestTickResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetLatestTickResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static GetLatestTickResponse 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 GetLatestTickResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static GetLatestTickResponse 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 GetLatestTickResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static GetLatestTickResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(GetLatestTickResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.GetLatestTickResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.GetLatestTickResponse) - GetLatestTickResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetLatestTickResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetLatestTickResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - GetLatestTickResponse.class, Builder.class); - } - - // Construct using org.qubic.archiver.proto.GetLatestTickResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @Override - public Builder clear() { - super.clear(); - latestTick_ = 0; - - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetLatestTickResponse_descriptor; - } - - @Override - public GetLatestTickResponse getDefaultInstanceForType() { - return GetLatestTickResponse.getDefaultInstance(); - } - - @Override - public GetLatestTickResponse build() { - GetLatestTickResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public GetLatestTickResponse buildPartial() { - GetLatestTickResponse result = new GetLatestTickResponse(this); - result.latestTick_ = latestTick_; - onBuilt(); - return result; - } - - @Override - public Builder clone() { - return super.clone(); - } - @Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.setField(field, value); - } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return super.setRepeatedField(field, index, value); - } - @Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.addRepeatedField(field, value); - } - @Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof GetLatestTickResponse) { - return mergeFrom((GetLatestTickResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(GetLatestTickResponse other) { - if (other == GetLatestTickResponse.getDefaultInstance()) return this; - if (other.getLatestTick() != 0) { - setLatestTick(other.getLatestTick()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - GetLatestTickResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (GetLatestTickResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int latestTick_ ; - /** - * uint32 latest_tick = 1; - * @return The latestTick. - */ - @Override - public int getLatestTick() { - return latestTick_; - } - /** - * uint32 latest_tick = 1; - * @param value The latestTick to set. - * @return This builder for chaining. - */ - public Builder setLatestTick(int value) { - - latestTick_ = value; - onChanged(); - return this; - } - /** - * uint32 latest_tick = 1; - * @return This builder for chaining. - */ - public Builder clearLatestTick() { - - latestTick_ = 0; - onChanged(); - return this; - } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.GetLatestTickResponse) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.GetLatestTickResponse) - private static final GetLatestTickResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new GetLatestTickResponse(); - } - - public static GetLatestTickResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public GetLatestTickResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetLatestTickResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public GetLatestTickResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/GetLatestTickResponseOrBuilder.java b/src/main/java/org/qubic/archiver/proto/GetLatestTickResponseOrBuilder.java deleted file mode 100644 index b78b7ab..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetLatestTickResponseOrBuilder.java +++ /dev/null @@ -1,15 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface GetLatestTickResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.GetLatestTickResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 latest_tick = 1; - * @return The latestTick. - */ - int getLatestTick(); -} diff --git a/src/main/java/org/qubic/archiver/proto/GetQuorumTickDataRequest.java b/src/main/java/org/qubic/archiver/proto/GetQuorumTickDataRequest.java deleted file mode 100644 index bf9ffae..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetQuorumTickDataRequest.java +++ /dev/null @@ -1,483 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.GetQuorumTickDataRequest} - */ -public final class GetQuorumTickDataRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.GetQuorumTickDataRequest) - GetQuorumTickDataRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetQuorumTickDataRequest.newBuilder() to construct. - private GetQuorumTickDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetQuorumTickDataRequest() { - } - - @Override - @SuppressWarnings({"unused"}) - protected Object newInstance( - UnusedPrivateParameter unused) { - return new GetQuorumTickDataRequest(); - } - - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetQuorumTickDataRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - tickNumber_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetQuorumTickDataRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetQuorumTickDataRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - GetQuorumTickDataRequest.class, Builder.class); - } - - public static final int TICK_NUMBER_FIELD_NUMBER = 1; - private int tickNumber_; - /** - * uint32 tick_number = 1; - * @return The tickNumber. - */ - @Override - public int getTickNumber() { - return tickNumber_; - } - - private byte memoizedIsInitialized = -1; - @Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (tickNumber_ != 0) { - output.writeUInt32(1, tickNumber_); - } - unknownFields.writeTo(output); - } - - @Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (tickNumber_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, tickNumber_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @Override - public boolean equals(final Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof GetQuorumTickDataRequest)) { - return super.equals(obj); - } - GetQuorumTickDataRequest other = (GetQuorumTickDataRequest) obj; - - if (getTickNumber() - != other.getTickNumber()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TICK_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getTickNumber(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static GetQuorumTickDataRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetQuorumTickDataRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetQuorumTickDataRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetQuorumTickDataRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetQuorumTickDataRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetQuorumTickDataRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetQuorumTickDataRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static GetQuorumTickDataRequest 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 GetQuorumTickDataRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static GetQuorumTickDataRequest 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 GetQuorumTickDataRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static GetQuorumTickDataRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(GetQuorumTickDataRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.GetQuorumTickDataRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.GetQuorumTickDataRequest) - GetQuorumTickDataRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetQuorumTickDataRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetQuorumTickDataRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - GetQuorumTickDataRequest.class, Builder.class); - } - - // Construct using org.qubic.archiver.proto.GetQuorumTickDataRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @Override - public Builder clear() { - super.clear(); - tickNumber_ = 0; - - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetQuorumTickDataRequest_descriptor; - } - - @Override - public GetQuorumTickDataRequest getDefaultInstanceForType() { - return GetQuorumTickDataRequest.getDefaultInstance(); - } - - @Override - public GetQuorumTickDataRequest build() { - GetQuorumTickDataRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public GetQuorumTickDataRequest buildPartial() { - GetQuorumTickDataRequest result = new GetQuorumTickDataRequest(this); - result.tickNumber_ = tickNumber_; - onBuilt(); - return result; - } - - @Override - public Builder clone() { - return super.clone(); - } - @Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.setField(field, value); - } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return super.setRepeatedField(field, index, value); - } - @Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.addRepeatedField(field, value); - } - @Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof GetQuorumTickDataRequest) { - return mergeFrom((GetQuorumTickDataRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(GetQuorumTickDataRequest other) { - if (other == GetQuorumTickDataRequest.getDefaultInstance()) return this; - if (other.getTickNumber() != 0) { - setTickNumber(other.getTickNumber()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - GetQuorumTickDataRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (GetQuorumTickDataRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int tickNumber_ ; - /** - * uint32 tick_number = 1; - * @return The tickNumber. - */ - @Override - public int getTickNumber() { - return tickNumber_; - } - /** - * uint32 tick_number = 1; - * @param value The tickNumber to set. - * @return This builder for chaining. - */ - public Builder setTickNumber(int value) { - - tickNumber_ = value; - onChanged(); - return this; - } - /** - * uint32 tick_number = 1; - * @return This builder for chaining. - */ - public Builder clearTickNumber() { - - tickNumber_ = 0; - onChanged(); - return this; - } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.GetQuorumTickDataRequest) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.GetQuorumTickDataRequest) - private static final GetQuorumTickDataRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new GetQuorumTickDataRequest(); - } - - public static GetQuorumTickDataRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public GetQuorumTickDataRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetQuorumTickDataRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public GetQuorumTickDataRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/GetQuorumTickDataRequestOrBuilder.java b/src/main/java/org/qubic/archiver/proto/GetQuorumTickDataRequestOrBuilder.java deleted file mode 100644 index ab35194..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetQuorumTickDataRequestOrBuilder.java +++ /dev/null @@ -1,15 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface GetQuorumTickDataRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.GetQuorumTickDataRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 tick_number = 1; - * @return The tickNumber. - */ - int getTickNumber(); -} diff --git a/src/main/java/org/qubic/archiver/proto/GetQuorumTickDataResponse.java b/src/main/java/org/qubic/archiver/proto/GetQuorumTickDataResponse.java deleted file mode 100644 index ca9971c..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetQuorumTickDataResponse.java +++ /dev/null @@ -1,607 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.GetQuorumTickDataResponse} - */ -public final class GetQuorumTickDataResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.GetQuorumTickDataResponse) - GetQuorumTickDataResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetQuorumTickDataResponse.newBuilder() to construct. - private GetQuorumTickDataResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetQuorumTickDataResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetQuorumTickDataResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetQuorumTickDataResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - org.qubic.archiver.proto.QuorumTickData.Builder subBuilder = null; - if (quorumTickData_ != null) { - subBuilder = quorumTickData_.toBuilder(); - } - quorumTickData_ = input.readMessage(org.qubic.archiver.proto.QuorumTickData.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(quorumTickData_); - quorumTickData_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetQuorumTickDataResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetQuorumTickDataResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.qubic.archiver.proto.GetQuorumTickDataResponse.class, org.qubic.archiver.proto.GetQuorumTickDataResponse.Builder.class); - } - - public static final int QUORUM_TICK_DATA_FIELD_NUMBER = 1; - private org.qubic.archiver.proto.QuorumTickData quorumTickData_; - /** - * .qubic.archiver.archive.pb.QuorumTickData quorum_tick_data = 1; - * @return Whether the quorumTickData field is set. - */ - @java.lang.Override - public boolean hasQuorumTickData() { - return quorumTickData_ != null; - } - /** - * .qubic.archiver.archive.pb.QuorumTickData quorum_tick_data = 1; - * @return The quorumTickData. - */ - @java.lang.Override - public org.qubic.archiver.proto.QuorumTickData getQuorumTickData() { - return quorumTickData_ == null ? org.qubic.archiver.proto.QuorumTickData.getDefaultInstance() : quorumTickData_; - } - /** - * .qubic.archiver.archive.pb.QuorumTickData quorum_tick_data = 1; - */ - @java.lang.Override - public org.qubic.archiver.proto.QuorumTickDataOrBuilder getQuorumTickDataOrBuilder() { - return getQuorumTickData(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (quorumTickData_ != null) { - output.writeMessage(1, getQuorumTickData()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (quorumTickData_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getQuorumTickData()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.qubic.archiver.proto.GetQuorumTickDataResponse)) { - return super.equals(obj); - } - org.qubic.archiver.proto.GetQuorumTickDataResponse other = (org.qubic.archiver.proto.GetQuorumTickDataResponse) obj; - - if (hasQuorumTickData() != other.hasQuorumTickData()) return false; - if (hasQuorumTickData()) { - if (!getQuorumTickData() - .equals(other.getQuorumTickData())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasQuorumTickData()) { - hash = (37 * hash) + QUORUM_TICK_DATA_FIELD_NUMBER; - hash = (53 * hash) + getQuorumTickData().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.qubic.archiver.proto.GetQuorumTickDataResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetQuorumTickDataResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetQuorumTickDataResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetQuorumTickDataResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetQuorumTickDataResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetQuorumTickDataResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetQuorumTickDataResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetQuorumTickDataResponse 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 org.qubic.archiver.proto.GetQuorumTickDataResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetQuorumTickDataResponse 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 org.qubic.archiver.proto.GetQuorumTickDataResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetQuorumTickDataResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.qubic.archiver.proto.GetQuorumTickDataResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.GetQuorumTickDataResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.GetQuorumTickDataResponse) - org.qubic.archiver.proto.GetQuorumTickDataResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetQuorumTickDataResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetQuorumTickDataResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.qubic.archiver.proto.GetQuorumTickDataResponse.class, org.qubic.archiver.proto.GetQuorumTickDataResponse.Builder.class); - } - - // Construct using org.qubic.archiver.proto.GetQuorumTickDataResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (quorumTickDataBuilder_ == null) { - quorumTickData_ = null; - } else { - quorumTickData_ = null; - quorumTickDataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetQuorumTickDataResponse_descriptor; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetQuorumTickDataResponse getDefaultInstanceForType() { - return org.qubic.archiver.proto.GetQuorumTickDataResponse.getDefaultInstance(); - } - - @java.lang.Override - public org.qubic.archiver.proto.GetQuorumTickDataResponse build() { - org.qubic.archiver.proto.GetQuorumTickDataResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetQuorumTickDataResponse buildPartial() { - org.qubic.archiver.proto.GetQuorumTickDataResponse result = new org.qubic.archiver.proto.GetQuorumTickDataResponse(this); - if (quorumTickDataBuilder_ == null) { - result.quorumTickData_ = quorumTickData_; - } else { - result.quorumTickData_ = quorumTickDataBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.qubic.archiver.proto.GetQuorumTickDataResponse) { - return mergeFrom((org.qubic.archiver.proto.GetQuorumTickDataResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.qubic.archiver.proto.GetQuorumTickDataResponse other) { - if (other == org.qubic.archiver.proto.GetQuorumTickDataResponse.getDefaultInstance()) return this; - if (other.hasQuorumTickData()) { - mergeQuorumTickData(other.getQuorumTickData()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.qubic.archiver.proto.GetQuorumTickDataResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.qubic.archiver.proto.GetQuorumTickDataResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private org.qubic.archiver.proto.QuorumTickData quorumTickData_; - private com.google.protobuf.SingleFieldBuilderV3< - org.qubic.archiver.proto.QuorumTickData, org.qubic.archiver.proto.QuorumTickData.Builder, org.qubic.archiver.proto.QuorumTickDataOrBuilder> quorumTickDataBuilder_; - /** - * .qubic.archiver.archive.pb.QuorumTickData quorum_tick_data = 1; - * @return Whether the quorumTickData field is set. - */ - public boolean hasQuorumTickData() { - return quorumTickDataBuilder_ != null || quorumTickData_ != null; - } - /** - * .qubic.archiver.archive.pb.QuorumTickData quorum_tick_data = 1; - * @return The quorumTickData. - */ - public org.qubic.archiver.proto.QuorumTickData getQuorumTickData() { - if (quorumTickDataBuilder_ == null) { - return quorumTickData_ == null ? org.qubic.archiver.proto.QuorumTickData.getDefaultInstance() : quorumTickData_; - } else { - return quorumTickDataBuilder_.getMessage(); - } - } - /** - * .qubic.archiver.archive.pb.QuorumTickData quorum_tick_data = 1; - */ - public Builder setQuorumTickData(org.qubic.archiver.proto.QuorumTickData value) { - if (quorumTickDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - quorumTickData_ = value; - onChanged(); - } else { - quorumTickDataBuilder_.setMessage(value); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.QuorumTickData quorum_tick_data = 1; - */ - public Builder setQuorumTickData( - org.qubic.archiver.proto.QuorumTickData.Builder builderForValue) { - if (quorumTickDataBuilder_ == null) { - quorumTickData_ = builderForValue.build(); - onChanged(); - } else { - quorumTickDataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.QuorumTickData quorum_tick_data = 1; - */ - public Builder mergeQuorumTickData(org.qubic.archiver.proto.QuorumTickData value) { - if (quorumTickDataBuilder_ == null) { - if (quorumTickData_ != null) { - quorumTickData_ = - org.qubic.archiver.proto.QuorumTickData.newBuilder(quorumTickData_).mergeFrom(value).buildPartial(); - } else { - quorumTickData_ = value; - } - onChanged(); - } else { - quorumTickDataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.QuorumTickData quorum_tick_data = 1; - */ - public Builder clearQuorumTickData() { - if (quorumTickDataBuilder_ == null) { - quorumTickData_ = null; - onChanged(); - } else { - quorumTickData_ = null; - quorumTickDataBuilder_ = null; - } - - return this; - } - /** - * .qubic.archiver.archive.pb.QuorumTickData quorum_tick_data = 1; - */ - public org.qubic.archiver.proto.QuorumTickData.Builder getQuorumTickDataBuilder() { - - onChanged(); - return getQuorumTickDataFieldBuilder().getBuilder(); - } - /** - * .qubic.archiver.archive.pb.QuorumTickData quorum_tick_data = 1; - */ - public org.qubic.archiver.proto.QuorumTickDataOrBuilder getQuorumTickDataOrBuilder() { - if (quorumTickDataBuilder_ != null) { - return quorumTickDataBuilder_.getMessageOrBuilder(); - } else { - return quorumTickData_ == null ? - org.qubic.archiver.proto.QuorumTickData.getDefaultInstance() : quorumTickData_; - } - } - /** - * .qubic.archiver.archive.pb.QuorumTickData quorum_tick_data = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.qubic.archiver.proto.QuorumTickData, org.qubic.archiver.proto.QuorumTickData.Builder, org.qubic.archiver.proto.QuorumTickDataOrBuilder> - getQuorumTickDataFieldBuilder() { - if (quorumTickDataBuilder_ == null) { - quorumTickDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.qubic.archiver.proto.QuorumTickData, org.qubic.archiver.proto.QuorumTickData.Builder, org.qubic.archiver.proto.QuorumTickDataOrBuilder>( - getQuorumTickData(), - getParentForChildren(), - isClean()); - quorumTickData_ = null; - } - return quorumTickDataBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.GetQuorumTickDataResponse) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.GetQuorumTickDataResponse) - private static final org.qubic.archiver.proto.GetQuorumTickDataResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.qubic.archiver.proto.GetQuorumTickDataResponse(); - } - - public static org.qubic.archiver.proto.GetQuorumTickDataResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetQuorumTickDataResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetQuorumTickDataResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetQuorumTickDataResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/GetQuorumTickDataResponseOrBuilder.java b/src/main/java/org/qubic/archiver/proto/GetQuorumTickDataResponseOrBuilder.java deleted file mode 100644 index d342674..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetQuorumTickDataResponseOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface GetQuorumTickDataResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.GetQuorumTickDataResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .qubic.archiver.archive.pb.QuorumTickData quorum_tick_data = 1; - * @return Whether the quorumTickData field is set. - */ - boolean hasQuorumTickData(); - /** - * .qubic.archiver.archive.pb.QuorumTickData quorum_tick_data = 1; - * @return The quorumTickData. - */ - org.qubic.archiver.proto.QuorumTickData getQuorumTickData(); - /** - * .qubic.archiver.archive.pb.QuorumTickData quorum_tick_data = 1; - */ - org.qubic.archiver.proto.QuorumTickDataOrBuilder getQuorumTickDataOrBuilder(); -} diff --git a/src/main/java/org/qubic/archiver/proto/GetQuorumTickDataResponseStored.java b/src/main/java/org/qubic/archiver/proto/GetQuorumTickDataResponseStored.java deleted file mode 100644 index b7fde1d..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetQuorumTickDataResponseStored.java +++ /dev/null @@ -1,607 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.GetQuorumTickDataResponseStored} - */ -public final class GetQuorumTickDataResponseStored extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.GetQuorumTickDataResponseStored) - GetQuorumTickDataResponseStoredOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetQuorumTickDataResponseStored.newBuilder() to construct. - private GetQuorumTickDataResponseStored(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetQuorumTickDataResponseStored() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetQuorumTickDataResponseStored(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetQuorumTickDataResponseStored( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - org.qubic.archiver.proto.QuorumTickDataStored.Builder subBuilder = null; - if (quorumTickData_ != null) { - subBuilder = quorumTickData_.toBuilder(); - } - quorumTickData_ = input.readMessage(org.qubic.archiver.proto.QuorumTickDataStored.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(quorumTickData_); - quorumTickData_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetQuorumTickDataResponseStored_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetQuorumTickDataResponseStored_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.qubic.archiver.proto.GetQuorumTickDataResponseStored.class, org.qubic.archiver.proto.GetQuorumTickDataResponseStored.Builder.class); - } - - public static final int QUORUM_TICK_DATA_FIELD_NUMBER = 1; - private org.qubic.archiver.proto.QuorumTickDataStored quorumTickData_; - /** - * .qubic.archiver.archive.pb.QuorumTickDataStored quorum_tick_data = 1; - * @return Whether the quorumTickData field is set. - */ - @java.lang.Override - public boolean hasQuorumTickData() { - return quorumTickData_ != null; - } - /** - * .qubic.archiver.archive.pb.QuorumTickDataStored quorum_tick_data = 1; - * @return The quorumTickData. - */ - @java.lang.Override - public org.qubic.archiver.proto.QuorumTickDataStored getQuorumTickData() { - return quorumTickData_ == null ? org.qubic.archiver.proto.QuorumTickDataStored.getDefaultInstance() : quorumTickData_; - } - /** - * .qubic.archiver.archive.pb.QuorumTickDataStored quorum_tick_data = 1; - */ - @java.lang.Override - public org.qubic.archiver.proto.QuorumTickDataStoredOrBuilder getQuorumTickDataOrBuilder() { - return getQuorumTickData(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (quorumTickData_ != null) { - output.writeMessage(1, getQuorumTickData()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (quorumTickData_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getQuorumTickData()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.qubic.archiver.proto.GetQuorumTickDataResponseStored)) { - return super.equals(obj); - } - org.qubic.archiver.proto.GetQuorumTickDataResponseStored other = (org.qubic.archiver.proto.GetQuorumTickDataResponseStored) obj; - - if (hasQuorumTickData() != other.hasQuorumTickData()) return false; - if (hasQuorumTickData()) { - if (!getQuorumTickData() - .equals(other.getQuorumTickData())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasQuorumTickData()) { - hash = (37 * hash) + QUORUM_TICK_DATA_FIELD_NUMBER; - hash = (53 * hash) + getQuorumTickData().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.qubic.archiver.proto.GetQuorumTickDataResponseStored parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetQuorumTickDataResponseStored parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetQuorumTickDataResponseStored parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetQuorumTickDataResponseStored parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetQuorumTickDataResponseStored parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetQuorumTickDataResponseStored parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetQuorumTickDataResponseStored parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetQuorumTickDataResponseStored 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 org.qubic.archiver.proto.GetQuorumTickDataResponseStored parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetQuorumTickDataResponseStored 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 org.qubic.archiver.proto.GetQuorumTickDataResponseStored parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetQuorumTickDataResponseStored parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.qubic.archiver.proto.GetQuorumTickDataResponseStored prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.GetQuorumTickDataResponseStored} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.GetQuorumTickDataResponseStored) - org.qubic.archiver.proto.GetQuorumTickDataResponseStoredOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetQuorumTickDataResponseStored_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetQuorumTickDataResponseStored_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.qubic.archiver.proto.GetQuorumTickDataResponseStored.class, org.qubic.archiver.proto.GetQuorumTickDataResponseStored.Builder.class); - } - - // Construct using org.qubic.archiver.proto.GetQuorumTickDataResponseStored.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (quorumTickDataBuilder_ == null) { - quorumTickData_ = null; - } else { - quorumTickData_ = null; - quorumTickDataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetQuorumTickDataResponseStored_descriptor; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetQuorumTickDataResponseStored getDefaultInstanceForType() { - return org.qubic.archiver.proto.GetQuorumTickDataResponseStored.getDefaultInstance(); - } - - @java.lang.Override - public org.qubic.archiver.proto.GetQuorumTickDataResponseStored build() { - org.qubic.archiver.proto.GetQuorumTickDataResponseStored result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetQuorumTickDataResponseStored buildPartial() { - org.qubic.archiver.proto.GetQuorumTickDataResponseStored result = new org.qubic.archiver.proto.GetQuorumTickDataResponseStored(this); - if (quorumTickDataBuilder_ == null) { - result.quorumTickData_ = quorumTickData_; - } else { - result.quorumTickData_ = quorumTickDataBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.qubic.archiver.proto.GetQuorumTickDataResponseStored) { - return mergeFrom((org.qubic.archiver.proto.GetQuorumTickDataResponseStored)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.qubic.archiver.proto.GetQuorumTickDataResponseStored other) { - if (other == org.qubic.archiver.proto.GetQuorumTickDataResponseStored.getDefaultInstance()) return this; - if (other.hasQuorumTickData()) { - mergeQuorumTickData(other.getQuorumTickData()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.qubic.archiver.proto.GetQuorumTickDataResponseStored parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.qubic.archiver.proto.GetQuorumTickDataResponseStored) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private org.qubic.archiver.proto.QuorumTickDataStored quorumTickData_; - private com.google.protobuf.SingleFieldBuilderV3< - org.qubic.archiver.proto.QuorumTickDataStored, org.qubic.archiver.proto.QuorumTickDataStored.Builder, org.qubic.archiver.proto.QuorumTickDataStoredOrBuilder> quorumTickDataBuilder_; - /** - * .qubic.archiver.archive.pb.QuorumTickDataStored quorum_tick_data = 1; - * @return Whether the quorumTickData field is set. - */ - public boolean hasQuorumTickData() { - return quorumTickDataBuilder_ != null || quorumTickData_ != null; - } - /** - * .qubic.archiver.archive.pb.QuorumTickDataStored quorum_tick_data = 1; - * @return The quorumTickData. - */ - public org.qubic.archiver.proto.QuorumTickDataStored getQuorumTickData() { - if (quorumTickDataBuilder_ == null) { - return quorumTickData_ == null ? org.qubic.archiver.proto.QuorumTickDataStored.getDefaultInstance() : quorumTickData_; - } else { - return quorumTickDataBuilder_.getMessage(); - } - } - /** - * .qubic.archiver.archive.pb.QuorumTickDataStored quorum_tick_data = 1; - */ - public Builder setQuorumTickData(org.qubic.archiver.proto.QuorumTickDataStored value) { - if (quorumTickDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - quorumTickData_ = value; - onChanged(); - } else { - quorumTickDataBuilder_.setMessage(value); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.QuorumTickDataStored quorum_tick_data = 1; - */ - public Builder setQuorumTickData( - org.qubic.archiver.proto.QuorumTickDataStored.Builder builderForValue) { - if (quorumTickDataBuilder_ == null) { - quorumTickData_ = builderForValue.build(); - onChanged(); - } else { - quorumTickDataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.QuorumTickDataStored quorum_tick_data = 1; - */ - public Builder mergeQuorumTickData(org.qubic.archiver.proto.QuorumTickDataStored value) { - if (quorumTickDataBuilder_ == null) { - if (quorumTickData_ != null) { - quorumTickData_ = - org.qubic.archiver.proto.QuorumTickDataStored.newBuilder(quorumTickData_).mergeFrom(value).buildPartial(); - } else { - quorumTickData_ = value; - } - onChanged(); - } else { - quorumTickDataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.QuorumTickDataStored quorum_tick_data = 1; - */ - public Builder clearQuorumTickData() { - if (quorumTickDataBuilder_ == null) { - quorumTickData_ = null; - onChanged(); - } else { - quorumTickData_ = null; - quorumTickDataBuilder_ = null; - } - - return this; - } - /** - * .qubic.archiver.archive.pb.QuorumTickDataStored quorum_tick_data = 1; - */ - public org.qubic.archiver.proto.QuorumTickDataStored.Builder getQuorumTickDataBuilder() { - - onChanged(); - return getQuorumTickDataFieldBuilder().getBuilder(); - } - /** - * .qubic.archiver.archive.pb.QuorumTickDataStored quorum_tick_data = 1; - */ - public org.qubic.archiver.proto.QuorumTickDataStoredOrBuilder getQuorumTickDataOrBuilder() { - if (quorumTickDataBuilder_ != null) { - return quorumTickDataBuilder_.getMessageOrBuilder(); - } else { - return quorumTickData_ == null ? - org.qubic.archiver.proto.QuorumTickDataStored.getDefaultInstance() : quorumTickData_; - } - } - /** - * .qubic.archiver.archive.pb.QuorumTickDataStored quorum_tick_data = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.qubic.archiver.proto.QuorumTickDataStored, org.qubic.archiver.proto.QuorumTickDataStored.Builder, org.qubic.archiver.proto.QuorumTickDataStoredOrBuilder> - getQuorumTickDataFieldBuilder() { - if (quorumTickDataBuilder_ == null) { - quorumTickDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.qubic.archiver.proto.QuorumTickDataStored, org.qubic.archiver.proto.QuorumTickDataStored.Builder, org.qubic.archiver.proto.QuorumTickDataStoredOrBuilder>( - getQuorumTickData(), - getParentForChildren(), - isClean()); - quorumTickData_ = null; - } - return quorumTickDataBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.GetQuorumTickDataResponseStored) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.GetQuorumTickDataResponseStored) - private static final org.qubic.archiver.proto.GetQuorumTickDataResponseStored DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.qubic.archiver.proto.GetQuorumTickDataResponseStored(); - } - - public static org.qubic.archiver.proto.GetQuorumTickDataResponseStored getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetQuorumTickDataResponseStored parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetQuorumTickDataResponseStored(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetQuorumTickDataResponseStored getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/GetQuorumTickDataResponseStoredOrBuilder.java b/src/main/java/org/qubic/archiver/proto/GetQuorumTickDataResponseStoredOrBuilder.java deleted file mode 100644 index 7dcb8b5..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetQuorumTickDataResponseStoredOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface GetQuorumTickDataResponseStoredOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.GetQuorumTickDataResponseStored) - com.google.protobuf.MessageOrBuilder { - - /** - * .qubic.archiver.archive.pb.QuorumTickDataStored quorum_tick_data = 1; - * @return Whether the quorumTickData field is set. - */ - boolean hasQuorumTickData(); - /** - * .qubic.archiver.archive.pb.QuorumTickDataStored quorum_tick_data = 1; - * @return The quorumTickData. - */ - org.qubic.archiver.proto.QuorumTickDataStored getQuorumTickData(); - /** - * .qubic.archiver.archive.pb.QuorumTickDataStored quorum_tick_data = 1; - */ - org.qubic.archiver.proto.QuorumTickDataStoredOrBuilder getQuorumTickDataOrBuilder(); -} diff --git a/src/main/java/org/qubic/archiver/proto/GetSendManyTransactionRequestV2.java b/src/main/java/org/qubic/archiver/proto/GetSendManyTransactionRequestV2.java deleted file mode 100644 index 445bc05..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetSendManyTransactionRequestV2.java +++ /dev/null @@ -1,557 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.GetSendManyTransactionRequestV2} - */ -public final class GetSendManyTransactionRequestV2 extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.GetSendManyTransactionRequestV2) - GetSendManyTransactionRequestV2OrBuilder { -private static final long serialVersionUID = 0L; - // Use GetSendManyTransactionRequestV2.newBuilder() to construct. - private GetSendManyTransactionRequestV2(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetSendManyTransactionRequestV2() { - txId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetSendManyTransactionRequestV2(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetSendManyTransactionRequestV2( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - txId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetSendManyTransactionRequestV2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetSendManyTransactionRequestV2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.qubic.archiver.proto.GetSendManyTransactionRequestV2.class, org.qubic.archiver.proto.GetSendManyTransactionRequestV2.Builder.class); - } - - public static final int TX_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object txId_; - /** - * string tx_id = 1; - * @return The txId. - */ - @java.lang.Override - public java.lang.String getTxId() { - java.lang.Object ref = txId_; - 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(); - txId_ = s; - return s; - } - } - /** - * string tx_id = 1; - * @return The bytes for txId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTxIdBytes() { - java.lang.Object ref = txId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - txId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getTxIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, txId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTxIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, txId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.qubic.archiver.proto.GetSendManyTransactionRequestV2)) { - return super.equals(obj); - } - org.qubic.archiver.proto.GetSendManyTransactionRequestV2 other = (org.qubic.archiver.proto.GetSendManyTransactionRequestV2) obj; - - if (!getTxId() - .equals(other.getTxId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TX_ID_FIELD_NUMBER; - hash = (53 * hash) + getTxId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.qubic.archiver.proto.GetSendManyTransactionRequestV2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetSendManyTransactionRequestV2 parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetSendManyTransactionRequestV2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetSendManyTransactionRequestV2 parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetSendManyTransactionRequestV2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetSendManyTransactionRequestV2 parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetSendManyTransactionRequestV2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetSendManyTransactionRequestV2 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 org.qubic.archiver.proto.GetSendManyTransactionRequestV2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetSendManyTransactionRequestV2 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 org.qubic.archiver.proto.GetSendManyTransactionRequestV2 parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetSendManyTransactionRequestV2 parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.qubic.archiver.proto.GetSendManyTransactionRequestV2 prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.GetSendManyTransactionRequestV2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.GetSendManyTransactionRequestV2) - org.qubic.archiver.proto.GetSendManyTransactionRequestV2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetSendManyTransactionRequestV2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetSendManyTransactionRequestV2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.qubic.archiver.proto.GetSendManyTransactionRequestV2.class, org.qubic.archiver.proto.GetSendManyTransactionRequestV2.Builder.class); - } - - // Construct using org.qubic.archiver.proto.GetSendManyTransactionRequestV2.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - txId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetSendManyTransactionRequestV2_descriptor; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetSendManyTransactionRequestV2 getDefaultInstanceForType() { - return org.qubic.archiver.proto.GetSendManyTransactionRequestV2.getDefaultInstance(); - } - - @java.lang.Override - public org.qubic.archiver.proto.GetSendManyTransactionRequestV2 build() { - org.qubic.archiver.proto.GetSendManyTransactionRequestV2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetSendManyTransactionRequestV2 buildPartial() { - org.qubic.archiver.proto.GetSendManyTransactionRequestV2 result = new org.qubic.archiver.proto.GetSendManyTransactionRequestV2(this); - result.txId_ = txId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.qubic.archiver.proto.GetSendManyTransactionRequestV2) { - return mergeFrom((org.qubic.archiver.proto.GetSendManyTransactionRequestV2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.qubic.archiver.proto.GetSendManyTransactionRequestV2 other) { - if (other == org.qubic.archiver.proto.GetSendManyTransactionRequestV2.getDefaultInstance()) return this; - if (!other.getTxId().isEmpty()) { - txId_ = other.txId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.qubic.archiver.proto.GetSendManyTransactionRequestV2 parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.qubic.archiver.proto.GetSendManyTransactionRequestV2) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object txId_ = ""; - /** - * string tx_id = 1; - * @return The txId. - */ - public java.lang.String getTxId() { - java.lang.Object ref = txId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - txId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string tx_id = 1; - * @return The bytes for txId. - */ - public com.google.protobuf.ByteString - getTxIdBytes() { - java.lang.Object ref = txId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - txId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string tx_id = 1; - * @param value The txId to set. - * @return This builder for chaining. - */ - public Builder setTxId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - txId_ = value; - onChanged(); - return this; - } - /** - * string tx_id = 1; - * @return This builder for chaining. - */ - public Builder clearTxId() { - - txId_ = getDefaultInstance().getTxId(); - onChanged(); - return this; - } - /** - * string tx_id = 1; - * @param value The bytes for txId to set. - * @return This builder for chaining. - */ - public Builder setTxIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - txId_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.GetSendManyTransactionRequestV2) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.GetSendManyTransactionRequestV2) - private static final org.qubic.archiver.proto.GetSendManyTransactionRequestV2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.qubic.archiver.proto.GetSendManyTransactionRequestV2(); - } - - public static org.qubic.archiver.proto.GetSendManyTransactionRequestV2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSendManyTransactionRequestV2 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetSendManyTransactionRequestV2(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetSendManyTransactionRequestV2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/GetSendManyTransactionRequestV2OrBuilder.java b/src/main/java/org/qubic/archiver/proto/GetSendManyTransactionRequestV2OrBuilder.java deleted file mode 100644 index 6f6a449..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetSendManyTransactionRequestV2OrBuilder.java +++ /dev/null @@ -1,21 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface GetSendManyTransactionRequestV2OrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.GetSendManyTransactionRequestV2) - com.google.protobuf.MessageOrBuilder { - - /** - * string tx_id = 1; - * @return The txId. - */ - java.lang.String getTxId(); - /** - * string tx_id = 1; - * @return The bytes for txId. - */ - com.google.protobuf.ByteString - getTxIdBytes(); -} diff --git a/src/main/java/org/qubic/archiver/proto/GetSendManyTransactionResponseV2.java b/src/main/java/org/qubic/archiver/proto/GetSendManyTransactionResponseV2.java deleted file mode 100644 index 2f87b95..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetSendManyTransactionResponseV2.java +++ /dev/null @@ -1,737 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.GetSendManyTransactionResponseV2} - */ -public final class GetSendManyTransactionResponseV2 extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.GetSendManyTransactionResponseV2) - GetSendManyTransactionResponseV2OrBuilder { -private static final long serialVersionUID = 0L; - // Use GetSendManyTransactionResponseV2.newBuilder() to construct. - private GetSendManyTransactionResponseV2(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetSendManyTransactionResponseV2() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetSendManyTransactionResponseV2(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetSendManyTransactionResponseV2( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: { - org.qubic.archiver.proto.SendManyTransaction.Builder subBuilder = null; - if (transaction_ != null) { - subBuilder = transaction_.toBuilder(); - } - transaction_ = input.readMessage(org.qubic.archiver.proto.SendManyTransaction.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(transaction_); - transaction_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - timestamp_ = input.readUInt64(); - break; - } - case 32: { - - moneyFlew_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetSendManyTransactionResponseV2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetSendManyTransactionResponseV2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.qubic.archiver.proto.GetSendManyTransactionResponseV2.class, org.qubic.archiver.proto.GetSendManyTransactionResponseV2.Builder.class); - } - - public static final int TRANSACTION_FIELD_NUMBER = 2; - private org.qubic.archiver.proto.SendManyTransaction transaction_; - /** - * .qubic.archiver.archive.pb.SendManyTransaction transaction = 2; - * @return Whether the transaction field is set. - */ - @java.lang.Override - public boolean hasTransaction() { - return transaction_ != null; - } - /** - * .qubic.archiver.archive.pb.SendManyTransaction transaction = 2; - * @return The transaction. - */ - @java.lang.Override - public org.qubic.archiver.proto.SendManyTransaction getTransaction() { - return transaction_ == null ? org.qubic.archiver.proto.SendManyTransaction.getDefaultInstance() : transaction_; - } - /** - * .qubic.archiver.archive.pb.SendManyTransaction transaction = 2; - */ - @java.lang.Override - public org.qubic.archiver.proto.SendManyTransactionOrBuilder getTransactionOrBuilder() { - return getTransaction(); - } - - public static final int TIMESTAMP_FIELD_NUMBER = 3; - private long timestamp_; - /** - * uint64 timestamp = 3; - * @return The timestamp. - */ - @java.lang.Override - public long getTimestamp() { - return timestamp_; - } - - public static final int MONEY_FLEW_FIELD_NUMBER = 4; - private boolean moneyFlew_; - /** - * bool money_flew = 4; - * @return The moneyFlew. - */ - @java.lang.Override - public boolean getMoneyFlew() { - return moneyFlew_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (transaction_ != null) { - output.writeMessage(2, getTransaction()); - } - if (timestamp_ != 0L) { - output.writeUInt64(3, timestamp_); - } - if (moneyFlew_ != false) { - output.writeBool(4, moneyFlew_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (transaction_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTransaction()); - } - if (timestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, timestamp_); - } - if (moneyFlew_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, moneyFlew_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.qubic.archiver.proto.GetSendManyTransactionResponseV2)) { - return super.equals(obj); - } - org.qubic.archiver.proto.GetSendManyTransactionResponseV2 other = (org.qubic.archiver.proto.GetSendManyTransactionResponseV2) obj; - - if (hasTransaction() != other.hasTransaction()) return false; - if (hasTransaction()) { - if (!getTransaction() - .equals(other.getTransaction())) return false; - } - if (getTimestamp() - != other.getTimestamp()) return false; - if (getMoneyFlew() - != other.getMoneyFlew()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasTransaction()) { - hash = (37 * hash) + TRANSACTION_FIELD_NUMBER; - hash = (53 * hash) + getTransaction().hashCode(); - } - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimestamp()); - hash = (37 * hash) + MONEY_FLEW_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getMoneyFlew()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.qubic.archiver.proto.GetSendManyTransactionResponseV2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetSendManyTransactionResponseV2 parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetSendManyTransactionResponseV2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetSendManyTransactionResponseV2 parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetSendManyTransactionResponseV2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetSendManyTransactionResponseV2 parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetSendManyTransactionResponseV2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetSendManyTransactionResponseV2 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 org.qubic.archiver.proto.GetSendManyTransactionResponseV2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetSendManyTransactionResponseV2 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 org.qubic.archiver.proto.GetSendManyTransactionResponseV2 parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetSendManyTransactionResponseV2 parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.qubic.archiver.proto.GetSendManyTransactionResponseV2 prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.GetSendManyTransactionResponseV2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.GetSendManyTransactionResponseV2) - org.qubic.archiver.proto.GetSendManyTransactionResponseV2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetSendManyTransactionResponseV2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetSendManyTransactionResponseV2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.qubic.archiver.proto.GetSendManyTransactionResponseV2.class, org.qubic.archiver.proto.GetSendManyTransactionResponseV2.Builder.class); - } - - // Construct using org.qubic.archiver.proto.GetSendManyTransactionResponseV2.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (transactionBuilder_ == null) { - transaction_ = null; - } else { - transaction_ = null; - transactionBuilder_ = null; - } - timestamp_ = 0L; - - moneyFlew_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetSendManyTransactionResponseV2_descriptor; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetSendManyTransactionResponseV2 getDefaultInstanceForType() { - return org.qubic.archiver.proto.GetSendManyTransactionResponseV2.getDefaultInstance(); - } - - @java.lang.Override - public org.qubic.archiver.proto.GetSendManyTransactionResponseV2 build() { - org.qubic.archiver.proto.GetSendManyTransactionResponseV2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetSendManyTransactionResponseV2 buildPartial() { - org.qubic.archiver.proto.GetSendManyTransactionResponseV2 result = new org.qubic.archiver.proto.GetSendManyTransactionResponseV2(this); - if (transactionBuilder_ == null) { - result.transaction_ = transaction_; - } else { - result.transaction_ = transactionBuilder_.build(); - } - result.timestamp_ = timestamp_; - result.moneyFlew_ = moneyFlew_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.qubic.archiver.proto.GetSendManyTransactionResponseV2) { - return mergeFrom((org.qubic.archiver.proto.GetSendManyTransactionResponseV2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.qubic.archiver.proto.GetSendManyTransactionResponseV2 other) { - if (other == org.qubic.archiver.proto.GetSendManyTransactionResponseV2.getDefaultInstance()) return this; - if (other.hasTransaction()) { - mergeTransaction(other.getTransaction()); - } - if (other.getTimestamp() != 0L) { - setTimestamp(other.getTimestamp()); - } - if (other.getMoneyFlew() != false) { - setMoneyFlew(other.getMoneyFlew()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.qubic.archiver.proto.GetSendManyTransactionResponseV2 parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.qubic.archiver.proto.GetSendManyTransactionResponseV2) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private org.qubic.archiver.proto.SendManyTransaction transaction_; - private com.google.protobuf.SingleFieldBuilderV3< - org.qubic.archiver.proto.SendManyTransaction, org.qubic.archiver.proto.SendManyTransaction.Builder, org.qubic.archiver.proto.SendManyTransactionOrBuilder> transactionBuilder_; - /** - * .qubic.archiver.archive.pb.SendManyTransaction transaction = 2; - * @return Whether the transaction field is set. - */ - public boolean hasTransaction() { - return transactionBuilder_ != null || transaction_ != null; - } - /** - * .qubic.archiver.archive.pb.SendManyTransaction transaction = 2; - * @return The transaction. - */ - public org.qubic.archiver.proto.SendManyTransaction getTransaction() { - if (transactionBuilder_ == null) { - return transaction_ == null ? org.qubic.archiver.proto.SendManyTransaction.getDefaultInstance() : transaction_; - } else { - return transactionBuilder_.getMessage(); - } - } - /** - * .qubic.archiver.archive.pb.SendManyTransaction transaction = 2; - */ - public Builder setTransaction(org.qubic.archiver.proto.SendManyTransaction value) { - if (transactionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - transaction_ = value; - onChanged(); - } else { - transactionBuilder_.setMessage(value); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.SendManyTransaction transaction = 2; - */ - public Builder setTransaction( - org.qubic.archiver.proto.SendManyTransaction.Builder builderForValue) { - if (transactionBuilder_ == null) { - transaction_ = builderForValue.build(); - onChanged(); - } else { - transactionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.SendManyTransaction transaction = 2; - */ - public Builder mergeTransaction(org.qubic.archiver.proto.SendManyTransaction value) { - if (transactionBuilder_ == null) { - if (transaction_ != null) { - transaction_ = - org.qubic.archiver.proto.SendManyTransaction.newBuilder(transaction_).mergeFrom(value).buildPartial(); - } else { - transaction_ = value; - } - onChanged(); - } else { - transactionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.SendManyTransaction transaction = 2; - */ - public Builder clearTransaction() { - if (transactionBuilder_ == null) { - transaction_ = null; - onChanged(); - } else { - transaction_ = null; - transactionBuilder_ = null; - } - - return this; - } - /** - * .qubic.archiver.archive.pb.SendManyTransaction transaction = 2; - */ - public org.qubic.archiver.proto.SendManyTransaction.Builder getTransactionBuilder() { - - onChanged(); - return getTransactionFieldBuilder().getBuilder(); - } - /** - * .qubic.archiver.archive.pb.SendManyTransaction transaction = 2; - */ - public org.qubic.archiver.proto.SendManyTransactionOrBuilder getTransactionOrBuilder() { - if (transactionBuilder_ != null) { - return transactionBuilder_.getMessageOrBuilder(); - } else { - return transaction_ == null ? - org.qubic.archiver.proto.SendManyTransaction.getDefaultInstance() : transaction_; - } - } - /** - * .qubic.archiver.archive.pb.SendManyTransaction transaction = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.qubic.archiver.proto.SendManyTransaction, org.qubic.archiver.proto.SendManyTransaction.Builder, org.qubic.archiver.proto.SendManyTransactionOrBuilder> - getTransactionFieldBuilder() { - if (transactionBuilder_ == null) { - transactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.qubic.archiver.proto.SendManyTransaction, org.qubic.archiver.proto.SendManyTransaction.Builder, org.qubic.archiver.proto.SendManyTransactionOrBuilder>( - getTransaction(), - getParentForChildren(), - isClean()); - transaction_ = null; - } - return transactionBuilder_; - } - - private long timestamp_ ; - /** - * uint64 timestamp = 3; - * @return The timestamp. - */ - @java.lang.Override - public long getTimestamp() { - return timestamp_; - } - /** - * uint64 timestamp = 3; - * @param value The timestamp to set. - * @return This builder for chaining. - */ - public Builder setTimestamp(long value) { - - timestamp_ = value; - onChanged(); - return this; - } - /** - * uint64 timestamp = 3; - * @return This builder for chaining. - */ - public Builder clearTimestamp() { - - timestamp_ = 0L; - onChanged(); - return this; - } - - private boolean moneyFlew_ ; - /** - * bool money_flew = 4; - * @return The moneyFlew. - */ - @java.lang.Override - public boolean getMoneyFlew() { - return moneyFlew_; - } - /** - * bool money_flew = 4; - * @param value The moneyFlew to set. - * @return This builder for chaining. - */ - public Builder setMoneyFlew(boolean value) { - - moneyFlew_ = value; - onChanged(); - return this; - } - /** - * bool money_flew = 4; - * @return This builder for chaining. - */ - public Builder clearMoneyFlew() { - - moneyFlew_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.GetSendManyTransactionResponseV2) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.GetSendManyTransactionResponseV2) - private static final org.qubic.archiver.proto.GetSendManyTransactionResponseV2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.qubic.archiver.proto.GetSendManyTransactionResponseV2(); - } - - public static org.qubic.archiver.proto.GetSendManyTransactionResponseV2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSendManyTransactionResponseV2 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetSendManyTransactionResponseV2(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetSendManyTransactionResponseV2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/GetSendManyTransactionResponseV2OrBuilder.java b/src/main/java/org/qubic/archiver/proto/GetSendManyTransactionResponseV2OrBuilder.java deleted file mode 100644 index b54287d..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetSendManyTransactionResponseV2OrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface GetSendManyTransactionResponseV2OrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.GetSendManyTransactionResponseV2) - com.google.protobuf.MessageOrBuilder { - - /** - * .qubic.archiver.archive.pb.SendManyTransaction transaction = 2; - * @return Whether the transaction field is set. - */ - boolean hasTransaction(); - /** - * .qubic.archiver.archive.pb.SendManyTransaction transaction = 2; - * @return The transaction. - */ - org.qubic.archiver.proto.SendManyTransaction getTransaction(); - /** - * .qubic.archiver.archive.pb.SendManyTransaction transaction = 2; - */ - org.qubic.archiver.proto.SendManyTransactionOrBuilder getTransactionOrBuilder(); - - /** - * uint64 timestamp = 3; - * @return The timestamp. - */ - long getTimestamp(); - - /** - * bool money_flew = 4; - * @return The moneyFlew. - */ - boolean getMoneyFlew(); -} diff --git a/src/main/java/org/qubic/archiver/proto/GetStatusResponse.java b/src/main/java/org/qubic/archiver/proto/GetStatusResponse.java deleted file mode 100644 index f7dd63a..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetStatusResponse.java +++ /dev/null @@ -1,1844 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.GetStatusResponse} - */ -public final class GetStatusResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.GetStatusResponse) - GetStatusResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetStatusResponse.newBuilder() to construct. - private GetStatusResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetStatusResponse() { - skippedTicks_ = java.util.Collections.emptyList(); - processedTickIntervalsPerEpoch_ = java.util.Collections.emptyList(); - } - - @Override - @SuppressWarnings({"unused"}) - protected Object newInstance( - UnusedPrivateParameter unused) { - return new GetStatusResponse(); - } - - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetStatusResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - ProcessedTick.Builder subBuilder = null; - if (lastProcessedTick_ != null) { - subBuilder = lastProcessedTick_.toBuilder(); - } - lastProcessedTick_ = input.readMessage(ProcessedTick.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastProcessedTick_); - lastProcessedTick_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - lastProcessedTicksPerEpoch_ = com.google.protobuf.MapField.newMapField( - LastProcessedTicksPerEpochDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - lastProcessedTicksPerEpoch__ = input.readMessage( - LastProcessedTicksPerEpochDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - lastProcessedTicksPerEpoch_.getMutableMap().put( - lastProcessedTicksPerEpoch__.getKey(), lastProcessedTicksPerEpoch__.getValue()); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - skippedTicks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - skippedTicks_.add( - input.readMessage(SkippedTicksInterval.parser(), extensionRegistry)); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - processedTickIntervalsPerEpoch_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - processedTickIntervalsPerEpoch_.add( - input.readMessage(ProcessedTickIntervalsPerEpoch.parser(), extensionRegistry)); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - emptyTicksPerEpoch_ = com.google.protobuf.MapField.newMapField( - EmptyTicksPerEpochDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000008; - } - com.google.protobuf.MapEntry - emptyTicksPerEpoch__ = input.readMessage( - EmptyTicksPerEpochDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - emptyTicksPerEpoch_.getMutableMap().put( - emptyTicksPerEpoch__.getKey(), emptyTicksPerEpoch__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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) != 0)) { - skippedTicks_ = java.util.Collections.unmodifiableList(skippedTicks_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - processedTickIntervalsPerEpoch_ = java.util.Collections.unmodifiableList(processedTickIntervalsPerEpoch_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetStatusResponse_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetLastProcessedTicksPerEpoch(); - case 5: - return internalGetEmptyTicksPerEpoch(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetStatusResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - GetStatusResponse.class, Builder.class); - } - - public static final int LAST_PROCESSED_TICK_FIELD_NUMBER = 1; - private ProcessedTick lastProcessedTick_; - /** - * .qubic.archiver.archive.pb.ProcessedTick last_processed_tick = 1; - * @return Whether the lastProcessedTick field is set. - */ - @Override - public boolean hasLastProcessedTick() { - return lastProcessedTick_ != null; - } - /** - * .qubic.archiver.archive.pb.ProcessedTick last_processed_tick = 1; - * @return The lastProcessedTick. - */ - @Override - public ProcessedTick getLastProcessedTick() { - return lastProcessedTick_ == null ? ProcessedTick.getDefaultInstance() : lastProcessedTick_; - } - /** - * .qubic.archiver.archive.pb.ProcessedTick last_processed_tick = 1; - */ - @Override - public ProcessedTickOrBuilder getLastProcessedTickOrBuilder() { - return getLastProcessedTick(); - } - - public static final int LAST_PROCESSED_TICKS_PER_EPOCH_FIELD_NUMBER = 2; - private static final class LastProcessedTicksPerEpochDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - Integer, Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetStatusResponse_LastProcessedTicksPerEpochEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0); - } - private com.google.protobuf.MapField< - Integer, Integer> lastProcessedTicksPerEpoch_; - private com.google.protobuf.MapField - internalGetLastProcessedTicksPerEpoch() { - if (lastProcessedTicksPerEpoch_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LastProcessedTicksPerEpochDefaultEntryHolder.defaultEntry); - } - return lastProcessedTicksPerEpoch_; - } - - public int getLastProcessedTicksPerEpochCount() { - return internalGetLastProcessedTicksPerEpoch().getMap().size(); - } - /** - * map<uint32, uint32> last_processed_ticks_per_epoch = 2; - */ - - @Override - public boolean containsLastProcessedTicksPerEpoch( - int key) { - - return internalGetLastProcessedTicksPerEpoch().getMap().containsKey(key); - } - /** - * Use {@link #getLastProcessedTicksPerEpochMap()} instead. - */ - @Override - @Deprecated - public java.util.Map getLastProcessedTicksPerEpoch() { - return getLastProcessedTicksPerEpochMap(); - } - /** - * map<uint32, uint32> last_processed_ticks_per_epoch = 2; - */ - @Override - - public java.util.Map getLastProcessedTicksPerEpochMap() { - return internalGetLastProcessedTicksPerEpoch().getMap(); - } - /** - * map<uint32, uint32> last_processed_ticks_per_epoch = 2; - */ - @Override - - public int getLastProcessedTicksPerEpochOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetLastProcessedTicksPerEpoch().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<uint32, uint32> last_processed_ticks_per_epoch = 2; - */ - @Override - - public int getLastProcessedTicksPerEpochOrThrow( - int key) { - - java.util.Map map = - internalGetLastProcessedTicksPerEpoch().getMap(); - if (!map.containsKey(key)) { - throw new IllegalArgumentException(); - } - return map.get(key); - } - - public static final int SKIPPED_TICKS_FIELD_NUMBER = 3; - private java.util.List skippedTicks_; - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 3; - */ - @Override - public java.util.List getSkippedTicksList() { - return skippedTicks_; - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 3; - */ - @Override - public java.util.List - getSkippedTicksOrBuilderList() { - return skippedTicks_; - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 3; - */ - @Override - public int getSkippedTicksCount() { - return skippedTicks_.size(); - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 3; - */ - @Override - public SkippedTicksInterval getSkippedTicks(int index) { - return skippedTicks_.get(index); - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 3; - */ - @Override - public SkippedTicksIntervalOrBuilder getSkippedTicksOrBuilder( - int index) { - return skippedTicks_.get(index); - } - - public static final int PROCESSED_TICK_INTERVALS_PER_EPOCH_FIELD_NUMBER = 4; - private java.util.List processedTickIntervalsPerEpoch_; - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickIntervalsPerEpoch processed_tick_intervals_per_epoch = 4; - */ - @Override - public java.util.List getProcessedTickIntervalsPerEpochList() { - return processedTickIntervalsPerEpoch_; - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickIntervalsPerEpoch processed_tick_intervals_per_epoch = 4; - */ - @Override - public java.util.List - getProcessedTickIntervalsPerEpochOrBuilderList() { - return processedTickIntervalsPerEpoch_; - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickIntervalsPerEpoch processed_tick_intervals_per_epoch = 4; - */ - @Override - public int getProcessedTickIntervalsPerEpochCount() { - return processedTickIntervalsPerEpoch_.size(); - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickIntervalsPerEpoch processed_tick_intervals_per_epoch = 4; - */ - @Override - public ProcessedTickIntervalsPerEpoch getProcessedTickIntervalsPerEpoch(int index) { - return processedTickIntervalsPerEpoch_.get(index); - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickIntervalsPerEpoch processed_tick_intervals_per_epoch = 4; - */ - @Override - public ProcessedTickIntervalsPerEpochOrBuilder getProcessedTickIntervalsPerEpochOrBuilder( - int index) { - return processedTickIntervalsPerEpoch_.get(index); - } - - public static final int EMPTY_TICKS_PER_EPOCH_FIELD_NUMBER = 5; - private static final class EmptyTicksPerEpochDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - Integer, Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetStatusResponse_EmptyTicksPerEpochEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0); - } - private com.google.protobuf.MapField< - Integer, Integer> emptyTicksPerEpoch_; - private com.google.protobuf.MapField - internalGetEmptyTicksPerEpoch() { - if (emptyTicksPerEpoch_ == null) { - return com.google.protobuf.MapField.emptyMapField( - EmptyTicksPerEpochDefaultEntryHolder.defaultEntry); - } - return emptyTicksPerEpoch_; - } - - public int getEmptyTicksPerEpochCount() { - return internalGetEmptyTicksPerEpoch().getMap().size(); - } - /** - * map<uint32, uint32> empty_ticks_per_epoch = 5; - */ - - @Override - public boolean containsEmptyTicksPerEpoch( - int key) { - - return internalGetEmptyTicksPerEpoch().getMap().containsKey(key); - } - /** - * Use {@link #getEmptyTicksPerEpochMap()} instead. - */ - @Override - @Deprecated - public java.util.Map getEmptyTicksPerEpoch() { - return getEmptyTicksPerEpochMap(); - } - /** - * map<uint32, uint32> empty_ticks_per_epoch = 5; - */ - @Override - - public java.util.Map getEmptyTicksPerEpochMap() { - return internalGetEmptyTicksPerEpoch().getMap(); - } - /** - * map<uint32, uint32> empty_ticks_per_epoch = 5; - */ - @Override - - public int getEmptyTicksPerEpochOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetEmptyTicksPerEpoch().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<uint32, uint32> empty_ticks_per_epoch = 5; - */ - @Override - - public int getEmptyTicksPerEpochOrThrow( - int key) { - - java.util.Map map = - internalGetEmptyTicksPerEpoch().getMap(); - if (!map.containsKey(key)) { - throw new IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (lastProcessedTick_ != null) { - output.writeMessage(1, getLastProcessedTick()); - } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetLastProcessedTicksPerEpoch(), - LastProcessedTicksPerEpochDefaultEntryHolder.defaultEntry, - 2); - for (int i = 0; i < skippedTicks_.size(); i++) { - output.writeMessage(3, skippedTicks_.get(i)); - } - for (int i = 0; i < processedTickIntervalsPerEpoch_.size(); i++) { - output.writeMessage(4, processedTickIntervalsPerEpoch_.get(i)); - } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetEmptyTicksPerEpoch(), - EmptyTicksPerEpochDefaultEntryHolder.defaultEntry, - 5); - unknownFields.writeTo(output); - } - - @Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (lastProcessedTick_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getLastProcessedTick()); - } - for (java.util.Map.Entry entry - : internalGetLastProcessedTicksPerEpoch().getMap().entrySet()) { - com.google.protobuf.MapEntry - lastProcessedTicksPerEpoch__ = LastProcessedTicksPerEpochDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, lastProcessedTicksPerEpoch__); - } - for (int i = 0; i < skippedTicks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, skippedTicks_.get(i)); - } - for (int i = 0; i < processedTickIntervalsPerEpoch_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, processedTickIntervalsPerEpoch_.get(i)); - } - for (java.util.Map.Entry entry - : internalGetEmptyTicksPerEpoch().getMap().entrySet()) { - com.google.protobuf.MapEntry - emptyTicksPerEpoch__ = EmptyTicksPerEpochDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, emptyTicksPerEpoch__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @Override - public boolean equals(final Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof GetStatusResponse)) { - return super.equals(obj); - } - GetStatusResponse other = (GetStatusResponse) obj; - - if (hasLastProcessedTick() != other.hasLastProcessedTick()) return false; - if (hasLastProcessedTick()) { - if (!getLastProcessedTick() - .equals(other.getLastProcessedTick())) return false; - } - if (!internalGetLastProcessedTicksPerEpoch().equals( - other.internalGetLastProcessedTicksPerEpoch())) return false; - if (!getSkippedTicksList() - .equals(other.getSkippedTicksList())) return false; - if (!getProcessedTickIntervalsPerEpochList() - .equals(other.getProcessedTickIntervalsPerEpochList())) return false; - if (!internalGetEmptyTicksPerEpoch().equals( - other.internalGetEmptyTicksPerEpoch())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasLastProcessedTick()) { - hash = (37 * hash) + LAST_PROCESSED_TICK_FIELD_NUMBER; - hash = (53 * hash) + getLastProcessedTick().hashCode(); - } - if (!internalGetLastProcessedTicksPerEpoch().getMap().isEmpty()) { - hash = (37 * hash) + LAST_PROCESSED_TICKS_PER_EPOCH_FIELD_NUMBER; - hash = (53 * hash) + internalGetLastProcessedTicksPerEpoch().hashCode(); - } - if (getSkippedTicksCount() > 0) { - hash = (37 * hash) + SKIPPED_TICKS_FIELD_NUMBER; - hash = (53 * hash) + getSkippedTicksList().hashCode(); - } - if (getProcessedTickIntervalsPerEpochCount() > 0) { - hash = (37 * hash) + PROCESSED_TICK_INTERVALS_PER_EPOCH_FIELD_NUMBER; - hash = (53 * hash) + getProcessedTickIntervalsPerEpochList().hashCode(); - } - if (!internalGetEmptyTicksPerEpoch().getMap().isEmpty()) { - hash = (37 * hash) + EMPTY_TICKS_PER_EPOCH_FIELD_NUMBER; - hash = (53 * hash) + internalGetEmptyTicksPerEpoch().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static GetStatusResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetStatusResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetStatusResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetStatusResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetStatusResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetStatusResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetStatusResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static GetStatusResponse 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 GetStatusResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static GetStatusResponse 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 GetStatusResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static GetStatusResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(GetStatusResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.GetStatusResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.GetStatusResponse) - GetStatusResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetStatusResponse_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetLastProcessedTicksPerEpoch(); - case 5: - return internalGetEmptyTicksPerEpoch(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 2: - return internalGetMutableLastProcessedTicksPerEpoch(); - case 5: - return internalGetMutableEmptyTicksPerEpoch(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetStatusResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - GetStatusResponse.class, Builder.class); - } - - // Construct using org.qubic.archiver.proto.GetStatusResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getSkippedTicksFieldBuilder(); - getProcessedTickIntervalsPerEpochFieldBuilder(); - } - } - @Override - public Builder clear() { - super.clear(); - if (lastProcessedTickBuilder_ == null) { - lastProcessedTick_ = null; - } else { - lastProcessedTick_ = null; - lastProcessedTickBuilder_ = null; - } - internalGetMutableLastProcessedTicksPerEpoch().clear(); - if (skippedTicksBuilder_ == null) { - skippedTicks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - skippedTicksBuilder_.clear(); - } - if (processedTickIntervalsPerEpochBuilder_ == null) { - processedTickIntervalsPerEpoch_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - processedTickIntervalsPerEpochBuilder_.clear(); - } - internalGetMutableEmptyTicksPerEpoch().clear(); - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetStatusResponse_descriptor; - } - - @Override - public GetStatusResponse getDefaultInstanceForType() { - return GetStatusResponse.getDefaultInstance(); - } - - @Override - public GetStatusResponse build() { - GetStatusResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public GetStatusResponse buildPartial() { - GetStatusResponse result = new GetStatusResponse(this); - int from_bitField0_ = bitField0_; - if (lastProcessedTickBuilder_ == null) { - result.lastProcessedTick_ = lastProcessedTick_; - } else { - result.lastProcessedTick_ = lastProcessedTickBuilder_.build(); - } - result.lastProcessedTicksPerEpoch_ = internalGetLastProcessedTicksPerEpoch(); - result.lastProcessedTicksPerEpoch_.makeImmutable(); - if (skippedTicksBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - skippedTicks_ = java.util.Collections.unmodifiableList(skippedTicks_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.skippedTicks_ = skippedTicks_; - } else { - result.skippedTicks_ = skippedTicksBuilder_.build(); - } - if (processedTickIntervalsPerEpochBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - processedTickIntervalsPerEpoch_ = java.util.Collections.unmodifiableList(processedTickIntervalsPerEpoch_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.processedTickIntervalsPerEpoch_ = processedTickIntervalsPerEpoch_; - } else { - result.processedTickIntervalsPerEpoch_ = processedTickIntervalsPerEpochBuilder_.build(); - } - result.emptyTicksPerEpoch_ = internalGetEmptyTicksPerEpoch(); - result.emptyTicksPerEpoch_.makeImmutable(); - onBuilt(); - return result; - } - - @Override - public Builder clone() { - return super.clone(); - } - @Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.setField(field, value); - } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return super.setRepeatedField(field, index, value); - } - @Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.addRepeatedField(field, value); - } - @Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof GetStatusResponse) { - return mergeFrom((GetStatusResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(GetStatusResponse other) { - if (other == GetStatusResponse.getDefaultInstance()) return this; - if (other.hasLastProcessedTick()) { - mergeLastProcessedTick(other.getLastProcessedTick()); - } - internalGetMutableLastProcessedTicksPerEpoch().mergeFrom( - other.internalGetLastProcessedTicksPerEpoch()); - if (skippedTicksBuilder_ == null) { - if (!other.skippedTicks_.isEmpty()) { - if (skippedTicks_.isEmpty()) { - skippedTicks_ = other.skippedTicks_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureSkippedTicksIsMutable(); - skippedTicks_.addAll(other.skippedTicks_); - } - onChanged(); - } - } else { - if (!other.skippedTicks_.isEmpty()) { - if (skippedTicksBuilder_.isEmpty()) { - skippedTicksBuilder_.dispose(); - skippedTicksBuilder_ = null; - skippedTicks_ = other.skippedTicks_; - bitField0_ = (bitField0_ & ~0x00000002); - skippedTicksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSkippedTicksFieldBuilder() : null; - } else { - skippedTicksBuilder_.addAllMessages(other.skippedTicks_); - } - } - } - if (processedTickIntervalsPerEpochBuilder_ == null) { - if (!other.processedTickIntervalsPerEpoch_.isEmpty()) { - if (processedTickIntervalsPerEpoch_.isEmpty()) { - processedTickIntervalsPerEpoch_ = other.processedTickIntervalsPerEpoch_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureProcessedTickIntervalsPerEpochIsMutable(); - processedTickIntervalsPerEpoch_.addAll(other.processedTickIntervalsPerEpoch_); - } - onChanged(); - } - } else { - if (!other.processedTickIntervalsPerEpoch_.isEmpty()) { - if (processedTickIntervalsPerEpochBuilder_.isEmpty()) { - processedTickIntervalsPerEpochBuilder_.dispose(); - processedTickIntervalsPerEpochBuilder_ = null; - processedTickIntervalsPerEpoch_ = other.processedTickIntervalsPerEpoch_; - bitField0_ = (bitField0_ & ~0x00000004); - processedTickIntervalsPerEpochBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getProcessedTickIntervalsPerEpochFieldBuilder() : null; - } else { - processedTickIntervalsPerEpochBuilder_.addAllMessages(other.processedTickIntervalsPerEpoch_); - } - } - } - internalGetMutableEmptyTicksPerEpoch().mergeFrom( - other.internalGetEmptyTicksPerEpoch()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - GetStatusResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (GetStatusResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private ProcessedTick lastProcessedTick_; - private com.google.protobuf.SingleFieldBuilderV3< - ProcessedTick, ProcessedTick.Builder, ProcessedTickOrBuilder> lastProcessedTickBuilder_; - /** - * .qubic.archiver.archive.pb.ProcessedTick last_processed_tick = 1; - * @return Whether the lastProcessedTick field is set. - */ - public boolean hasLastProcessedTick() { - return lastProcessedTickBuilder_ != null || lastProcessedTick_ != null; - } - /** - * .qubic.archiver.archive.pb.ProcessedTick last_processed_tick = 1; - * @return The lastProcessedTick. - */ - public ProcessedTick getLastProcessedTick() { - if (lastProcessedTickBuilder_ == null) { - return lastProcessedTick_ == null ? ProcessedTick.getDefaultInstance() : lastProcessedTick_; - } else { - return lastProcessedTickBuilder_.getMessage(); - } - } - /** - * .qubic.archiver.archive.pb.ProcessedTick last_processed_tick = 1; - */ - public Builder setLastProcessedTick(ProcessedTick value) { - if (lastProcessedTickBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - lastProcessedTick_ = value; - onChanged(); - } else { - lastProcessedTickBuilder_.setMessage(value); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.ProcessedTick last_processed_tick = 1; - */ - public Builder setLastProcessedTick( - ProcessedTick.Builder builderForValue) { - if (lastProcessedTickBuilder_ == null) { - lastProcessedTick_ = builderForValue.build(); - onChanged(); - } else { - lastProcessedTickBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.ProcessedTick last_processed_tick = 1; - */ - public Builder mergeLastProcessedTick(ProcessedTick value) { - if (lastProcessedTickBuilder_ == null) { - if (lastProcessedTick_ != null) { - lastProcessedTick_ = - ProcessedTick.newBuilder(lastProcessedTick_).mergeFrom(value).buildPartial(); - } else { - lastProcessedTick_ = value; - } - onChanged(); - } else { - lastProcessedTickBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.ProcessedTick last_processed_tick = 1; - */ - public Builder clearLastProcessedTick() { - if (lastProcessedTickBuilder_ == null) { - lastProcessedTick_ = null; - onChanged(); - } else { - lastProcessedTick_ = null; - lastProcessedTickBuilder_ = null; - } - - return this; - } - /** - * .qubic.archiver.archive.pb.ProcessedTick last_processed_tick = 1; - */ - public ProcessedTick.Builder getLastProcessedTickBuilder() { - - onChanged(); - return getLastProcessedTickFieldBuilder().getBuilder(); - } - /** - * .qubic.archiver.archive.pb.ProcessedTick last_processed_tick = 1; - */ - public ProcessedTickOrBuilder getLastProcessedTickOrBuilder() { - if (lastProcessedTickBuilder_ != null) { - return lastProcessedTickBuilder_.getMessageOrBuilder(); - } else { - return lastProcessedTick_ == null ? - ProcessedTick.getDefaultInstance() : lastProcessedTick_; - } - } - /** - * .qubic.archiver.archive.pb.ProcessedTick last_processed_tick = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - ProcessedTick, ProcessedTick.Builder, ProcessedTickOrBuilder> - getLastProcessedTickFieldBuilder() { - if (lastProcessedTickBuilder_ == null) { - lastProcessedTickBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - ProcessedTick, ProcessedTick.Builder, ProcessedTickOrBuilder>( - getLastProcessedTick(), - getParentForChildren(), - isClean()); - lastProcessedTick_ = null; - } - return lastProcessedTickBuilder_; - } - - private com.google.protobuf.MapField< - Integer, Integer> lastProcessedTicksPerEpoch_; - private com.google.protobuf.MapField - internalGetLastProcessedTicksPerEpoch() { - if (lastProcessedTicksPerEpoch_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LastProcessedTicksPerEpochDefaultEntryHolder.defaultEntry); - } - return lastProcessedTicksPerEpoch_; - } - private com.google.protobuf.MapField - internalGetMutableLastProcessedTicksPerEpoch() { - onChanged();; - if (lastProcessedTicksPerEpoch_ == null) { - lastProcessedTicksPerEpoch_ = com.google.protobuf.MapField.newMapField( - LastProcessedTicksPerEpochDefaultEntryHolder.defaultEntry); - } - if (!lastProcessedTicksPerEpoch_.isMutable()) { - lastProcessedTicksPerEpoch_ = lastProcessedTicksPerEpoch_.copy(); - } - return lastProcessedTicksPerEpoch_; - } - - public int getLastProcessedTicksPerEpochCount() { - return internalGetLastProcessedTicksPerEpoch().getMap().size(); - } - /** - * map<uint32, uint32> last_processed_ticks_per_epoch = 2; - */ - - @Override - public boolean containsLastProcessedTicksPerEpoch( - int key) { - - return internalGetLastProcessedTicksPerEpoch().getMap().containsKey(key); - } - /** - * Use {@link #getLastProcessedTicksPerEpochMap()} instead. - */ - @Override - @Deprecated - public java.util.Map getLastProcessedTicksPerEpoch() { - return getLastProcessedTicksPerEpochMap(); - } - /** - * map<uint32, uint32> last_processed_ticks_per_epoch = 2; - */ - @Override - - public java.util.Map getLastProcessedTicksPerEpochMap() { - return internalGetLastProcessedTicksPerEpoch().getMap(); - } - /** - * map<uint32, uint32> last_processed_ticks_per_epoch = 2; - */ - @Override - - public int getLastProcessedTicksPerEpochOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetLastProcessedTicksPerEpoch().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<uint32, uint32> last_processed_ticks_per_epoch = 2; - */ - @Override - - public int getLastProcessedTicksPerEpochOrThrow( - int key) { - - java.util.Map map = - internalGetLastProcessedTicksPerEpoch().getMap(); - if (!map.containsKey(key)) { - throw new IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLastProcessedTicksPerEpoch() { - internalGetMutableLastProcessedTicksPerEpoch().getMutableMap() - .clear(); - return this; - } - /** - * map<uint32, uint32> last_processed_ticks_per_epoch = 2; - */ - - public Builder removeLastProcessedTicksPerEpoch( - int key) { - - internalGetMutableLastProcessedTicksPerEpoch().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @Deprecated - public java.util.Map - getMutableLastProcessedTicksPerEpoch() { - return internalGetMutableLastProcessedTicksPerEpoch().getMutableMap(); - } - /** - * map<uint32, uint32> last_processed_ticks_per_epoch = 2; - */ - public Builder putLastProcessedTicksPerEpoch( - int key, - int value) { - - - internalGetMutableLastProcessedTicksPerEpoch().getMutableMap() - .put(key, value); - return this; - } - /** - * map<uint32, uint32> last_processed_ticks_per_epoch = 2; - */ - - public Builder putAllLastProcessedTicksPerEpoch( - java.util.Map values) { - internalGetMutableLastProcessedTicksPerEpoch().getMutableMap() - .putAll(values); - return this; - } - - private java.util.List skippedTicks_ = - java.util.Collections.emptyList(); - private void ensureSkippedTicksIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - skippedTicks_ = new java.util.ArrayList(skippedTicks_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - SkippedTicksInterval, SkippedTicksInterval.Builder, SkippedTicksIntervalOrBuilder> skippedTicksBuilder_; - - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 3; - */ - public java.util.List getSkippedTicksList() { - if (skippedTicksBuilder_ == null) { - return java.util.Collections.unmodifiableList(skippedTicks_); - } else { - return skippedTicksBuilder_.getMessageList(); - } - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 3; - */ - public int getSkippedTicksCount() { - if (skippedTicksBuilder_ == null) { - return skippedTicks_.size(); - } else { - return skippedTicksBuilder_.getCount(); - } - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 3; - */ - public SkippedTicksInterval getSkippedTicks(int index) { - if (skippedTicksBuilder_ == null) { - return skippedTicks_.get(index); - } else { - return skippedTicksBuilder_.getMessage(index); - } - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 3; - */ - public Builder setSkippedTicks( - int index, SkippedTicksInterval value) { - if (skippedTicksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSkippedTicksIsMutable(); - skippedTicks_.set(index, value); - onChanged(); - } else { - skippedTicksBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 3; - */ - public Builder setSkippedTicks( - int index, SkippedTicksInterval.Builder builderForValue) { - if (skippedTicksBuilder_ == null) { - ensureSkippedTicksIsMutable(); - skippedTicks_.set(index, builderForValue.build()); - onChanged(); - } else { - skippedTicksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 3; - */ - public Builder addSkippedTicks(SkippedTicksInterval value) { - if (skippedTicksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSkippedTicksIsMutable(); - skippedTicks_.add(value); - onChanged(); - } else { - skippedTicksBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 3; - */ - public Builder addSkippedTicks( - int index, SkippedTicksInterval value) { - if (skippedTicksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSkippedTicksIsMutable(); - skippedTicks_.add(index, value); - onChanged(); - } else { - skippedTicksBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 3; - */ - public Builder addSkippedTicks( - SkippedTicksInterval.Builder builderForValue) { - if (skippedTicksBuilder_ == null) { - ensureSkippedTicksIsMutable(); - skippedTicks_.add(builderForValue.build()); - onChanged(); - } else { - skippedTicksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 3; - */ - public Builder addSkippedTicks( - int index, SkippedTicksInterval.Builder builderForValue) { - if (skippedTicksBuilder_ == null) { - ensureSkippedTicksIsMutable(); - skippedTicks_.add(index, builderForValue.build()); - onChanged(); - } else { - skippedTicksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 3; - */ - public Builder addAllSkippedTicks( - Iterable values) { - if (skippedTicksBuilder_ == null) { - ensureSkippedTicksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, skippedTicks_); - onChanged(); - } else { - skippedTicksBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 3; - */ - public Builder clearSkippedTicks() { - if (skippedTicksBuilder_ == null) { - skippedTicks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - skippedTicksBuilder_.clear(); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 3; - */ - public Builder removeSkippedTicks(int index) { - if (skippedTicksBuilder_ == null) { - ensureSkippedTicksIsMutable(); - skippedTicks_.remove(index); - onChanged(); - } else { - skippedTicksBuilder_.remove(index); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 3; - */ - public SkippedTicksInterval.Builder getSkippedTicksBuilder( - int index) { - return getSkippedTicksFieldBuilder().getBuilder(index); - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 3; - */ - public SkippedTicksIntervalOrBuilder getSkippedTicksOrBuilder( - int index) { - if (skippedTicksBuilder_ == null) { - return skippedTicks_.get(index); } else { - return skippedTicksBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 3; - */ - public java.util.List - getSkippedTicksOrBuilderList() { - if (skippedTicksBuilder_ != null) { - return skippedTicksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(skippedTicks_); - } - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 3; - */ - public SkippedTicksInterval.Builder addSkippedTicksBuilder() { - return getSkippedTicksFieldBuilder().addBuilder( - SkippedTicksInterval.getDefaultInstance()); - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 3; - */ - public SkippedTicksInterval.Builder addSkippedTicksBuilder( - int index) { - return getSkippedTicksFieldBuilder().addBuilder( - index, SkippedTicksInterval.getDefaultInstance()); - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 3; - */ - public java.util.List - getSkippedTicksBuilderList() { - return getSkippedTicksFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - SkippedTicksInterval, SkippedTicksInterval.Builder, SkippedTicksIntervalOrBuilder> - getSkippedTicksFieldBuilder() { - if (skippedTicksBuilder_ == null) { - skippedTicksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - SkippedTicksInterval, SkippedTicksInterval.Builder, SkippedTicksIntervalOrBuilder>( - skippedTicks_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - skippedTicks_ = null; - } - return skippedTicksBuilder_; - } - - private java.util.List processedTickIntervalsPerEpoch_ = - java.util.Collections.emptyList(); - private void ensureProcessedTickIntervalsPerEpochIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - processedTickIntervalsPerEpoch_ = new java.util.ArrayList(processedTickIntervalsPerEpoch_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - ProcessedTickIntervalsPerEpoch, ProcessedTickIntervalsPerEpoch.Builder, ProcessedTickIntervalsPerEpochOrBuilder> processedTickIntervalsPerEpochBuilder_; - - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickIntervalsPerEpoch processed_tick_intervals_per_epoch = 4; - */ - public java.util.List getProcessedTickIntervalsPerEpochList() { - if (processedTickIntervalsPerEpochBuilder_ == null) { - return java.util.Collections.unmodifiableList(processedTickIntervalsPerEpoch_); - } else { - return processedTickIntervalsPerEpochBuilder_.getMessageList(); - } - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickIntervalsPerEpoch processed_tick_intervals_per_epoch = 4; - */ - public int getProcessedTickIntervalsPerEpochCount() { - if (processedTickIntervalsPerEpochBuilder_ == null) { - return processedTickIntervalsPerEpoch_.size(); - } else { - return processedTickIntervalsPerEpochBuilder_.getCount(); - } - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickIntervalsPerEpoch processed_tick_intervals_per_epoch = 4; - */ - public ProcessedTickIntervalsPerEpoch getProcessedTickIntervalsPerEpoch(int index) { - if (processedTickIntervalsPerEpochBuilder_ == null) { - return processedTickIntervalsPerEpoch_.get(index); - } else { - return processedTickIntervalsPerEpochBuilder_.getMessage(index); - } - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickIntervalsPerEpoch processed_tick_intervals_per_epoch = 4; - */ - public Builder setProcessedTickIntervalsPerEpoch( - int index, ProcessedTickIntervalsPerEpoch value) { - if (processedTickIntervalsPerEpochBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProcessedTickIntervalsPerEpochIsMutable(); - processedTickIntervalsPerEpoch_.set(index, value); - onChanged(); - } else { - processedTickIntervalsPerEpochBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickIntervalsPerEpoch processed_tick_intervals_per_epoch = 4; - */ - public Builder setProcessedTickIntervalsPerEpoch( - int index, ProcessedTickIntervalsPerEpoch.Builder builderForValue) { - if (processedTickIntervalsPerEpochBuilder_ == null) { - ensureProcessedTickIntervalsPerEpochIsMutable(); - processedTickIntervalsPerEpoch_.set(index, builderForValue.build()); - onChanged(); - } else { - processedTickIntervalsPerEpochBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickIntervalsPerEpoch processed_tick_intervals_per_epoch = 4; - */ - public Builder addProcessedTickIntervalsPerEpoch(ProcessedTickIntervalsPerEpoch value) { - if (processedTickIntervalsPerEpochBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProcessedTickIntervalsPerEpochIsMutable(); - processedTickIntervalsPerEpoch_.add(value); - onChanged(); - } else { - processedTickIntervalsPerEpochBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickIntervalsPerEpoch processed_tick_intervals_per_epoch = 4; - */ - public Builder addProcessedTickIntervalsPerEpoch( - int index, ProcessedTickIntervalsPerEpoch value) { - if (processedTickIntervalsPerEpochBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProcessedTickIntervalsPerEpochIsMutable(); - processedTickIntervalsPerEpoch_.add(index, value); - onChanged(); - } else { - processedTickIntervalsPerEpochBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickIntervalsPerEpoch processed_tick_intervals_per_epoch = 4; - */ - public Builder addProcessedTickIntervalsPerEpoch( - ProcessedTickIntervalsPerEpoch.Builder builderForValue) { - if (processedTickIntervalsPerEpochBuilder_ == null) { - ensureProcessedTickIntervalsPerEpochIsMutable(); - processedTickIntervalsPerEpoch_.add(builderForValue.build()); - onChanged(); - } else { - processedTickIntervalsPerEpochBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickIntervalsPerEpoch processed_tick_intervals_per_epoch = 4; - */ - public Builder addProcessedTickIntervalsPerEpoch( - int index, ProcessedTickIntervalsPerEpoch.Builder builderForValue) { - if (processedTickIntervalsPerEpochBuilder_ == null) { - ensureProcessedTickIntervalsPerEpochIsMutable(); - processedTickIntervalsPerEpoch_.add(index, builderForValue.build()); - onChanged(); - } else { - processedTickIntervalsPerEpochBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickIntervalsPerEpoch processed_tick_intervals_per_epoch = 4; - */ - public Builder addAllProcessedTickIntervalsPerEpoch( - Iterable values) { - if (processedTickIntervalsPerEpochBuilder_ == null) { - ensureProcessedTickIntervalsPerEpochIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, processedTickIntervalsPerEpoch_); - onChanged(); - } else { - processedTickIntervalsPerEpochBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickIntervalsPerEpoch processed_tick_intervals_per_epoch = 4; - */ - public Builder clearProcessedTickIntervalsPerEpoch() { - if (processedTickIntervalsPerEpochBuilder_ == null) { - processedTickIntervalsPerEpoch_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - processedTickIntervalsPerEpochBuilder_.clear(); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickIntervalsPerEpoch processed_tick_intervals_per_epoch = 4; - */ - public Builder removeProcessedTickIntervalsPerEpoch(int index) { - if (processedTickIntervalsPerEpochBuilder_ == null) { - ensureProcessedTickIntervalsPerEpochIsMutable(); - processedTickIntervalsPerEpoch_.remove(index); - onChanged(); - } else { - processedTickIntervalsPerEpochBuilder_.remove(index); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickIntervalsPerEpoch processed_tick_intervals_per_epoch = 4; - */ - public ProcessedTickIntervalsPerEpoch.Builder getProcessedTickIntervalsPerEpochBuilder( - int index) { - return getProcessedTickIntervalsPerEpochFieldBuilder().getBuilder(index); - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickIntervalsPerEpoch processed_tick_intervals_per_epoch = 4; - */ - public ProcessedTickIntervalsPerEpochOrBuilder getProcessedTickIntervalsPerEpochOrBuilder( - int index) { - if (processedTickIntervalsPerEpochBuilder_ == null) { - return processedTickIntervalsPerEpoch_.get(index); } else { - return processedTickIntervalsPerEpochBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickIntervalsPerEpoch processed_tick_intervals_per_epoch = 4; - */ - public java.util.List - getProcessedTickIntervalsPerEpochOrBuilderList() { - if (processedTickIntervalsPerEpochBuilder_ != null) { - return processedTickIntervalsPerEpochBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(processedTickIntervalsPerEpoch_); - } - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickIntervalsPerEpoch processed_tick_intervals_per_epoch = 4; - */ - public ProcessedTickIntervalsPerEpoch.Builder addProcessedTickIntervalsPerEpochBuilder() { - return getProcessedTickIntervalsPerEpochFieldBuilder().addBuilder( - ProcessedTickIntervalsPerEpoch.getDefaultInstance()); - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickIntervalsPerEpoch processed_tick_intervals_per_epoch = 4; - */ - public ProcessedTickIntervalsPerEpoch.Builder addProcessedTickIntervalsPerEpochBuilder( - int index) { - return getProcessedTickIntervalsPerEpochFieldBuilder().addBuilder( - index, ProcessedTickIntervalsPerEpoch.getDefaultInstance()); - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickIntervalsPerEpoch processed_tick_intervals_per_epoch = 4; - */ - public java.util.List - getProcessedTickIntervalsPerEpochBuilderList() { - return getProcessedTickIntervalsPerEpochFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - ProcessedTickIntervalsPerEpoch, ProcessedTickIntervalsPerEpoch.Builder, ProcessedTickIntervalsPerEpochOrBuilder> - getProcessedTickIntervalsPerEpochFieldBuilder() { - if (processedTickIntervalsPerEpochBuilder_ == null) { - processedTickIntervalsPerEpochBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - ProcessedTickIntervalsPerEpoch, ProcessedTickIntervalsPerEpoch.Builder, ProcessedTickIntervalsPerEpochOrBuilder>( - processedTickIntervalsPerEpoch_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - processedTickIntervalsPerEpoch_ = null; - } - return processedTickIntervalsPerEpochBuilder_; - } - - private com.google.protobuf.MapField< - Integer, Integer> emptyTicksPerEpoch_; - private com.google.protobuf.MapField - internalGetEmptyTicksPerEpoch() { - if (emptyTicksPerEpoch_ == null) { - return com.google.protobuf.MapField.emptyMapField( - EmptyTicksPerEpochDefaultEntryHolder.defaultEntry); - } - return emptyTicksPerEpoch_; - } - private com.google.protobuf.MapField - internalGetMutableEmptyTicksPerEpoch() { - onChanged();; - if (emptyTicksPerEpoch_ == null) { - emptyTicksPerEpoch_ = com.google.protobuf.MapField.newMapField( - EmptyTicksPerEpochDefaultEntryHolder.defaultEntry); - } - if (!emptyTicksPerEpoch_.isMutable()) { - emptyTicksPerEpoch_ = emptyTicksPerEpoch_.copy(); - } - return emptyTicksPerEpoch_; - } - - public int getEmptyTicksPerEpochCount() { - return internalGetEmptyTicksPerEpoch().getMap().size(); - } - /** - * map<uint32, uint32> empty_ticks_per_epoch = 5; - */ - - @Override - public boolean containsEmptyTicksPerEpoch( - int key) { - - return internalGetEmptyTicksPerEpoch().getMap().containsKey(key); - } - /** - * Use {@link #getEmptyTicksPerEpochMap()} instead. - */ - @Override - @Deprecated - public java.util.Map getEmptyTicksPerEpoch() { - return getEmptyTicksPerEpochMap(); - } - /** - * map<uint32, uint32> empty_ticks_per_epoch = 5; - */ - @Override - - public java.util.Map getEmptyTicksPerEpochMap() { - return internalGetEmptyTicksPerEpoch().getMap(); - } - /** - * map<uint32, uint32> empty_ticks_per_epoch = 5; - */ - @Override - - public int getEmptyTicksPerEpochOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetEmptyTicksPerEpoch().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<uint32, uint32> empty_ticks_per_epoch = 5; - */ - @Override - - public int getEmptyTicksPerEpochOrThrow( - int key) { - - java.util.Map map = - internalGetEmptyTicksPerEpoch().getMap(); - if (!map.containsKey(key)) { - throw new IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearEmptyTicksPerEpoch() { - internalGetMutableEmptyTicksPerEpoch().getMutableMap() - .clear(); - return this; - } - /** - * map<uint32, uint32> empty_ticks_per_epoch = 5; - */ - - public Builder removeEmptyTicksPerEpoch( - int key) { - - internalGetMutableEmptyTicksPerEpoch().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @Deprecated - public java.util.Map - getMutableEmptyTicksPerEpoch() { - return internalGetMutableEmptyTicksPerEpoch().getMutableMap(); - } - /** - * map<uint32, uint32> empty_ticks_per_epoch = 5; - */ - public Builder putEmptyTicksPerEpoch( - int key, - int value) { - - - internalGetMutableEmptyTicksPerEpoch().getMutableMap() - .put(key, value); - return this; - } - /** - * map<uint32, uint32> empty_ticks_per_epoch = 5; - */ - - public Builder putAllEmptyTicksPerEpoch( - java.util.Map values) { - internalGetMutableEmptyTicksPerEpoch().getMutableMap() - .putAll(values); - return this; - } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.GetStatusResponse) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.GetStatusResponse) - private static final GetStatusResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new GetStatusResponse(); - } - - public static GetStatusResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public GetStatusResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetStatusResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public GetStatusResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/GetStatusResponseOrBuilder.java b/src/main/java/org/qubic/archiver/proto/GetStatusResponseOrBuilder.java deleted file mode 100644 index e4b8d9a..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetStatusResponseOrBuilder.java +++ /dev/null @@ -1,140 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface GetStatusResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.GetStatusResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .qubic.archiver.archive.pb.ProcessedTick last_processed_tick = 1; - * @return Whether the lastProcessedTick field is set. - */ - boolean hasLastProcessedTick(); - /** - * .qubic.archiver.archive.pb.ProcessedTick last_processed_tick = 1; - * @return The lastProcessedTick. - */ - org.qubic.archiver.proto.ProcessedTick getLastProcessedTick(); - /** - * .qubic.archiver.archive.pb.ProcessedTick last_processed_tick = 1; - */ - org.qubic.archiver.proto.ProcessedTickOrBuilder getLastProcessedTickOrBuilder(); - - /** - * map<uint32, uint32> last_processed_ticks_per_epoch = 2; - */ - int getLastProcessedTicksPerEpochCount(); - /** - * map<uint32, uint32> last_processed_ticks_per_epoch = 2; - */ - boolean containsLastProcessedTicksPerEpoch( - int key); - /** - * Use {@link #getLastProcessedTicksPerEpochMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getLastProcessedTicksPerEpoch(); - /** - * map<uint32, uint32> last_processed_ticks_per_epoch = 2; - */ - java.util.Map - getLastProcessedTicksPerEpochMap(); - /** - * map<uint32, uint32> last_processed_ticks_per_epoch = 2; - */ - - int getLastProcessedTicksPerEpochOrDefault( - int key, - int defaultValue); - /** - * map<uint32, uint32> last_processed_ticks_per_epoch = 2; - */ - - int getLastProcessedTicksPerEpochOrThrow( - int key); - - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 3; - */ - java.util.List - getSkippedTicksList(); - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 3; - */ - org.qubic.archiver.proto.SkippedTicksInterval getSkippedTicks(int index); - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 3; - */ - int getSkippedTicksCount(); - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 3; - */ - java.util.List - getSkippedTicksOrBuilderList(); - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 3; - */ - org.qubic.archiver.proto.SkippedTicksIntervalOrBuilder getSkippedTicksOrBuilder( - int index); - - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickIntervalsPerEpoch processed_tick_intervals_per_epoch = 4; - */ - java.util.List - getProcessedTickIntervalsPerEpochList(); - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickIntervalsPerEpoch processed_tick_intervals_per_epoch = 4; - */ - org.qubic.archiver.proto.ProcessedTickIntervalsPerEpoch getProcessedTickIntervalsPerEpoch(int index); - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickIntervalsPerEpoch processed_tick_intervals_per_epoch = 4; - */ - int getProcessedTickIntervalsPerEpochCount(); - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickIntervalsPerEpoch processed_tick_intervals_per_epoch = 4; - */ - java.util.List - getProcessedTickIntervalsPerEpochOrBuilderList(); - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickIntervalsPerEpoch processed_tick_intervals_per_epoch = 4; - */ - org.qubic.archiver.proto.ProcessedTickIntervalsPerEpochOrBuilder getProcessedTickIntervalsPerEpochOrBuilder( - int index); - - /** - * map<uint32, uint32> empty_ticks_per_epoch = 5; - */ - int getEmptyTicksPerEpochCount(); - /** - * map<uint32, uint32> empty_ticks_per_epoch = 5; - */ - boolean containsEmptyTicksPerEpoch( - int key); - /** - * Use {@link #getEmptyTicksPerEpochMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getEmptyTicksPerEpoch(); - /** - * map<uint32, uint32> empty_ticks_per_epoch = 5; - */ - java.util.Map - getEmptyTicksPerEpochMap(); - /** - * map<uint32, uint32> empty_ticks_per_epoch = 5; - */ - - int getEmptyTicksPerEpochOrDefault( - int key, - int defaultValue); - /** - * map<uint32, uint32> empty_ticks_per_epoch = 5; - */ - - int getEmptyTicksPerEpochOrThrow( - int key); -} diff --git a/src/main/java/org/qubic/archiver/proto/GetTickApprovedTransactionsRequest.java b/src/main/java/org/qubic/archiver/proto/GetTickApprovedTransactionsRequest.java deleted file mode 100644 index 1ec61be..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetTickApprovedTransactionsRequest.java +++ /dev/null @@ -1,483 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.GetTickApprovedTransactionsRequest} - */ -public final class GetTickApprovedTransactionsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.GetTickApprovedTransactionsRequest) - GetTickApprovedTransactionsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetTickApprovedTransactionsRequest.newBuilder() to construct. - private GetTickApprovedTransactionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetTickApprovedTransactionsRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetTickApprovedTransactionsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetTickApprovedTransactionsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - tickNumber_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickApprovedTransactionsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickApprovedTransactionsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.qubic.archiver.proto.GetTickApprovedTransactionsRequest.class, org.qubic.archiver.proto.GetTickApprovedTransactionsRequest.Builder.class); - } - - public static final int TICK_NUMBER_FIELD_NUMBER = 1; - private int tickNumber_; - /** - * uint32 tick_number = 1; - * @return The tickNumber. - */ - @java.lang.Override - public int getTickNumber() { - return tickNumber_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (tickNumber_ != 0) { - output.writeUInt32(1, tickNumber_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (tickNumber_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, tickNumber_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.qubic.archiver.proto.GetTickApprovedTransactionsRequest)) { - return super.equals(obj); - } - org.qubic.archiver.proto.GetTickApprovedTransactionsRequest other = (org.qubic.archiver.proto.GetTickApprovedTransactionsRequest) obj; - - if (getTickNumber() - != other.getTickNumber()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TICK_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getTickNumber(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.qubic.archiver.proto.GetTickApprovedTransactionsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetTickApprovedTransactionsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetTickApprovedTransactionsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetTickApprovedTransactionsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetTickApprovedTransactionsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetTickApprovedTransactionsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetTickApprovedTransactionsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetTickApprovedTransactionsRequest 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 org.qubic.archiver.proto.GetTickApprovedTransactionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetTickApprovedTransactionsRequest 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 org.qubic.archiver.proto.GetTickApprovedTransactionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetTickApprovedTransactionsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.qubic.archiver.proto.GetTickApprovedTransactionsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.GetTickApprovedTransactionsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.GetTickApprovedTransactionsRequest) - org.qubic.archiver.proto.GetTickApprovedTransactionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickApprovedTransactionsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickApprovedTransactionsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.qubic.archiver.proto.GetTickApprovedTransactionsRequest.class, org.qubic.archiver.proto.GetTickApprovedTransactionsRequest.Builder.class); - } - - // Construct using org.qubic.archiver.proto.GetTickApprovedTransactionsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - tickNumber_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickApprovedTransactionsRequest_descriptor; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTickApprovedTransactionsRequest getDefaultInstanceForType() { - return org.qubic.archiver.proto.GetTickApprovedTransactionsRequest.getDefaultInstance(); - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTickApprovedTransactionsRequest build() { - org.qubic.archiver.proto.GetTickApprovedTransactionsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTickApprovedTransactionsRequest buildPartial() { - org.qubic.archiver.proto.GetTickApprovedTransactionsRequest result = new org.qubic.archiver.proto.GetTickApprovedTransactionsRequest(this); - result.tickNumber_ = tickNumber_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.qubic.archiver.proto.GetTickApprovedTransactionsRequest) { - return mergeFrom((org.qubic.archiver.proto.GetTickApprovedTransactionsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.qubic.archiver.proto.GetTickApprovedTransactionsRequest other) { - if (other == org.qubic.archiver.proto.GetTickApprovedTransactionsRequest.getDefaultInstance()) return this; - if (other.getTickNumber() != 0) { - setTickNumber(other.getTickNumber()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.qubic.archiver.proto.GetTickApprovedTransactionsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.qubic.archiver.proto.GetTickApprovedTransactionsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int tickNumber_ ; - /** - * uint32 tick_number = 1; - * @return The tickNumber. - */ - @java.lang.Override - public int getTickNumber() { - return tickNumber_; - } - /** - * uint32 tick_number = 1; - * @param value The tickNumber to set. - * @return This builder for chaining. - */ - public Builder setTickNumber(int value) { - - tickNumber_ = value; - onChanged(); - return this; - } - /** - * uint32 tick_number = 1; - * @return This builder for chaining. - */ - public Builder clearTickNumber() { - - tickNumber_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.GetTickApprovedTransactionsRequest) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.GetTickApprovedTransactionsRequest) - private static final org.qubic.archiver.proto.GetTickApprovedTransactionsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.qubic.archiver.proto.GetTickApprovedTransactionsRequest(); - } - - public static org.qubic.archiver.proto.GetTickApprovedTransactionsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetTickApprovedTransactionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetTickApprovedTransactionsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTickApprovedTransactionsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/GetTickApprovedTransactionsRequestOrBuilder.java b/src/main/java/org/qubic/archiver/proto/GetTickApprovedTransactionsRequestOrBuilder.java deleted file mode 100644 index 32631bf..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetTickApprovedTransactionsRequestOrBuilder.java +++ /dev/null @@ -1,15 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface GetTickApprovedTransactionsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.GetTickApprovedTransactionsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 tick_number = 1; - * @return The tickNumber. - */ - int getTickNumber(); -} diff --git a/src/main/java/org/qubic/archiver/proto/GetTickApprovedTransactionsResponse.java b/src/main/java/org/qubic/archiver/proto/GetTickApprovedTransactionsResponse.java deleted file mode 100644 index e52edf8..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetTickApprovedTransactionsResponse.java +++ /dev/null @@ -1,770 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.GetTickApprovedTransactionsResponse} - */ -public final class GetTickApprovedTransactionsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.GetTickApprovedTransactionsResponse) - GetTickApprovedTransactionsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetTickApprovedTransactionsResponse.newBuilder() to construct. - private GetTickApprovedTransactionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetTickApprovedTransactionsResponse() { - approvedTransactions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetTickApprovedTransactionsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetTickApprovedTransactionsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - approvedTransactions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - approvedTransactions_.add( - input.readMessage(org.qubic.archiver.proto.Transaction.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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) != 0)) { - approvedTransactions_ = java.util.Collections.unmodifiableList(approvedTransactions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickApprovedTransactionsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickApprovedTransactionsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.qubic.archiver.proto.GetTickApprovedTransactionsResponse.class, org.qubic.archiver.proto.GetTickApprovedTransactionsResponse.Builder.class); - } - - public static final int APPROVED_TRANSACTIONS_FIELD_NUMBER = 1; - private java.util.List approvedTransactions_; - /** - * repeated .qubic.archiver.archive.pb.Transaction approved_transactions = 1; - */ - @java.lang.Override - public java.util.List getApprovedTransactionsList() { - return approvedTransactions_; - } - /** - * repeated .qubic.archiver.archive.pb.Transaction approved_transactions = 1; - */ - @java.lang.Override - public java.util.List - getApprovedTransactionsOrBuilderList() { - return approvedTransactions_; - } - /** - * repeated .qubic.archiver.archive.pb.Transaction approved_transactions = 1; - */ - @java.lang.Override - public int getApprovedTransactionsCount() { - return approvedTransactions_.size(); - } - /** - * repeated .qubic.archiver.archive.pb.Transaction approved_transactions = 1; - */ - @java.lang.Override - public org.qubic.archiver.proto.Transaction getApprovedTransactions(int index) { - return approvedTransactions_.get(index); - } - /** - * repeated .qubic.archiver.archive.pb.Transaction approved_transactions = 1; - */ - @java.lang.Override - public org.qubic.archiver.proto.TransactionOrBuilder getApprovedTransactionsOrBuilder( - int index) { - return approvedTransactions_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < approvedTransactions_.size(); i++) { - output.writeMessage(1, approvedTransactions_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < approvedTransactions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, approvedTransactions_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.qubic.archiver.proto.GetTickApprovedTransactionsResponse)) { - return super.equals(obj); - } - org.qubic.archiver.proto.GetTickApprovedTransactionsResponse other = (org.qubic.archiver.proto.GetTickApprovedTransactionsResponse) obj; - - if (!getApprovedTransactionsList() - .equals(other.getApprovedTransactionsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getApprovedTransactionsCount() > 0) { - hash = (37 * hash) + APPROVED_TRANSACTIONS_FIELD_NUMBER; - hash = (53 * hash) + getApprovedTransactionsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.qubic.archiver.proto.GetTickApprovedTransactionsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetTickApprovedTransactionsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetTickApprovedTransactionsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetTickApprovedTransactionsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetTickApprovedTransactionsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetTickApprovedTransactionsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetTickApprovedTransactionsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetTickApprovedTransactionsResponse 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 org.qubic.archiver.proto.GetTickApprovedTransactionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetTickApprovedTransactionsResponse 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 org.qubic.archiver.proto.GetTickApprovedTransactionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetTickApprovedTransactionsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.qubic.archiver.proto.GetTickApprovedTransactionsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.GetTickApprovedTransactionsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.GetTickApprovedTransactionsResponse) - org.qubic.archiver.proto.GetTickApprovedTransactionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickApprovedTransactionsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickApprovedTransactionsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.qubic.archiver.proto.GetTickApprovedTransactionsResponse.class, org.qubic.archiver.proto.GetTickApprovedTransactionsResponse.Builder.class); - } - - // Construct using org.qubic.archiver.proto.GetTickApprovedTransactionsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getApprovedTransactionsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (approvedTransactionsBuilder_ == null) { - approvedTransactions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - approvedTransactionsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickApprovedTransactionsResponse_descriptor; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTickApprovedTransactionsResponse getDefaultInstanceForType() { - return org.qubic.archiver.proto.GetTickApprovedTransactionsResponse.getDefaultInstance(); - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTickApprovedTransactionsResponse build() { - org.qubic.archiver.proto.GetTickApprovedTransactionsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTickApprovedTransactionsResponse buildPartial() { - org.qubic.archiver.proto.GetTickApprovedTransactionsResponse result = new org.qubic.archiver.proto.GetTickApprovedTransactionsResponse(this); - int from_bitField0_ = bitField0_; - if (approvedTransactionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - approvedTransactions_ = java.util.Collections.unmodifiableList(approvedTransactions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.approvedTransactions_ = approvedTransactions_; - } else { - result.approvedTransactions_ = approvedTransactionsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.qubic.archiver.proto.GetTickApprovedTransactionsResponse) { - return mergeFrom((org.qubic.archiver.proto.GetTickApprovedTransactionsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.qubic.archiver.proto.GetTickApprovedTransactionsResponse other) { - if (other == org.qubic.archiver.proto.GetTickApprovedTransactionsResponse.getDefaultInstance()) return this; - if (approvedTransactionsBuilder_ == null) { - if (!other.approvedTransactions_.isEmpty()) { - if (approvedTransactions_.isEmpty()) { - approvedTransactions_ = other.approvedTransactions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureApprovedTransactionsIsMutable(); - approvedTransactions_.addAll(other.approvedTransactions_); - } - onChanged(); - } - } else { - if (!other.approvedTransactions_.isEmpty()) { - if (approvedTransactionsBuilder_.isEmpty()) { - approvedTransactionsBuilder_.dispose(); - approvedTransactionsBuilder_ = null; - approvedTransactions_ = other.approvedTransactions_; - bitField0_ = (bitField0_ & ~0x00000001); - approvedTransactionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getApprovedTransactionsFieldBuilder() : null; - } else { - approvedTransactionsBuilder_.addAllMessages(other.approvedTransactions_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.qubic.archiver.proto.GetTickApprovedTransactionsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.qubic.archiver.proto.GetTickApprovedTransactionsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List approvedTransactions_ = - java.util.Collections.emptyList(); - private void ensureApprovedTransactionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - approvedTransactions_ = new java.util.ArrayList(approvedTransactions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.qubic.archiver.proto.Transaction, org.qubic.archiver.proto.Transaction.Builder, org.qubic.archiver.proto.TransactionOrBuilder> approvedTransactionsBuilder_; - - /** - * repeated .qubic.archiver.archive.pb.Transaction approved_transactions = 1; - */ - public java.util.List getApprovedTransactionsList() { - if (approvedTransactionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(approvedTransactions_); - } else { - return approvedTransactionsBuilder_.getMessageList(); - } - } - /** - * repeated .qubic.archiver.archive.pb.Transaction approved_transactions = 1; - */ - public int getApprovedTransactionsCount() { - if (approvedTransactionsBuilder_ == null) { - return approvedTransactions_.size(); - } else { - return approvedTransactionsBuilder_.getCount(); - } - } - /** - * repeated .qubic.archiver.archive.pb.Transaction approved_transactions = 1; - */ - public org.qubic.archiver.proto.Transaction getApprovedTransactions(int index) { - if (approvedTransactionsBuilder_ == null) { - return approvedTransactions_.get(index); - } else { - return approvedTransactionsBuilder_.getMessage(index); - } - } - /** - * repeated .qubic.archiver.archive.pb.Transaction approved_transactions = 1; - */ - public Builder setApprovedTransactions( - int index, org.qubic.archiver.proto.Transaction value) { - if (approvedTransactionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureApprovedTransactionsIsMutable(); - approvedTransactions_.set(index, value); - onChanged(); - } else { - approvedTransactionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.Transaction approved_transactions = 1; - */ - public Builder setApprovedTransactions( - int index, org.qubic.archiver.proto.Transaction.Builder builderForValue) { - if (approvedTransactionsBuilder_ == null) { - ensureApprovedTransactionsIsMutable(); - approvedTransactions_.set(index, builderForValue.build()); - onChanged(); - } else { - approvedTransactionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.Transaction approved_transactions = 1; - */ - public Builder addApprovedTransactions(org.qubic.archiver.proto.Transaction value) { - if (approvedTransactionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureApprovedTransactionsIsMutable(); - approvedTransactions_.add(value); - onChanged(); - } else { - approvedTransactionsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.Transaction approved_transactions = 1; - */ - public Builder addApprovedTransactions( - int index, org.qubic.archiver.proto.Transaction value) { - if (approvedTransactionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureApprovedTransactionsIsMutable(); - approvedTransactions_.add(index, value); - onChanged(); - } else { - approvedTransactionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.Transaction approved_transactions = 1; - */ - public Builder addApprovedTransactions( - org.qubic.archiver.proto.Transaction.Builder builderForValue) { - if (approvedTransactionsBuilder_ == null) { - ensureApprovedTransactionsIsMutable(); - approvedTransactions_.add(builderForValue.build()); - onChanged(); - } else { - approvedTransactionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.Transaction approved_transactions = 1; - */ - public Builder addApprovedTransactions( - int index, org.qubic.archiver.proto.Transaction.Builder builderForValue) { - if (approvedTransactionsBuilder_ == null) { - ensureApprovedTransactionsIsMutable(); - approvedTransactions_.add(index, builderForValue.build()); - onChanged(); - } else { - approvedTransactionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.Transaction approved_transactions = 1; - */ - public Builder addAllApprovedTransactions( - java.lang.Iterable values) { - if (approvedTransactionsBuilder_ == null) { - ensureApprovedTransactionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, approvedTransactions_); - onChanged(); - } else { - approvedTransactionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.Transaction approved_transactions = 1; - */ - public Builder clearApprovedTransactions() { - if (approvedTransactionsBuilder_ == null) { - approvedTransactions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - approvedTransactionsBuilder_.clear(); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.Transaction approved_transactions = 1; - */ - public Builder removeApprovedTransactions(int index) { - if (approvedTransactionsBuilder_ == null) { - ensureApprovedTransactionsIsMutable(); - approvedTransactions_.remove(index); - onChanged(); - } else { - approvedTransactionsBuilder_.remove(index); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.Transaction approved_transactions = 1; - */ - public org.qubic.archiver.proto.Transaction.Builder getApprovedTransactionsBuilder( - int index) { - return getApprovedTransactionsFieldBuilder().getBuilder(index); - } - /** - * repeated .qubic.archiver.archive.pb.Transaction approved_transactions = 1; - */ - public org.qubic.archiver.proto.TransactionOrBuilder getApprovedTransactionsOrBuilder( - int index) { - if (approvedTransactionsBuilder_ == null) { - return approvedTransactions_.get(index); } else { - return approvedTransactionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .qubic.archiver.archive.pb.Transaction approved_transactions = 1; - */ - public java.util.List - getApprovedTransactionsOrBuilderList() { - if (approvedTransactionsBuilder_ != null) { - return approvedTransactionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(approvedTransactions_); - } - } - /** - * repeated .qubic.archiver.archive.pb.Transaction approved_transactions = 1; - */ - public org.qubic.archiver.proto.Transaction.Builder addApprovedTransactionsBuilder() { - return getApprovedTransactionsFieldBuilder().addBuilder( - org.qubic.archiver.proto.Transaction.getDefaultInstance()); - } - /** - * repeated .qubic.archiver.archive.pb.Transaction approved_transactions = 1; - */ - public org.qubic.archiver.proto.Transaction.Builder addApprovedTransactionsBuilder( - int index) { - return getApprovedTransactionsFieldBuilder().addBuilder( - index, org.qubic.archiver.proto.Transaction.getDefaultInstance()); - } - /** - * repeated .qubic.archiver.archive.pb.Transaction approved_transactions = 1; - */ - public java.util.List - getApprovedTransactionsBuilderList() { - return getApprovedTransactionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.qubic.archiver.proto.Transaction, org.qubic.archiver.proto.Transaction.Builder, org.qubic.archiver.proto.TransactionOrBuilder> - getApprovedTransactionsFieldBuilder() { - if (approvedTransactionsBuilder_ == null) { - approvedTransactionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.qubic.archiver.proto.Transaction, org.qubic.archiver.proto.Transaction.Builder, org.qubic.archiver.proto.TransactionOrBuilder>( - approvedTransactions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - approvedTransactions_ = null; - } - return approvedTransactionsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.GetTickApprovedTransactionsResponse) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.GetTickApprovedTransactionsResponse) - private static final org.qubic.archiver.proto.GetTickApprovedTransactionsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.qubic.archiver.proto.GetTickApprovedTransactionsResponse(); - } - - public static org.qubic.archiver.proto.GetTickApprovedTransactionsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetTickApprovedTransactionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetTickApprovedTransactionsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTickApprovedTransactionsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/GetTickApprovedTransactionsResponseOrBuilder.java b/src/main/java/org/qubic/archiver/proto/GetTickApprovedTransactionsResponseOrBuilder.java deleted file mode 100644 index 94ccc5e..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetTickApprovedTransactionsResponseOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface GetTickApprovedTransactionsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.GetTickApprovedTransactionsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .qubic.archiver.archive.pb.Transaction approved_transactions = 1; - */ - java.util.List - getApprovedTransactionsList(); - /** - * repeated .qubic.archiver.archive.pb.Transaction approved_transactions = 1; - */ - org.qubic.archiver.proto.Transaction getApprovedTransactions(int index); - /** - * repeated .qubic.archiver.archive.pb.Transaction approved_transactions = 1; - */ - int getApprovedTransactionsCount(); - /** - * repeated .qubic.archiver.archive.pb.Transaction approved_transactions = 1; - */ - java.util.List - getApprovedTransactionsOrBuilderList(); - /** - * repeated .qubic.archiver.archive.pb.Transaction approved_transactions = 1; - */ - org.qubic.archiver.proto.TransactionOrBuilder getApprovedTransactionsOrBuilder( - int index); -} diff --git a/src/main/java/org/qubic/archiver/proto/GetTickDataRequest.java b/src/main/java/org/qubic/archiver/proto/GetTickDataRequest.java deleted file mode 100644 index 23e2d86..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetTickDataRequest.java +++ /dev/null @@ -1,483 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.GetTickDataRequest} - */ -public final class GetTickDataRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.GetTickDataRequest) - GetTickDataRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetTickDataRequest.newBuilder() to construct. - private GetTickDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetTickDataRequest() { - } - - @Override - @SuppressWarnings({"unused"}) - protected Object newInstance( - UnusedPrivateParameter unused) { - return new GetTickDataRequest(); - } - - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetTickDataRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - tickNumber_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickDataRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickDataRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - GetTickDataRequest.class, Builder.class); - } - - public static final int TICK_NUMBER_FIELD_NUMBER = 1; - private int tickNumber_; - /** - * uint32 tick_number = 1; - * @return The tickNumber. - */ - @Override - public int getTickNumber() { - return tickNumber_; - } - - private byte memoizedIsInitialized = -1; - @Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (tickNumber_ != 0) { - output.writeUInt32(1, tickNumber_); - } - unknownFields.writeTo(output); - } - - @Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (tickNumber_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, tickNumber_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @Override - public boolean equals(final Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof GetTickDataRequest)) { - return super.equals(obj); - } - GetTickDataRequest other = (GetTickDataRequest) obj; - - if (getTickNumber() - != other.getTickNumber()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TICK_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getTickNumber(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static GetTickDataRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetTickDataRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetTickDataRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetTickDataRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetTickDataRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetTickDataRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetTickDataRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static GetTickDataRequest 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 GetTickDataRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static GetTickDataRequest 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 GetTickDataRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static GetTickDataRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(GetTickDataRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.GetTickDataRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.GetTickDataRequest) - GetTickDataRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickDataRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickDataRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - GetTickDataRequest.class, Builder.class); - } - - // Construct using org.qubic.archiver.proto.GetTickDataRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @Override - public Builder clear() { - super.clear(); - tickNumber_ = 0; - - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickDataRequest_descriptor; - } - - @Override - public GetTickDataRequest getDefaultInstanceForType() { - return GetTickDataRequest.getDefaultInstance(); - } - - @Override - public GetTickDataRequest build() { - GetTickDataRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public GetTickDataRequest buildPartial() { - GetTickDataRequest result = new GetTickDataRequest(this); - result.tickNumber_ = tickNumber_; - onBuilt(); - return result; - } - - @Override - public Builder clone() { - return super.clone(); - } - @Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.setField(field, value); - } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return super.setRepeatedField(field, index, value); - } - @Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.addRepeatedField(field, value); - } - @Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof GetTickDataRequest) { - return mergeFrom((GetTickDataRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(GetTickDataRequest other) { - if (other == GetTickDataRequest.getDefaultInstance()) return this; - if (other.getTickNumber() != 0) { - setTickNumber(other.getTickNumber()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - GetTickDataRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (GetTickDataRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int tickNumber_ ; - /** - * uint32 tick_number = 1; - * @return The tickNumber. - */ - @Override - public int getTickNumber() { - return tickNumber_; - } - /** - * uint32 tick_number = 1; - * @param value The tickNumber to set. - * @return This builder for chaining. - */ - public Builder setTickNumber(int value) { - - tickNumber_ = value; - onChanged(); - return this; - } - /** - * uint32 tick_number = 1; - * @return This builder for chaining. - */ - public Builder clearTickNumber() { - - tickNumber_ = 0; - onChanged(); - return this; - } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.GetTickDataRequest) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.GetTickDataRequest) - private static final GetTickDataRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new GetTickDataRequest(); - } - - public static GetTickDataRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public GetTickDataRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetTickDataRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public GetTickDataRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/GetTickDataRequestOrBuilder.java b/src/main/java/org/qubic/archiver/proto/GetTickDataRequestOrBuilder.java deleted file mode 100644 index db8c88e..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetTickDataRequestOrBuilder.java +++ /dev/null @@ -1,15 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface GetTickDataRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.GetTickDataRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 tick_number = 1; - * @return The tickNumber. - */ - int getTickNumber(); -} diff --git a/src/main/java/org/qubic/archiver/proto/GetTickDataResponse.java b/src/main/java/org/qubic/archiver/proto/GetTickDataResponse.java deleted file mode 100644 index 6178568..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetTickDataResponse.java +++ /dev/null @@ -1,607 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.GetTickDataResponse} - */ -public final class GetTickDataResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.GetTickDataResponse) - GetTickDataResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetTickDataResponse.newBuilder() to construct. - private GetTickDataResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetTickDataResponse() { - } - - @Override - @SuppressWarnings({"unused"}) - protected Object newInstance( - UnusedPrivateParameter unused) { - return new GetTickDataResponse(); - } - - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetTickDataResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - TickData.Builder subBuilder = null; - if (tickData_ != null) { - subBuilder = tickData_.toBuilder(); - } - tickData_ = input.readMessage(TickData.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(tickData_); - tickData_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickDataResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickDataResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - GetTickDataResponse.class, Builder.class); - } - - public static final int TICK_DATA_FIELD_NUMBER = 1; - private TickData tickData_; - /** - * .qubic.archiver.archive.pb.TickData tick_data = 1; - * @return Whether the tickData field is set. - */ - @Override - public boolean hasTickData() { - return tickData_ != null; - } - /** - * .qubic.archiver.archive.pb.TickData tick_data = 1; - * @return The tickData. - */ - @Override - public TickData getTickData() { - return tickData_ == null ? TickData.getDefaultInstance() : tickData_; - } - /** - * .qubic.archiver.archive.pb.TickData tick_data = 1; - */ - @Override - public TickDataOrBuilder getTickDataOrBuilder() { - return getTickData(); - } - - private byte memoizedIsInitialized = -1; - @Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (tickData_ != null) { - output.writeMessage(1, getTickData()); - } - unknownFields.writeTo(output); - } - - @Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (tickData_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTickData()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @Override - public boolean equals(final Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof GetTickDataResponse)) { - return super.equals(obj); - } - GetTickDataResponse other = (GetTickDataResponse) obj; - - if (hasTickData() != other.hasTickData()) return false; - if (hasTickData()) { - if (!getTickData() - .equals(other.getTickData())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasTickData()) { - hash = (37 * hash) + TICK_DATA_FIELD_NUMBER; - hash = (53 * hash) + getTickData().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static GetTickDataResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetTickDataResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetTickDataResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetTickDataResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetTickDataResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetTickDataResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetTickDataResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static GetTickDataResponse 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 GetTickDataResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static GetTickDataResponse 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 GetTickDataResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static GetTickDataResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(GetTickDataResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.GetTickDataResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.GetTickDataResponse) - GetTickDataResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickDataResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickDataResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - GetTickDataResponse.class, Builder.class); - } - - // Construct using org.qubic.archiver.proto.GetTickDataResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @Override - public Builder clear() { - super.clear(); - if (tickDataBuilder_ == null) { - tickData_ = null; - } else { - tickData_ = null; - tickDataBuilder_ = null; - } - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickDataResponse_descriptor; - } - - @Override - public GetTickDataResponse getDefaultInstanceForType() { - return GetTickDataResponse.getDefaultInstance(); - } - - @Override - public GetTickDataResponse build() { - GetTickDataResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public GetTickDataResponse buildPartial() { - GetTickDataResponse result = new GetTickDataResponse(this); - if (tickDataBuilder_ == null) { - result.tickData_ = tickData_; - } else { - result.tickData_ = tickDataBuilder_.build(); - } - onBuilt(); - return result; - } - - @Override - public Builder clone() { - return super.clone(); - } - @Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.setField(field, value); - } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return super.setRepeatedField(field, index, value); - } - @Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.addRepeatedField(field, value); - } - @Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof GetTickDataResponse) { - return mergeFrom((GetTickDataResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(GetTickDataResponse other) { - if (other == GetTickDataResponse.getDefaultInstance()) return this; - if (other.hasTickData()) { - mergeTickData(other.getTickData()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - GetTickDataResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (GetTickDataResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private TickData tickData_; - private com.google.protobuf.SingleFieldBuilderV3< - TickData, TickData.Builder, TickDataOrBuilder> tickDataBuilder_; - /** - * .qubic.archiver.archive.pb.TickData tick_data = 1; - * @return Whether the tickData field is set. - */ - public boolean hasTickData() { - return tickDataBuilder_ != null || tickData_ != null; - } - /** - * .qubic.archiver.archive.pb.TickData tick_data = 1; - * @return The tickData. - */ - public TickData getTickData() { - if (tickDataBuilder_ == null) { - return tickData_ == null ? TickData.getDefaultInstance() : tickData_; - } else { - return tickDataBuilder_.getMessage(); - } - } - /** - * .qubic.archiver.archive.pb.TickData tick_data = 1; - */ - public Builder setTickData(TickData value) { - if (tickDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tickData_ = value; - onChanged(); - } else { - tickDataBuilder_.setMessage(value); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.TickData tick_data = 1; - */ - public Builder setTickData( - TickData.Builder builderForValue) { - if (tickDataBuilder_ == null) { - tickData_ = builderForValue.build(); - onChanged(); - } else { - tickDataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.TickData tick_data = 1; - */ - public Builder mergeTickData(TickData value) { - if (tickDataBuilder_ == null) { - if (tickData_ != null) { - tickData_ = - TickData.newBuilder(tickData_).mergeFrom(value).buildPartial(); - } else { - tickData_ = value; - } - onChanged(); - } else { - tickDataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.TickData tick_data = 1; - */ - public Builder clearTickData() { - if (tickDataBuilder_ == null) { - tickData_ = null; - onChanged(); - } else { - tickData_ = null; - tickDataBuilder_ = null; - } - - return this; - } - /** - * .qubic.archiver.archive.pb.TickData tick_data = 1; - */ - public TickData.Builder getTickDataBuilder() { - - onChanged(); - return getTickDataFieldBuilder().getBuilder(); - } - /** - * .qubic.archiver.archive.pb.TickData tick_data = 1; - */ - public TickDataOrBuilder getTickDataOrBuilder() { - if (tickDataBuilder_ != null) { - return tickDataBuilder_.getMessageOrBuilder(); - } else { - return tickData_ == null ? - TickData.getDefaultInstance() : tickData_; - } - } - /** - * .qubic.archiver.archive.pb.TickData tick_data = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - TickData, TickData.Builder, TickDataOrBuilder> - getTickDataFieldBuilder() { - if (tickDataBuilder_ == null) { - tickDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - TickData, TickData.Builder, TickDataOrBuilder>( - getTickData(), - getParentForChildren(), - isClean()); - tickData_ = null; - } - return tickDataBuilder_; - } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.GetTickDataResponse) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.GetTickDataResponse) - private static final GetTickDataResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new GetTickDataResponse(); - } - - public static GetTickDataResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public GetTickDataResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetTickDataResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public GetTickDataResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/GetTickDataResponseOrBuilder.java b/src/main/java/org/qubic/archiver/proto/GetTickDataResponseOrBuilder.java deleted file mode 100644 index 4568d7b..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetTickDataResponseOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface GetTickDataResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.GetTickDataResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .qubic.archiver.archive.pb.TickData tick_data = 1; - * @return Whether the tickData field is set. - */ - boolean hasTickData(); - /** - * .qubic.archiver.archive.pb.TickData tick_data = 1; - * @return The tickData. - */ - org.qubic.archiver.proto.TickData getTickData(); - /** - * .qubic.archiver.archive.pb.TickData tick_data = 1; - */ - org.qubic.archiver.proto.TickDataOrBuilder getTickDataOrBuilder(); -} diff --git a/src/main/java/org/qubic/archiver/proto/GetTickRequestV2.java b/src/main/java/org/qubic/archiver/proto/GetTickRequestV2.java deleted file mode 100644 index 5e78510..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetTickRequestV2.java +++ /dev/null @@ -1,491 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - *
- * Tick Transactions
- * 
- * - * Protobuf type {@code qubic.archiver.archive.pb.GetTickRequestV2} - */ -public final class GetTickRequestV2 extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.GetTickRequestV2) - GetTickRequestV2OrBuilder { -private static final long serialVersionUID = 0L; - // Use GetTickRequestV2.newBuilder() to construct. - private GetTickRequestV2(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetTickRequestV2() { - } - - @Override - @SuppressWarnings({"unused"}) - protected Object newInstance( - UnusedPrivateParameter unused) { - return new GetTickRequestV2(); - } - - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetTickRequestV2( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - tickNumber_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickRequestV2_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickRequestV2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - GetTickRequestV2.class, Builder.class); - } - - public static final int TICK_NUMBER_FIELD_NUMBER = 1; - private int tickNumber_; - /** - * uint32 tick_number = 1; - * @return The tickNumber. - */ - @Override - public int getTickNumber() { - return tickNumber_; - } - - private byte memoizedIsInitialized = -1; - @Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (tickNumber_ != 0) { - output.writeUInt32(1, tickNumber_); - } - unknownFields.writeTo(output); - } - - @Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (tickNumber_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, tickNumber_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @Override - public boolean equals(final Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof GetTickRequestV2)) { - return super.equals(obj); - } - GetTickRequestV2 other = (GetTickRequestV2) obj; - - if (getTickNumber() - != other.getTickNumber()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TICK_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getTickNumber(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static GetTickRequestV2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetTickRequestV2 parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetTickRequestV2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetTickRequestV2 parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetTickRequestV2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetTickRequestV2 parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetTickRequestV2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static GetTickRequestV2 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 GetTickRequestV2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static GetTickRequestV2 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 GetTickRequestV2 parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static GetTickRequestV2 parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(GetTickRequestV2 prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Tick Transactions
-   * 
- * - * Protobuf type {@code qubic.archiver.archive.pb.GetTickRequestV2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.GetTickRequestV2) - GetTickRequestV2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickRequestV2_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickRequestV2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - GetTickRequestV2.class, Builder.class); - } - - // Construct using org.qubic.archiver.proto.GetTickRequestV2.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @Override - public Builder clear() { - super.clear(); - tickNumber_ = 0; - - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickRequestV2_descriptor; - } - - @Override - public GetTickRequestV2 getDefaultInstanceForType() { - return GetTickRequestV2.getDefaultInstance(); - } - - @Override - public GetTickRequestV2 build() { - GetTickRequestV2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public GetTickRequestV2 buildPartial() { - GetTickRequestV2 result = new GetTickRequestV2(this); - result.tickNumber_ = tickNumber_; - onBuilt(); - return result; - } - - @Override - public Builder clone() { - return super.clone(); - } - @Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.setField(field, value); - } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return super.setRepeatedField(field, index, value); - } - @Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.addRepeatedField(field, value); - } - @Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof GetTickRequestV2) { - return mergeFrom((GetTickRequestV2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(GetTickRequestV2 other) { - if (other == GetTickRequestV2.getDefaultInstance()) return this; - if (other.getTickNumber() != 0) { - setTickNumber(other.getTickNumber()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - GetTickRequestV2 parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (GetTickRequestV2) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int tickNumber_ ; - /** - * uint32 tick_number = 1; - * @return The tickNumber. - */ - @Override - public int getTickNumber() { - return tickNumber_; - } - /** - * uint32 tick_number = 1; - * @param value The tickNumber to set. - * @return This builder for chaining. - */ - public Builder setTickNumber(int value) { - - tickNumber_ = value; - onChanged(); - return this; - } - /** - * uint32 tick_number = 1; - * @return This builder for chaining. - */ - public Builder clearTickNumber() { - - tickNumber_ = 0; - onChanged(); - return this; - } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.GetTickRequestV2) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.GetTickRequestV2) - private static final GetTickRequestV2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new GetTickRequestV2(); - } - - public static GetTickRequestV2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public GetTickRequestV2 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetTickRequestV2(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public GetTickRequestV2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/GetTickRequestV2OrBuilder.java b/src/main/java/org/qubic/archiver/proto/GetTickRequestV2OrBuilder.java deleted file mode 100644 index 97f812b..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetTickRequestV2OrBuilder.java +++ /dev/null @@ -1,15 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface GetTickRequestV2OrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.GetTickRequestV2) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 tick_number = 1; - * @return The tickNumber. - */ - int getTickNumber(); -} diff --git a/src/main/java/org/qubic/archiver/proto/GetTickResponseV2.java b/src/main/java/org/qubic/archiver/proto/GetTickResponseV2.java deleted file mode 100644 index 1fe1a71..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetTickResponseV2.java +++ /dev/null @@ -1,607 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.GetTickResponseV2} - */ -public final class GetTickResponseV2 extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.GetTickResponseV2) - GetTickResponseV2OrBuilder { -private static final long serialVersionUID = 0L; - // Use GetTickResponseV2.newBuilder() to construct. - private GetTickResponseV2(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetTickResponseV2() { - } - - @Override - @SuppressWarnings({"unused"}) - protected Object newInstance( - UnusedPrivateParameter unused) { - return new GetTickResponseV2(); - } - - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetTickResponseV2( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - Tick.Builder subBuilder = null; - if (tickData_ != null) { - subBuilder = tickData_.toBuilder(); - } - tickData_ = input.readMessage(Tick.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(tickData_); - tickData_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickResponseV2_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickResponseV2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - GetTickResponseV2.class, Builder.class); - } - - public static final int TICK_DATA_FIELD_NUMBER = 1; - private Tick tickData_; - /** - * .qubic.archiver.archive.pb.Tick tick_Data = 1; - * @return Whether the tickData field is set. - */ - @Override - public boolean hasTickData() { - return tickData_ != null; - } - /** - * .qubic.archiver.archive.pb.Tick tick_Data = 1; - * @return The tickData. - */ - @Override - public Tick getTickData() { - return tickData_ == null ? Tick.getDefaultInstance() : tickData_; - } - /** - * .qubic.archiver.archive.pb.Tick tick_Data = 1; - */ - @Override - public TickOrBuilder getTickDataOrBuilder() { - return getTickData(); - } - - private byte memoizedIsInitialized = -1; - @Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (tickData_ != null) { - output.writeMessage(1, getTickData()); - } - unknownFields.writeTo(output); - } - - @Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (tickData_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTickData()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @Override - public boolean equals(final Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof GetTickResponseV2)) { - return super.equals(obj); - } - GetTickResponseV2 other = (GetTickResponseV2) obj; - - if (hasTickData() != other.hasTickData()) return false; - if (hasTickData()) { - if (!getTickData() - .equals(other.getTickData())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasTickData()) { - hash = (37 * hash) + TICK_DATA_FIELD_NUMBER; - hash = (53 * hash) + getTickData().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static GetTickResponseV2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetTickResponseV2 parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetTickResponseV2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetTickResponseV2 parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetTickResponseV2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetTickResponseV2 parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetTickResponseV2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static GetTickResponseV2 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 GetTickResponseV2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static GetTickResponseV2 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 GetTickResponseV2 parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static GetTickResponseV2 parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(GetTickResponseV2 prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.GetTickResponseV2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.GetTickResponseV2) - GetTickResponseV2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickResponseV2_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickResponseV2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - GetTickResponseV2.class, Builder.class); - } - - // Construct using org.qubic.archiver.proto.GetTickResponseV2.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @Override - public Builder clear() { - super.clear(); - if (tickDataBuilder_ == null) { - tickData_ = null; - } else { - tickData_ = null; - tickDataBuilder_ = null; - } - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickResponseV2_descriptor; - } - - @Override - public GetTickResponseV2 getDefaultInstanceForType() { - return GetTickResponseV2.getDefaultInstance(); - } - - @Override - public GetTickResponseV2 build() { - GetTickResponseV2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public GetTickResponseV2 buildPartial() { - GetTickResponseV2 result = new GetTickResponseV2(this); - if (tickDataBuilder_ == null) { - result.tickData_ = tickData_; - } else { - result.tickData_ = tickDataBuilder_.build(); - } - onBuilt(); - return result; - } - - @Override - public Builder clone() { - return super.clone(); - } - @Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.setField(field, value); - } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return super.setRepeatedField(field, index, value); - } - @Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.addRepeatedField(field, value); - } - @Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof GetTickResponseV2) { - return mergeFrom((GetTickResponseV2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(GetTickResponseV2 other) { - if (other == GetTickResponseV2.getDefaultInstance()) return this; - if (other.hasTickData()) { - mergeTickData(other.getTickData()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - GetTickResponseV2 parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (GetTickResponseV2) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private Tick tickData_; - private com.google.protobuf.SingleFieldBuilderV3< - Tick, Tick.Builder, TickOrBuilder> tickDataBuilder_; - /** - * .qubic.archiver.archive.pb.Tick tick_Data = 1; - * @return Whether the tickData field is set. - */ - public boolean hasTickData() { - return tickDataBuilder_ != null || tickData_ != null; - } - /** - * .qubic.archiver.archive.pb.Tick tick_Data = 1; - * @return The tickData. - */ - public Tick getTickData() { - if (tickDataBuilder_ == null) { - return tickData_ == null ? Tick.getDefaultInstance() : tickData_; - } else { - return tickDataBuilder_.getMessage(); - } - } - /** - * .qubic.archiver.archive.pb.Tick tick_Data = 1; - */ - public Builder setTickData(Tick value) { - if (tickDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tickData_ = value; - onChanged(); - } else { - tickDataBuilder_.setMessage(value); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.Tick tick_Data = 1; - */ - public Builder setTickData( - Tick.Builder builderForValue) { - if (tickDataBuilder_ == null) { - tickData_ = builderForValue.build(); - onChanged(); - } else { - tickDataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.Tick tick_Data = 1; - */ - public Builder mergeTickData(Tick value) { - if (tickDataBuilder_ == null) { - if (tickData_ != null) { - tickData_ = - Tick.newBuilder(tickData_).mergeFrom(value).buildPartial(); - } else { - tickData_ = value; - } - onChanged(); - } else { - tickDataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.Tick tick_Data = 1; - */ - public Builder clearTickData() { - if (tickDataBuilder_ == null) { - tickData_ = null; - onChanged(); - } else { - tickData_ = null; - tickDataBuilder_ = null; - } - - return this; - } - /** - * .qubic.archiver.archive.pb.Tick tick_Data = 1; - */ - public Tick.Builder getTickDataBuilder() { - - onChanged(); - return getTickDataFieldBuilder().getBuilder(); - } - /** - * .qubic.archiver.archive.pb.Tick tick_Data = 1; - */ - public TickOrBuilder getTickDataOrBuilder() { - if (tickDataBuilder_ != null) { - return tickDataBuilder_.getMessageOrBuilder(); - } else { - return tickData_ == null ? - Tick.getDefaultInstance() : tickData_; - } - } - /** - * .qubic.archiver.archive.pb.Tick tick_Data = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - Tick, Tick.Builder, TickOrBuilder> - getTickDataFieldBuilder() { - if (tickDataBuilder_ == null) { - tickDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - Tick, Tick.Builder, TickOrBuilder>( - getTickData(), - getParentForChildren(), - isClean()); - tickData_ = null; - } - return tickDataBuilder_; - } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.GetTickResponseV2) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.GetTickResponseV2) - private static final GetTickResponseV2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new GetTickResponseV2(); - } - - public static GetTickResponseV2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public GetTickResponseV2 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetTickResponseV2(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public GetTickResponseV2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/GetTickResponseV2OrBuilder.java b/src/main/java/org/qubic/archiver/proto/GetTickResponseV2OrBuilder.java deleted file mode 100644 index d9de68a..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetTickResponseV2OrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface GetTickResponseV2OrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.GetTickResponseV2) - com.google.protobuf.MessageOrBuilder { - - /** - * .qubic.archiver.archive.pb.Tick tick_Data = 1; - * @return Whether the tickData field is set. - */ - boolean hasTickData(); - /** - * .qubic.archiver.archive.pb.Tick tick_Data = 1; - * @return The tickData. - */ - org.qubic.archiver.proto.Tick getTickData(); - /** - * .qubic.archiver.archive.pb.Tick tick_Data = 1; - */ - org.qubic.archiver.proto.TickOrBuilder getTickDataOrBuilder(); -} diff --git a/src/main/java/org/qubic/archiver/proto/GetTickTransactionsRequest.java b/src/main/java/org/qubic/archiver/proto/GetTickTransactionsRequest.java deleted file mode 100644 index 47d38be..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetTickTransactionsRequest.java +++ /dev/null @@ -1,483 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.GetTickTransactionsRequest} - */ -public final class GetTickTransactionsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.GetTickTransactionsRequest) - GetTickTransactionsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetTickTransactionsRequest.newBuilder() to construct. - private GetTickTransactionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetTickTransactionsRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetTickTransactionsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetTickTransactionsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - tickNumber_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickTransactionsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickTransactionsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.qubic.archiver.proto.GetTickTransactionsRequest.class, org.qubic.archiver.proto.GetTickTransactionsRequest.Builder.class); - } - - public static final int TICK_NUMBER_FIELD_NUMBER = 1; - private int tickNumber_; - /** - * uint32 tick_number = 1; - * @return The tickNumber. - */ - @java.lang.Override - public int getTickNumber() { - return tickNumber_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (tickNumber_ != 0) { - output.writeUInt32(1, tickNumber_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (tickNumber_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, tickNumber_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.qubic.archiver.proto.GetTickTransactionsRequest)) { - return super.equals(obj); - } - org.qubic.archiver.proto.GetTickTransactionsRequest other = (org.qubic.archiver.proto.GetTickTransactionsRequest) obj; - - if (getTickNumber() - != other.getTickNumber()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TICK_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getTickNumber(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.qubic.archiver.proto.GetTickTransactionsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetTickTransactionsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetTickTransactionsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetTickTransactionsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetTickTransactionsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetTickTransactionsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetTickTransactionsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetTickTransactionsRequest 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 org.qubic.archiver.proto.GetTickTransactionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetTickTransactionsRequest 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 org.qubic.archiver.proto.GetTickTransactionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetTickTransactionsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.qubic.archiver.proto.GetTickTransactionsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.GetTickTransactionsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.GetTickTransactionsRequest) - org.qubic.archiver.proto.GetTickTransactionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickTransactionsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickTransactionsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.qubic.archiver.proto.GetTickTransactionsRequest.class, org.qubic.archiver.proto.GetTickTransactionsRequest.Builder.class); - } - - // Construct using org.qubic.archiver.proto.GetTickTransactionsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - tickNumber_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickTransactionsRequest_descriptor; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTickTransactionsRequest getDefaultInstanceForType() { - return org.qubic.archiver.proto.GetTickTransactionsRequest.getDefaultInstance(); - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTickTransactionsRequest build() { - org.qubic.archiver.proto.GetTickTransactionsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTickTransactionsRequest buildPartial() { - org.qubic.archiver.proto.GetTickTransactionsRequest result = new org.qubic.archiver.proto.GetTickTransactionsRequest(this); - result.tickNumber_ = tickNumber_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.qubic.archiver.proto.GetTickTransactionsRequest) { - return mergeFrom((org.qubic.archiver.proto.GetTickTransactionsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.qubic.archiver.proto.GetTickTransactionsRequest other) { - if (other == org.qubic.archiver.proto.GetTickTransactionsRequest.getDefaultInstance()) return this; - if (other.getTickNumber() != 0) { - setTickNumber(other.getTickNumber()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.qubic.archiver.proto.GetTickTransactionsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.qubic.archiver.proto.GetTickTransactionsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int tickNumber_ ; - /** - * uint32 tick_number = 1; - * @return The tickNumber. - */ - @java.lang.Override - public int getTickNumber() { - return tickNumber_; - } - /** - * uint32 tick_number = 1; - * @param value The tickNumber to set. - * @return This builder for chaining. - */ - public Builder setTickNumber(int value) { - - tickNumber_ = value; - onChanged(); - return this; - } - /** - * uint32 tick_number = 1; - * @return This builder for chaining. - */ - public Builder clearTickNumber() { - - tickNumber_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.GetTickTransactionsRequest) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.GetTickTransactionsRequest) - private static final org.qubic.archiver.proto.GetTickTransactionsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.qubic.archiver.proto.GetTickTransactionsRequest(); - } - - public static org.qubic.archiver.proto.GetTickTransactionsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetTickTransactionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetTickTransactionsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTickTransactionsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/GetTickTransactionsRequestOrBuilder.java b/src/main/java/org/qubic/archiver/proto/GetTickTransactionsRequestOrBuilder.java deleted file mode 100644 index f85346f..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetTickTransactionsRequestOrBuilder.java +++ /dev/null @@ -1,15 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface GetTickTransactionsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.GetTickTransactionsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 tick_number = 1; - * @return The tickNumber. - */ - int getTickNumber(); -} diff --git a/src/main/java/org/qubic/archiver/proto/GetTickTransactionsRequestV2.java b/src/main/java/org/qubic/archiver/proto/GetTickTransactionsRequestV2.java deleted file mode 100644 index 2c9cd25..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetTickTransactionsRequestV2.java +++ /dev/null @@ -1,613 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.GetTickTransactionsRequestV2} - */ -public final class GetTickTransactionsRequestV2 extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.GetTickTransactionsRequestV2) - GetTickTransactionsRequestV2OrBuilder { -private static final long serialVersionUID = 0L; - // Use GetTickTransactionsRequestV2.newBuilder() to construct. - private GetTickTransactionsRequestV2(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetTickTransactionsRequestV2() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetTickTransactionsRequestV2(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetTickTransactionsRequestV2( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - tickNumber_ = input.readUInt32(); - break; - } - case 16: { - - transfers_ = input.readBool(); - break; - } - case 24: { - - approved_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickTransactionsRequestV2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickTransactionsRequestV2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.qubic.archiver.proto.GetTickTransactionsRequestV2.class, org.qubic.archiver.proto.GetTickTransactionsRequestV2.Builder.class); - } - - public static final int TICK_NUMBER_FIELD_NUMBER = 1; - private int tickNumber_; - /** - * uint32 tick_number = 1; - * @return The tickNumber. - */ - @java.lang.Override - public int getTickNumber() { - return tickNumber_; - } - - public static final int TRANSFERS_FIELD_NUMBER = 2; - private boolean transfers_; - /** - * bool transfers = 2; - * @return The transfers. - */ - @java.lang.Override - public boolean getTransfers() { - return transfers_; - } - - public static final int APPROVED_FIELD_NUMBER = 3; - private boolean approved_; - /** - * bool approved = 3; - * @return The approved. - */ - @java.lang.Override - public boolean getApproved() { - return approved_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (tickNumber_ != 0) { - output.writeUInt32(1, tickNumber_); - } - if (transfers_ != false) { - output.writeBool(2, transfers_); - } - if (approved_ != false) { - output.writeBool(3, approved_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (tickNumber_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, tickNumber_); - } - if (transfers_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, transfers_); - } - if (approved_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, approved_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.qubic.archiver.proto.GetTickTransactionsRequestV2)) { - return super.equals(obj); - } - org.qubic.archiver.proto.GetTickTransactionsRequestV2 other = (org.qubic.archiver.proto.GetTickTransactionsRequestV2) obj; - - if (getTickNumber() - != other.getTickNumber()) return false; - if (getTransfers() - != other.getTransfers()) return false; - if (getApproved() - != other.getApproved()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TICK_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getTickNumber(); - hash = (37 * hash) + TRANSFERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getTransfers()); - hash = (37 * hash) + APPROVED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getApproved()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.qubic.archiver.proto.GetTickTransactionsRequestV2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetTickTransactionsRequestV2 parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetTickTransactionsRequestV2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetTickTransactionsRequestV2 parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetTickTransactionsRequestV2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetTickTransactionsRequestV2 parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetTickTransactionsRequestV2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetTickTransactionsRequestV2 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 org.qubic.archiver.proto.GetTickTransactionsRequestV2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetTickTransactionsRequestV2 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 org.qubic.archiver.proto.GetTickTransactionsRequestV2 parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetTickTransactionsRequestV2 parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.qubic.archiver.proto.GetTickTransactionsRequestV2 prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.GetTickTransactionsRequestV2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.GetTickTransactionsRequestV2) - org.qubic.archiver.proto.GetTickTransactionsRequestV2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickTransactionsRequestV2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickTransactionsRequestV2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.qubic.archiver.proto.GetTickTransactionsRequestV2.class, org.qubic.archiver.proto.GetTickTransactionsRequestV2.Builder.class); - } - - // Construct using org.qubic.archiver.proto.GetTickTransactionsRequestV2.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - tickNumber_ = 0; - - transfers_ = false; - - approved_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickTransactionsRequestV2_descriptor; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTickTransactionsRequestV2 getDefaultInstanceForType() { - return org.qubic.archiver.proto.GetTickTransactionsRequestV2.getDefaultInstance(); - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTickTransactionsRequestV2 build() { - org.qubic.archiver.proto.GetTickTransactionsRequestV2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTickTransactionsRequestV2 buildPartial() { - org.qubic.archiver.proto.GetTickTransactionsRequestV2 result = new org.qubic.archiver.proto.GetTickTransactionsRequestV2(this); - result.tickNumber_ = tickNumber_; - result.transfers_ = transfers_; - result.approved_ = approved_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.qubic.archiver.proto.GetTickTransactionsRequestV2) { - return mergeFrom((org.qubic.archiver.proto.GetTickTransactionsRequestV2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.qubic.archiver.proto.GetTickTransactionsRequestV2 other) { - if (other == org.qubic.archiver.proto.GetTickTransactionsRequestV2.getDefaultInstance()) return this; - if (other.getTickNumber() != 0) { - setTickNumber(other.getTickNumber()); - } - if (other.getTransfers() != false) { - setTransfers(other.getTransfers()); - } - if (other.getApproved() != false) { - setApproved(other.getApproved()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.qubic.archiver.proto.GetTickTransactionsRequestV2 parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.qubic.archiver.proto.GetTickTransactionsRequestV2) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int tickNumber_ ; - /** - * uint32 tick_number = 1; - * @return The tickNumber. - */ - @java.lang.Override - public int getTickNumber() { - return tickNumber_; - } - /** - * uint32 tick_number = 1; - * @param value The tickNumber to set. - * @return This builder for chaining. - */ - public Builder setTickNumber(int value) { - - tickNumber_ = value; - onChanged(); - return this; - } - /** - * uint32 tick_number = 1; - * @return This builder for chaining. - */ - public Builder clearTickNumber() { - - tickNumber_ = 0; - onChanged(); - return this; - } - - private boolean transfers_ ; - /** - * bool transfers = 2; - * @return The transfers. - */ - @java.lang.Override - public boolean getTransfers() { - return transfers_; - } - /** - * bool transfers = 2; - * @param value The transfers to set. - * @return This builder for chaining. - */ - public Builder setTransfers(boolean value) { - - transfers_ = value; - onChanged(); - return this; - } - /** - * bool transfers = 2; - * @return This builder for chaining. - */ - public Builder clearTransfers() { - - transfers_ = false; - onChanged(); - return this; - } - - private boolean approved_ ; - /** - * bool approved = 3; - * @return The approved. - */ - @java.lang.Override - public boolean getApproved() { - return approved_; - } - /** - * bool approved = 3; - * @param value The approved to set. - * @return This builder for chaining. - */ - public Builder setApproved(boolean value) { - - approved_ = value; - onChanged(); - return this; - } - /** - * bool approved = 3; - * @return This builder for chaining. - */ - public Builder clearApproved() { - - approved_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.GetTickTransactionsRequestV2) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.GetTickTransactionsRequestV2) - private static final org.qubic.archiver.proto.GetTickTransactionsRequestV2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.qubic.archiver.proto.GetTickTransactionsRequestV2(); - } - - public static org.qubic.archiver.proto.GetTickTransactionsRequestV2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetTickTransactionsRequestV2 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetTickTransactionsRequestV2(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTickTransactionsRequestV2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/GetTickTransactionsRequestV2OrBuilder.java b/src/main/java/org/qubic/archiver/proto/GetTickTransactionsRequestV2OrBuilder.java deleted file mode 100644 index d61a828..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetTickTransactionsRequestV2OrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface GetTickTransactionsRequestV2OrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.GetTickTransactionsRequestV2) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 tick_number = 1; - * @return The tickNumber. - */ - int getTickNumber(); - - /** - * bool transfers = 2; - * @return The transfers. - */ - boolean getTransfers(); - - /** - * bool approved = 3; - * @return The approved. - */ - boolean getApproved(); -} diff --git a/src/main/java/org/qubic/archiver/proto/GetTickTransactionsResponse.java b/src/main/java/org/qubic/archiver/proto/GetTickTransactionsResponse.java deleted file mode 100644 index 9b582cd..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetTickTransactionsResponse.java +++ /dev/null @@ -1,770 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.GetTickTransactionsResponse} - */ -public final class GetTickTransactionsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.GetTickTransactionsResponse) - GetTickTransactionsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetTickTransactionsResponse.newBuilder() to construct. - private GetTickTransactionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetTickTransactionsResponse() { - transactions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetTickTransactionsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetTickTransactionsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - transactions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - transactions_.add( - input.readMessage(org.qubic.archiver.proto.Transaction.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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) != 0)) { - transactions_ = java.util.Collections.unmodifiableList(transactions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickTransactionsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickTransactionsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.qubic.archiver.proto.GetTickTransactionsResponse.class, org.qubic.archiver.proto.GetTickTransactionsResponse.Builder.class); - } - - public static final int TRANSACTIONS_FIELD_NUMBER = 1; - private java.util.List transactions_; - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 1; - */ - @java.lang.Override - public java.util.List getTransactionsList() { - return transactions_; - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 1; - */ - @java.lang.Override - public java.util.List - getTransactionsOrBuilderList() { - return transactions_; - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 1; - */ - @java.lang.Override - public int getTransactionsCount() { - return transactions_.size(); - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 1; - */ - @java.lang.Override - public org.qubic.archiver.proto.Transaction getTransactions(int index) { - return transactions_.get(index); - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 1; - */ - @java.lang.Override - public org.qubic.archiver.proto.TransactionOrBuilder getTransactionsOrBuilder( - int index) { - return transactions_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < transactions_.size(); i++) { - output.writeMessage(1, transactions_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < transactions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, transactions_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.qubic.archiver.proto.GetTickTransactionsResponse)) { - return super.equals(obj); - } - org.qubic.archiver.proto.GetTickTransactionsResponse other = (org.qubic.archiver.proto.GetTickTransactionsResponse) obj; - - if (!getTransactionsList() - .equals(other.getTransactionsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTransactionsCount() > 0) { - hash = (37 * hash) + TRANSACTIONS_FIELD_NUMBER; - hash = (53 * hash) + getTransactionsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.qubic.archiver.proto.GetTickTransactionsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetTickTransactionsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetTickTransactionsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetTickTransactionsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetTickTransactionsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetTickTransactionsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetTickTransactionsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetTickTransactionsResponse 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 org.qubic.archiver.proto.GetTickTransactionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetTickTransactionsResponse 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 org.qubic.archiver.proto.GetTickTransactionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetTickTransactionsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.qubic.archiver.proto.GetTickTransactionsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.GetTickTransactionsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.GetTickTransactionsResponse) - org.qubic.archiver.proto.GetTickTransactionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickTransactionsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickTransactionsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.qubic.archiver.proto.GetTickTransactionsResponse.class, org.qubic.archiver.proto.GetTickTransactionsResponse.Builder.class); - } - - // Construct using org.qubic.archiver.proto.GetTickTransactionsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTransactionsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (transactionsBuilder_ == null) { - transactions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - transactionsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickTransactionsResponse_descriptor; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTickTransactionsResponse getDefaultInstanceForType() { - return org.qubic.archiver.proto.GetTickTransactionsResponse.getDefaultInstance(); - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTickTransactionsResponse build() { - org.qubic.archiver.proto.GetTickTransactionsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTickTransactionsResponse buildPartial() { - org.qubic.archiver.proto.GetTickTransactionsResponse result = new org.qubic.archiver.proto.GetTickTransactionsResponse(this); - int from_bitField0_ = bitField0_; - if (transactionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - transactions_ = java.util.Collections.unmodifiableList(transactions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.transactions_ = transactions_; - } else { - result.transactions_ = transactionsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.qubic.archiver.proto.GetTickTransactionsResponse) { - return mergeFrom((org.qubic.archiver.proto.GetTickTransactionsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.qubic.archiver.proto.GetTickTransactionsResponse other) { - if (other == org.qubic.archiver.proto.GetTickTransactionsResponse.getDefaultInstance()) return this; - if (transactionsBuilder_ == null) { - if (!other.transactions_.isEmpty()) { - if (transactions_.isEmpty()) { - transactions_ = other.transactions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTransactionsIsMutable(); - transactions_.addAll(other.transactions_); - } - onChanged(); - } - } else { - if (!other.transactions_.isEmpty()) { - if (transactionsBuilder_.isEmpty()) { - transactionsBuilder_.dispose(); - transactionsBuilder_ = null; - transactions_ = other.transactions_; - bitField0_ = (bitField0_ & ~0x00000001); - transactionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTransactionsFieldBuilder() : null; - } else { - transactionsBuilder_.addAllMessages(other.transactions_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.qubic.archiver.proto.GetTickTransactionsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.qubic.archiver.proto.GetTickTransactionsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List transactions_ = - java.util.Collections.emptyList(); - private void ensureTransactionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - transactions_ = new java.util.ArrayList(transactions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.qubic.archiver.proto.Transaction, org.qubic.archiver.proto.Transaction.Builder, org.qubic.archiver.proto.TransactionOrBuilder> transactionsBuilder_; - - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 1; - */ - public java.util.List getTransactionsList() { - if (transactionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(transactions_); - } else { - return transactionsBuilder_.getMessageList(); - } - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 1; - */ - public int getTransactionsCount() { - if (transactionsBuilder_ == null) { - return transactions_.size(); - } else { - return transactionsBuilder_.getCount(); - } - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 1; - */ - public org.qubic.archiver.proto.Transaction getTransactions(int index) { - if (transactionsBuilder_ == null) { - return transactions_.get(index); - } else { - return transactionsBuilder_.getMessage(index); - } - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 1; - */ - public Builder setTransactions( - int index, org.qubic.archiver.proto.Transaction value) { - if (transactionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransactionsIsMutable(); - transactions_.set(index, value); - onChanged(); - } else { - transactionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 1; - */ - public Builder setTransactions( - int index, org.qubic.archiver.proto.Transaction.Builder builderForValue) { - if (transactionsBuilder_ == null) { - ensureTransactionsIsMutable(); - transactions_.set(index, builderForValue.build()); - onChanged(); - } else { - transactionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 1; - */ - public Builder addTransactions(org.qubic.archiver.proto.Transaction value) { - if (transactionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransactionsIsMutable(); - transactions_.add(value); - onChanged(); - } else { - transactionsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 1; - */ - public Builder addTransactions( - int index, org.qubic.archiver.proto.Transaction value) { - if (transactionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransactionsIsMutable(); - transactions_.add(index, value); - onChanged(); - } else { - transactionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 1; - */ - public Builder addTransactions( - org.qubic.archiver.proto.Transaction.Builder builderForValue) { - if (transactionsBuilder_ == null) { - ensureTransactionsIsMutable(); - transactions_.add(builderForValue.build()); - onChanged(); - } else { - transactionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 1; - */ - public Builder addTransactions( - int index, org.qubic.archiver.proto.Transaction.Builder builderForValue) { - if (transactionsBuilder_ == null) { - ensureTransactionsIsMutable(); - transactions_.add(index, builderForValue.build()); - onChanged(); - } else { - transactionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 1; - */ - public Builder addAllTransactions( - java.lang.Iterable values) { - if (transactionsBuilder_ == null) { - ensureTransactionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, transactions_); - onChanged(); - } else { - transactionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 1; - */ - public Builder clearTransactions() { - if (transactionsBuilder_ == null) { - transactions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - transactionsBuilder_.clear(); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 1; - */ - public Builder removeTransactions(int index) { - if (transactionsBuilder_ == null) { - ensureTransactionsIsMutable(); - transactions_.remove(index); - onChanged(); - } else { - transactionsBuilder_.remove(index); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 1; - */ - public org.qubic.archiver.proto.Transaction.Builder getTransactionsBuilder( - int index) { - return getTransactionsFieldBuilder().getBuilder(index); - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 1; - */ - public org.qubic.archiver.proto.TransactionOrBuilder getTransactionsOrBuilder( - int index) { - if (transactionsBuilder_ == null) { - return transactions_.get(index); } else { - return transactionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 1; - */ - public java.util.List - getTransactionsOrBuilderList() { - if (transactionsBuilder_ != null) { - return transactionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(transactions_); - } - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 1; - */ - public org.qubic.archiver.proto.Transaction.Builder addTransactionsBuilder() { - return getTransactionsFieldBuilder().addBuilder( - org.qubic.archiver.proto.Transaction.getDefaultInstance()); - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 1; - */ - public org.qubic.archiver.proto.Transaction.Builder addTransactionsBuilder( - int index) { - return getTransactionsFieldBuilder().addBuilder( - index, org.qubic.archiver.proto.Transaction.getDefaultInstance()); - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 1; - */ - public java.util.List - getTransactionsBuilderList() { - return getTransactionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.qubic.archiver.proto.Transaction, org.qubic.archiver.proto.Transaction.Builder, org.qubic.archiver.proto.TransactionOrBuilder> - getTransactionsFieldBuilder() { - if (transactionsBuilder_ == null) { - transactionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.qubic.archiver.proto.Transaction, org.qubic.archiver.proto.Transaction.Builder, org.qubic.archiver.proto.TransactionOrBuilder>( - transactions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - transactions_ = null; - } - return transactionsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.GetTickTransactionsResponse) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.GetTickTransactionsResponse) - private static final org.qubic.archiver.proto.GetTickTransactionsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.qubic.archiver.proto.GetTickTransactionsResponse(); - } - - public static org.qubic.archiver.proto.GetTickTransactionsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetTickTransactionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetTickTransactionsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTickTransactionsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/GetTickTransactionsResponseOrBuilder.java b/src/main/java/org/qubic/archiver/proto/GetTickTransactionsResponseOrBuilder.java deleted file mode 100644 index 6020e05..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetTickTransactionsResponseOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface GetTickTransactionsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.GetTickTransactionsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 1; - */ - java.util.List - getTransactionsList(); - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 1; - */ - org.qubic.archiver.proto.Transaction getTransactions(int index); - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 1; - */ - int getTransactionsCount(); - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 1; - */ - java.util.List - getTransactionsOrBuilderList(); - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 1; - */ - org.qubic.archiver.proto.TransactionOrBuilder getTransactionsOrBuilder( - int index); -} diff --git a/src/main/java/org/qubic/archiver/proto/GetTickTransactionsResponseV2.java b/src/main/java/org/qubic/archiver/proto/GetTickTransactionsResponseV2.java deleted file mode 100644 index 91b3b0d..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetTickTransactionsResponseV2.java +++ /dev/null @@ -1,770 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.GetTickTransactionsResponseV2} - */ -public final class GetTickTransactionsResponseV2 extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.GetTickTransactionsResponseV2) - GetTickTransactionsResponseV2OrBuilder { -private static final long serialVersionUID = 0L; - // Use GetTickTransactionsResponseV2.newBuilder() to construct. - private GetTickTransactionsResponseV2(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetTickTransactionsResponseV2() { - transactions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetTickTransactionsResponseV2(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetTickTransactionsResponseV2( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - transactions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - transactions_.add( - input.readMessage(org.qubic.archiver.proto.TransactionData.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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) != 0)) { - transactions_ = java.util.Collections.unmodifiableList(transactions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickTransactionsResponseV2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickTransactionsResponseV2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.qubic.archiver.proto.GetTickTransactionsResponseV2.class, org.qubic.archiver.proto.GetTickTransactionsResponseV2.Builder.class); - } - - public static final int TRANSACTIONS_FIELD_NUMBER = 1; - private java.util.List transactions_; - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 1; - */ - @java.lang.Override - public java.util.List getTransactionsList() { - return transactions_; - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 1; - */ - @java.lang.Override - public java.util.List - getTransactionsOrBuilderList() { - return transactions_; - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 1; - */ - @java.lang.Override - public int getTransactionsCount() { - return transactions_.size(); - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 1; - */ - @java.lang.Override - public org.qubic.archiver.proto.TransactionData getTransactions(int index) { - return transactions_.get(index); - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 1; - */ - @java.lang.Override - public org.qubic.archiver.proto.TransactionDataOrBuilder getTransactionsOrBuilder( - int index) { - return transactions_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < transactions_.size(); i++) { - output.writeMessage(1, transactions_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < transactions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, transactions_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.qubic.archiver.proto.GetTickTransactionsResponseV2)) { - return super.equals(obj); - } - org.qubic.archiver.proto.GetTickTransactionsResponseV2 other = (org.qubic.archiver.proto.GetTickTransactionsResponseV2) obj; - - if (!getTransactionsList() - .equals(other.getTransactionsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTransactionsCount() > 0) { - hash = (37 * hash) + TRANSACTIONS_FIELD_NUMBER; - hash = (53 * hash) + getTransactionsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.qubic.archiver.proto.GetTickTransactionsResponseV2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetTickTransactionsResponseV2 parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetTickTransactionsResponseV2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetTickTransactionsResponseV2 parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetTickTransactionsResponseV2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetTickTransactionsResponseV2 parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetTickTransactionsResponseV2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetTickTransactionsResponseV2 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 org.qubic.archiver.proto.GetTickTransactionsResponseV2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetTickTransactionsResponseV2 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 org.qubic.archiver.proto.GetTickTransactionsResponseV2 parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetTickTransactionsResponseV2 parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.qubic.archiver.proto.GetTickTransactionsResponseV2 prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.GetTickTransactionsResponseV2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.GetTickTransactionsResponseV2) - org.qubic.archiver.proto.GetTickTransactionsResponseV2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickTransactionsResponseV2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickTransactionsResponseV2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.qubic.archiver.proto.GetTickTransactionsResponseV2.class, org.qubic.archiver.proto.GetTickTransactionsResponseV2.Builder.class); - } - - // Construct using org.qubic.archiver.proto.GetTickTransactionsResponseV2.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTransactionsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (transactionsBuilder_ == null) { - transactions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - transactionsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTickTransactionsResponseV2_descriptor; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTickTransactionsResponseV2 getDefaultInstanceForType() { - return org.qubic.archiver.proto.GetTickTransactionsResponseV2.getDefaultInstance(); - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTickTransactionsResponseV2 build() { - org.qubic.archiver.proto.GetTickTransactionsResponseV2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTickTransactionsResponseV2 buildPartial() { - org.qubic.archiver.proto.GetTickTransactionsResponseV2 result = new org.qubic.archiver.proto.GetTickTransactionsResponseV2(this); - int from_bitField0_ = bitField0_; - if (transactionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - transactions_ = java.util.Collections.unmodifiableList(transactions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.transactions_ = transactions_; - } else { - result.transactions_ = transactionsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.qubic.archiver.proto.GetTickTransactionsResponseV2) { - return mergeFrom((org.qubic.archiver.proto.GetTickTransactionsResponseV2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.qubic.archiver.proto.GetTickTransactionsResponseV2 other) { - if (other == org.qubic.archiver.proto.GetTickTransactionsResponseV2.getDefaultInstance()) return this; - if (transactionsBuilder_ == null) { - if (!other.transactions_.isEmpty()) { - if (transactions_.isEmpty()) { - transactions_ = other.transactions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTransactionsIsMutable(); - transactions_.addAll(other.transactions_); - } - onChanged(); - } - } else { - if (!other.transactions_.isEmpty()) { - if (transactionsBuilder_.isEmpty()) { - transactionsBuilder_.dispose(); - transactionsBuilder_ = null; - transactions_ = other.transactions_; - bitField0_ = (bitField0_ & ~0x00000001); - transactionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTransactionsFieldBuilder() : null; - } else { - transactionsBuilder_.addAllMessages(other.transactions_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.qubic.archiver.proto.GetTickTransactionsResponseV2 parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.qubic.archiver.proto.GetTickTransactionsResponseV2) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List transactions_ = - java.util.Collections.emptyList(); - private void ensureTransactionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - transactions_ = new java.util.ArrayList(transactions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.qubic.archiver.proto.TransactionData, org.qubic.archiver.proto.TransactionData.Builder, org.qubic.archiver.proto.TransactionDataOrBuilder> transactionsBuilder_; - - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 1; - */ - public java.util.List getTransactionsList() { - if (transactionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(transactions_); - } else { - return transactionsBuilder_.getMessageList(); - } - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 1; - */ - public int getTransactionsCount() { - if (transactionsBuilder_ == null) { - return transactions_.size(); - } else { - return transactionsBuilder_.getCount(); - } - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 1; - */ - public org.qubic.archiver.proto.TransactionData getTransactions(int index) { - if (transactionsBuilder_ == null) { - return transactions_.get(index); - } else { - return transactionsBuilder_.getMessage(index); - } - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 1; - */ - public Builder setTransactions( - int index, org.qubic.archiver.proto.TransactionData value) { - if (transactionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransactionsIsMutable(); - transactions_.set(index, value); - onChanged(); - } else { - transactionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 1; - */ - public Builder setTransactions( - int index, org.qubic.archiver.proto.TransactionData.Builder builderForValue) { - if (transactionsBuilder_ == null) { - ensureTransactionsIsMutable(); - transactions_.set(index, builderForValue.build()); - onChanged(); - } else { - transactionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 1; - */ - public Builder addTransactions(org.qubic.archiver.proto.TransactionData value) { - if (transactionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransactionsIsMutable(); - transactions_.add(value); - onChanged(); - } else { - transactionsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 1; - */ - public Builder addTransactions( - int index, org.qubic.archiver.proto.TransactionData value) { - if (transactionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransactionsIsMutable(); - transactions_.add(index, value); - onChanged(); - } else { - transactionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 1; - */ - public Builder addTransactions( - org.qubic.archiver.proto.TransactionData.Builder builderForValue) { - if (transactionsBuilder_ == null) { - ensureTransactionsIsMutable(); - transactions_.add(builderForValue.build()); - onChanged(); - } else { - transactionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 1; - */ - public Builder addTransactions( - int index, org.qubic.archiver.proto.TransactionData.Builder builderForValue) { - if (transactionsBuilder_ == null) { - ensureTransactionsIsMutable(); - transactions_.add(index, builderForValue.build()); - onChanged(); - } else { - transactionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 1; - */ - public Builder addAllTransactions( - java.lang.Iterable values) { - if (transactionsBuilder_ == null) { - ensureTransactionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, transactions_); - onChanged(); - } else { - transactionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 1; - */ - public Builder clearTransactions() { - if (transactionsBuilder_ == null) { - transactions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - transactionsBuilder_.clear(); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 1; - */ - public Builder removeTransactions(int index) { - if (transactionsBuilder_ == null) { - ensureTransactionsIsMutable(); - transactions_.remove(index); - onChanged(); - } else { - transactionsBuilder_.remove(index); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 1; - */ - public org.qubic.archiver.proto.TransactionData.Builder getTransactionsBuilder( - int index) { - return getTransactionsFieldBuilder().getBuilder(index); - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 1; - */ - public org.qubic.archiver.proto.TransactionDataOrBuilder getTransactionsOrBuilder( - int index) { - if (transactionsBuilder_ == null) { - return transactions_.get(index); } else { - return transactionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 1; - */ - public java.util.List - getTransactionsOrBuilderList() { - if (transactionsBuilder_ != null) { - return transactionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(transactions_); - } - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 1; - */ - public org.qubic.archiver.proto.TransactionData.Builder addTransactionsBuilder() { - return getTransactionsFieldBuilder().addBuilder( - org.qubic.archiver.proto.TransactionData.getDefaultInstance()); - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 1; - */ - public org.qubic.archiver.proto.TransactionData.Builder addTransactionsBuilder( - int index) { - return getTransactionsFieldBuilder().addBuilder( - index, org.qubic.archiver.proto.TransactionData.getDefaultInstance()); - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 1; - */ - public java.util.List - getTransactionsBuilderList() { - return getTransactionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.qubic.archiver.proto.TransactionData, org.qubic.archiver.proto.TransactionData.Builder, org.qubic.archiver.proto.TransactionDataOrBuilder> - getTransactionsFieldBuilder() { - if (transactionsBuilder_ == null) { - transactionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.qubic.archiver.proto.TransactionData, org.qubic.archiver.proto.TransactionData.Builder, org.qubic.archiver.proto.TransactionDataOrBuilder>( - transactions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - transactions_ = null; - } - return transactionsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.GetTickTransactionsResponseV2) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.GetTickTransactionsResponseV2) - private static final org.qubic.archiver.proto.GetTickTransactionsResponseV2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.qubic.archiver.proto.GetTickTransactionsResponseV2(); - } - - public static org.qubic.archiver.proto.GetTickTransactionsResponseV2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetTickTransactionsResponseV2 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetTickTransactionsResponseV2(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTickTransactionsResponseV2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/GetTickTransactionsResponseV2OrBuilder.java b/src/main/java/org/qubic/archiver/proto/GetTickTransactionsResponseV2OrBuilder.java deleted file mode 100644 index 0c5be71..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetTickTransactionsResponseV2OrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface GetTickTransactionsResponseV2OrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.GetTickTransactionsResponseV2) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 1; - */ - java.util.List - getTransactionsList(); - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 1; - */ - org.qubic.archiver.proto.TransactionData getTransactions(int index); - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 1; - */ - int getTransactionsCount(); - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 1; - */ - java.util.List - getTransactionsOrBuilderList(); - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 1; - */ - org.qubic.archiver.proto.TransactionDataOrBuilder getTransactionsOrBuilder( - int index); -} diff --git a/src/main/java/org/qubic/archiver/proto/GetTransactionRequest.java b/src/main/java/org/qubic/archiver/proto/GetTransactionRequest.java deleted file mode 100644 index e6d5af5..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetTransactionRequest.java +++ /dev/null @@ -1,557 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.GetTransactionRequest} - */ -public final class GetTransactionRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.GetTransactionRequest) - GetTransactionRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetTransactionRequest.newBuilder() to construct. - private GetTransactionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetTransactionRequest() { - txId_ = ""; - } - - @Override - @SuppressWarnings({"unused"}) - protected Object newInstance( - UnusedPrivateParameter unused) { - return new GetTransactionRequest(); - } - - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetTransactionRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - String s = input.readStringRequireUtf8(); - - txId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransactionRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransactionRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - GetTransactionRequest.class, Builder.class); - } - - public static final int TX_ID_FIELD_NUMBER = 1; - private volatile Object txId_; - /** - * string tx_id = 1; - * @return The txId. - */ - @Override - public String getTxId() { - Object ref = txId_; - if (ref instanceof String) { - return (String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - txId_ = s; - return s; - } - } - /** - * string tx_id = 1; - * @return The bytes for txId. - */ - @Override - public com.google.protobuf.ByteString - getTxIdBytes() { - Object ref = txId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - txId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getTxIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, txId_); - } - unknownFields.writeTo(output); - } - - @Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTxIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, txId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @Override - public boolean equals(final Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof GetTransactionRequest)) { - return super.equals(obj); - } - GetTransactionRequest other = (GetTransactionRequest) obj; - - if (!getTxId() - .equals(other.getTxId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TX_ID_FIELD_NUMBER; - hash = (53 * hash) + getTxId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static GetTransactionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetTransactionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetTransactionRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetTransactionRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetTransactionRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetTransactionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetTransactionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static GetTransactionRequest 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 GetTransactionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static GetTransactionRequest 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 GetTransactionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static GetTransactionRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(GetTransactionRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.GetTransactionRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.GetTransactionRequest) - GetTransactionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransactionRequest_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransactionRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - GetTransactionRequest.class, Builder.class); - } - - // Construct using org.qubic.archiver.proto.GetTransactionRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @Override - public Builder clear() { - super.clear(); - txId_ = ""; - - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransactionRequest_descriptor; - } - - @Override - public GetTransactionRequest getDefaultInstanceForType() { - return GetTransactionRequest.getDefaultInstance(); - } - - @Override - public GetTransactionRequest build() { - GetTransactionRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public GetTransactionRequest buildPartial() { - GetTransactionRequest result = new GetTransactionRequest(this); - result.txId_ = txId_; - onBuilt(); - return result; - } - - @Override - public Builder clone() { - return super.clone(); - } - @Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.setField(field, value); - } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return super.setRepeatedField(field, index, value); - } - @Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.addRepeatedField(field, value); - } - @Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof GetTransactionRequest) { - return mergeFrom((GetTransactionRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(GetTransactionRequest other) { - if (other == GetTransactionRequest.getDefaultInstance()) return this; - if (!other.getTxId().isEmpty()) { - txId_ = other.txId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - GetTransactionRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (GetTransactionRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private Object txId_ = ""; - /** - * string tx_id = 1; - * @return The txId. - */ - public String getTxId() { - Object ref = txId_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - txId_ = s; - return s; - } else { - return (String) ref; - } - } - /** - * string tx_id = 1; - * @return The bytes for txId. - */ - public com.google.protobuf.ByteString - getTxIdBytes() { - Object ref = txId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - txId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string tx_id = 1; - * @param value The txId to set. - * @return This builder for chaining. - */ - public Builder setTxId( - String value) { - if (value == null) { - throw new NullPointerException(); - } - - txId_ = value; - onChanged(); - return this; - } - /** - * string tx_id = 1; - * @return This builder for chaining. - */ - public Builder clearTxId() { - - txId_ = getDefaultInstance().getTxId(); - onChanged(); - return this; - } - /** - * string tx_id = 1; - * @param value The bytes for txId to set. - * @return This builder for chaining. - */ - public Builder setTxIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - txId_ = value; - onChanged(); - return this; - } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.GetTransactionRequest) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.GetTransactionRequest) - private static final GetTransactionRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new GetTransactionRequest(); - } - - public static GetTransactionRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public GetTransactionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetTransactionRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public GetTransactionRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/GetTransactionRequestOrBuilder.java b/src/main/java/org/qubic/archiver/proto/GetTransactionRequestOrBuilder.java deleted file mode 100644 index 5108f42..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetTransactionRequestOrBuilder.java +++ /dev/null @@ -1,21 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface GetTransactionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.GetTransactionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * string tx_id = 1; - * @return The txId. - */ - java.lang.String getTxId(); - /** - * string tx_id = 1; - * @return The bytes for txId. - */ - com.google.protobuf.ByteString - getTxIdBytes(); -} diff --git a/src/main/java/org/qubic/archiver/proto/GetTransactionRequestV2.java b/src/main/java/org/qubic/archiver/proto/GetTransactionRequestV2.java deleted file mode 100644 index 77d22f1..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetTransactionRequestV2.java +++ /dev/null @@ -1,565 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - *
- * Get Transaction
- * 
- * - * Protobuf type {@code qubic.archiver.archive.pb.GetTransactionRequestV2} - */ -public final class GetTransactionRequestV2 extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.GetTransactionRequestV2) - GetTransactionRequestV2OrBuilder { -private static final long serialVersionUID = 0L; - // Use GetTransactionRequestV2.newBuilder() to construct. - private GetTransactionRequestV2(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetTransactionRequestV2() { - txId_ = ""; - } - - @Override - @SuppressWarnings({"unused"}) - protected Object newInstance( - UnusedPrivateParameter unused) { - return new GetTransactionRequestV2(); - } - - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetTransactionRequestV2( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - String s = input.readStringRequireUtf8(); - - txId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransactionRequestV2_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransactionRequestV2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - GetTransactionRequestV2.class, Builder.class); - } - - public static final int TX_ID_FIELD_NUMBER = 1; - private volatile Object txId_; - /** - * string tx_id = 1; - * @return The txId. - */ - @Override - public String getTxId() { - Object ref = txId_; - if (ref instanceof String) { - return (String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - txId_ = s; - return s; - } - } - /** - * string tx_id = 1; - * @return The bytes for txId. - */ - @Override - public com.google.protobuf.ByteString - getTxIdBytes() { - Object ref = txId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - txId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getTxIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, txId_); - } - unknownFields.writeTo(output); - } - - @Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTxIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, txId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @Override - public boolean equals(final Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof GetTransactionRequestV2)) { - return super.equals(obj); - } - GetTransactionRequestV2 other = (GetTransactionRequestV2) obj; - - if (!getTxId() - .equals(other.getTxId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TX_ID_FIELD_NUMBER; - hash = (53 * hash) + getTxId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static GetTransactionRequestV2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetTransactionRequestV2 parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetTransactionRequestV2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetTransactionRequestV2 parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetTransactionRequestV2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetTransactionRequestV2 parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetTransactionRequestV2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static GetTransactionRequestV2 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 GetTransactionRequestV2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static GetTransactionRequestV2 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 GetTransactionRequestV2 parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static GetTransactionRequestV2 parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(GetTransactionRequestV2 prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Get Transaction
-   * 
- * - * Protobuf type {@code qubic.archiver.archive.pb.GetTransactionRequestV2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.GetTransactionRequestV2) - GetTransactionRequestV2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransactionRequestV2_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransactionRequestV2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - GetTransactionRequestV2.class, Builder.class); - } - - // Construct using org.qubic.archiver.proto.GetTransactionRequestV2.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @Override - public Builder clear() { - super.clear(); - txId_ = ""; - - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransactionRequestV2_descriptor; - } - - @Override - public GetTransactionRequestV2 getDefaultInstanceForType() { - return GetTransactionRequestV2.getDefaultInstance(); - } - - @Override - public GetTransactionRequestV2 build() { - GetTransactionRequestV2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public GetTransactionRequestV2 buildPartial() { - GetTransactionRequestV2 result = new GetTransactionRequestV2(this); - result.txId_ = txId_; - onBuilt(); - return result; - } - - @Override - public Builder clone() { - return super.clone(); - } - @Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.setField(field, value); - } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return super.setRepeatedField(field, index, value); - } - @Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.addRepeatedField(field, value); - } - @Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof GetTransactionRequestV2) { - return mergeFrom((GetTransactionRequestV2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(GetTransactionRequestV2 other) { - if (other == GetTransactionRequestV2.getDefaultInstance()) return this; - if (!other.getTxId().isEmpty()) { - txId_ = other.txId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - GetTransactionRequestV2 parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (GetTransactionRequestV2) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private Object txId_ = ""; - /** - * string tx_id = 1; - * @return The txId. - */ - public String getTxId() { - Object ref = txId_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - txId_ = s; - return s; - } else { - return (String) ref; - } - } - /** - * string tx_id = 1; - * @return The bytes for txId. - */ - public com.google.protobuf.ByteString - getTxIdBytes() { - Object ref = txId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - txId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string tx_id = 1; - * @param value The txId to set. - * @return This builder for chaining. - */ - public Builder setTxId( - String value) { - if (value == null) { - throw new NullPointerException(); - } - - txId_ = value; - onChanged(); - return this; - } - /** - * string tx_id = 1; - * @return This builder for chaining. - */ - public Builder clearTxId() { - - txId_ = getDefaultInstance().getTxId(); - onChanged(); - return this; - } - /** - * string tx_id = 1; - * @param value The bytes for txId to set. - * @return This builder for chaining. - */ - public Builder setTxIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - txId_ = value; - onChanged(); - return this; - } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.GetTransactionRequestV2) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.GetTransactionRequestV2) - private static final GetTransactionRequestV2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new GetTransactionRequestV2(); - } - - public static GetTransactionRequestV2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public GetTransactionRequestV2 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetTransactionRequestV2(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public GetTransactionRequestV2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/GetTransactionRequestV2OrBuilder.java b/src/main/java/org/qubic/archiver/proto/GetTransactionRequestV2OrBuilder.java deleted file mode 100644 index b535e84..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetTransactionRequestV2OrBuilder.java +++ /dev/null @@ -1,21 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface GetTransactionRequestV2OrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.GetTransactionRequestV2) - com.google.protobuf.MessageOrBuilder { - - /** - * string tx_id = 1; - * @return The txId. - */ - java.lang.String getTxId(); - /** - * string tx_id = 1; - * @return The bytes for txId. - */ - com.google.protobuf.ByteString - getTxIdBytes(); -} diff --git a/src/main/java/org/qubic/archiver/proto/GetTransactionResponse.java b/src/main/java/org/qubic/archiver/proto/GetTransactionResponse.java deleted file mode 100644 index b3020af..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetTransactionResponse.java +++ /dev/null @@ -1,607 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.GetTransactionResponse} - */ -public final class GetTransactionResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.GetTransactionResponse) - GetTransactionResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetTransactionResponse.newBuilder() to construct. - private GetTransactionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetTransactionResponse() { - } - - @Override - @SuppressWarnings({"unused"}) - protected Object newInstance( - UnusedPrivateParameter unused) { - return new GetTransactionResponse(); - } - - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetTransactionResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - Transaction.Builder subBuilder = null; - if (transaction_ != null) { - subBuilder = transaction_.toBuilder(); - } - transaction_ = input.readMessage(Transaction.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(transaction_); - transaction_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransactionResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransactionResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - GetTransactionResponse.class, Builder.class); - } - - public static final int TRANSACTION_FIELD_NUMBER = 1; - private Transaction transaction_; - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - * @return Whether the transaction field is set. - */ - @Override - public boolean hasTransaction() { - return transaction_ != null; - } - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - * @return The transaction. - */ - @Override - public Transaction getTransaction() { - return transaction_ == null ? Transaction.getDefaultInstance() : transaction_; - } - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - */ - @Override - public TransactionOrBuilder getTransactionOrBuilder() { - return getTransaction(); - } - - private byte memoizedIsInitialized = -1; - @Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (transaction_ != null) { - output.writeMessage(1, getTransaction()); - } - unknownFields.writeTo(output); - } - - @Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (transaction_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTransaction()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @Override - public boolean equals(final Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof GetTransactionResponse)) { - return super.equals(obj); - } - GetTransactionResponse other = (GetTransactionResponse) obj; - - if (hasTransaction() != other.hasTransaction()) return false; - if (hasTransaction()) { - if (!getTransaction() - .equals(other.getTransaction())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasTransaction()) { - hash = (37 * hash) + TRANSACTION_FIELD_NUMBER; - hash = (53 * hash) + getTransaction().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static GetTransactionResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetTransactionResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetTransactionResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetTransactionResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetTransactionResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetTransactionResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetTransactionResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static GetTransactionResponse 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 GetTransactionResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static GetTransactionResponse 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 GetTransactionResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static GetTransactionResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(GetTransactionResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.GetTransactionResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.GetTransactionResponse) - GetTransactionResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransactionResponse_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransactionResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - GetTransactionResponse.class, Builder.class); - } - - // Construct using org.qubic.archiver.proto.GetTransactionResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @Override - public Builder clear() { - super.clear(); - if (transactionBuilder_ == null) { - transaction_ = null; - } else { - transaction_ = null; - transactionBuilder_ = null; - } - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransactionResponse_descriptor; - } - - @Override - public GetTransactionResponse getDefaultInstanceForType() { - return GetTransactionResponse.getDefaultInstance(); - } - - @Override - public GetTransactionResponse build() { - GetTransactionResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public GetTransactionResponse buildPartial() { - GetTransactionResponse result = new GetTransactionResponse(this); - if (transactionBuilder_ == null) { - result.transaction_ = transaction_; - } else { - result.transaction_ = transactionBuilder_.build(); - } - onBuilt(); - return result; - } - - @Override - public Builder clone() { - return super.clone(); - } - @Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.setField(field, value); - } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return super.setRepeatedField(field, index, value); - } - @Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.addRepeatedField(field, value); - } - @Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof GetTransactionResponse) { - return mergeFrom((GetTransactionResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(GetTransactionResponse other) { - if (other == GetTransactionResponse.getDefaultInstance()) return this; - if (other.hasTransaction()) { - mergeTransaction(other.getTransaction()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - GetTransactionResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (GetTransactionResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private Transaction transaction_; - private com.google.protobuf.SingleFieldBuilderV3< - Transaction, Transaction.Builder, TransactionOrBuilder> transactionBuilder_; - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - * @return Whether the transaction field is set. - */ - public boolean hasTransaction() { - return transactionBuilder_ != null || transaction_ != null; - } - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - * @return The transaction. - */ - public Transaction getTransaction() { - if (transactionBuilder_ == null) { - return transaction_ == null ? Transaction.getDefaultInstance() : transaction_; - } else { - return transactionBuilder_.getMessage(); - } - } - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - */ - public Builder setTransaction(Transaction value) { - if (transactionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - transaction_ = value; - onChanged(); - } else { - transactionBuilder_.setMessage(value); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - */ - public Builder setTransaction( - Transaction.Builder builderForValue) { - if (transactionBuilder_ == null) { - transaction_ = builderForValue.build(); - onChanged(); - } else { - transactionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - */ - public Builder mergeTransaction(Transaction value) { - if (transactionBuilder_ == null) { - if (transaction_ != null) { - transaction_ = - Transaction.newBuilder(transaction_).mergeFrom(value).buildPartial(); - } else { - transaction_ = value; - } - onChanged(); - } else { - transactionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - */ - public Builder clearTransaction() { - if (transactionBuilder_ == null) { - transaction_ = null; - onChanged(); - } else { - transaction_ = null; - transactionBuilder_ = null; - } - - return this; - } - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - */ - public Transaction.Builder getTransactionBuilder() { - - onChanged(); - return getTransactionFieldBuilder().getBuilder(); - } - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - */ - public TransactionOrBuilder getTransactionOrBuilder() { - if (transactionBuilder_ != null) { - return transactionBuilder_.getMessageOrBuilder(); - } else { - return transaction_ == null ? - Transaction.getDefaultInstance() : transaction_; - } - } - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - Transaction, Transaction.Builder, TransactionOrBuilder> - getTransactionFieldBuilder() { - if (transactionBuilder_ == null) { - transactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - Transaction, Transaction.Builder, TransactionOrBuilder>( - getTransaction(), - getParentForChildren(), - isClean()); - transaction_ = null; - } - return transactionBuilder_; - } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.GetTransactionResponse) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.GetTransactionResponse) - private static final GetTransactionResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new GetTransactionResponse(); - } - - public static GetTransactionResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public GetTransactionResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetTransactionResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public GetTransactionResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/GetTransactionResponseOrBuilder.java b/src/main/java/org/qubic/archiver/proto/GetTransactionResponseOrBuilder.java deleted file mode 100644 index 59f8961..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetTransactionResponseOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface GetTransactionResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.GetTransactionResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - * @return Whether the transaction field is set. - */ - boolean hasTransaction(); - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - * @return The transaction. - */ - org.qubic.archiver.proto.Transaction getTransaction(); - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - */ - org.qubic.archiver.proto.TransactionOrBuilder getTransactionOrBuilder(); -} diff --git a/src/main/java/org/qubic/archiver/proto/GetTransactionResponseV2.java b/src/main/java/org/qubic/archiver/proto/GetTransactionResponseV2.java deleted file mode 100644 index b9c6498..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetTransactionResponseV2.java +++ /dev/null @@ -1,737 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.GetTransactionResponseV2} - */ -public final class GetTransactionResponseV2 extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.GetTransactionResponseV2) - GetTransactionResponseV2OrBuilder { -private static final long serialVersionUID = 0L; - // Use GetTransactionResponseV2.newBuilder() to construct. - private GetTransactionResponseV2(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetTransactionResponseV2() { - } - - @Override - @SuppressWarnings({"unused"}) - protected Object newInstance( - UnusedPrivateParameter unused) { - return new GetTransactionResponseV2(); - } - - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetTransactionResponseV2( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - Transaction.Builder subBuilder = null; - if (transaction_ != null) { - subBuilder = transaction_.toBuilder(); - } - transaction_ = input.readMessage(Transaction.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(transaction_); - transaction_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - timestamp_ = input.readUInt64(); - break; - } - case 24: { - - moneyFlew_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransactionResponseV2_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransactionResponseV2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - GetTransactionResponseV2.class, Builder.class); - } - - public static final int TRANSACTION_FIELD_NUMBER = 1; - private Transaction transaction_; - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - * @return Whether the transaction field is set. - */ - @Override - public boolean hasTransaction() { - return transaction_ != null; - } - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - * @return The transaction. - */ - @Override - public Transaction getTransaction() { - return transaction_ == null ? Transaction.getDefaultInstance() : transaction_; - } - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - */ - @Override - public TransactionOrBuilder getTransactionOrBuilder() { - return getTransaction(); - } - - public static final int TIMESTAMP_FIELD_NUMBER = 2; - private long timestamp_; - /** - * uint64 timestamp = 2; - * @return The timestamp. - */ - @Override - public long getTimestamp() { - return timestamp_; - } - - public static final int MONEY_FLEW_FIELD_NUMBER = 3; - private boolean moneyFlew_; - /** - * bool money_flew = 3; - * @return The moneyFlew. - */ - @Override - public boolean getMoneyFlew() { - return moneyFlew_; - } - - private byte memoizedIsInitialized = -1; - @Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (transaction_ != null) { - output.writeMessage(1, getTransaction()); - } - if (timestamp_ != 0L) { - output.writeUInt64(2, timestamp_); - } - if (moneyFlew_ != false) { - output.writeBool(3, moneyFlew_); - } - unknownFields.writeTo(output); - } - - @Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (transaction_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTransaction()); - } - if (timestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, timestamp_); - } - if (moneyFlew_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, moneyFlew_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @Override - public boolean equals(final Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof GetTransactionResponseV2)) { - return super.equals(obj); - } - GetTransactionResponseV2 other = (GetTransactionResponseV2) obj; - - if (hasTransaction() != other.hasTransaction()) return false; - if (hasTransaction()) { - if (!getTransaction() - .equals(other.getTransaction())) return false; - } - if (getTimestamp() - != other.getTimestamp()) return false; - if (getMoneyFlew() - != other.getMoneyFlew()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasTransaction()) { - hash = (37 * hash) + TRANSACTION_FIELD_NUMBER; - hash = (53 * hash) + getTransaction().hashCode(); - } - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimestamp()); - hash = (37 * hash) + MONEY_FLEW_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getMoneyFlew()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static GetTransactionResponseV2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetTransactionResponseV2 parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetTransactionResponseV2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetTransactionResponseV2 parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetTransactionResponseV2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static GetTransactionResponseV2 parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static GetTransactionResponseV2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static GetTransactionResponseV2 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 GetTransactionResponseV2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static GetTransactionResponseV2 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 GetTransactionResponseV2 parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static GetTransactionResponseV2 parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(GetTransactionResponseV2 prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.GetTransactionResponseV2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.GetTransactionResponseV2) - GetTransactionResponseV2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransactionResponseV2_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransactionResponseV2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - GetTransactionResponseV2.class, Builder.class); - } - - // Construct using org.qubic.archiver.proto.GetTransactionResponseV2.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @Override - public Builder clear() { - super.clear(); - if (transactionBuilder_ == null) { - transaction_ = null; - } else { - transaction_ = null; - transactionBuilder_ = null; - } - timestamp_ = 0L; - - moneyFlew_ = false; - - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransactionResponseV2_descriptor; - } - - @Override - public GetTransactionResponseV2 getDefaultInstanceForType() { - return GetTransactionResponseV2.getDefaultInstance(); - } - - @Override - public GetTransactionResponseV2 build() { - GetTransactionResponseV2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public GetTransactionResponseV2 buildPartial() { - GetTransactionResponseV2 result = new GetTransactionResponseV2(this); - if (transactionBuilder_ == null) { - result.transaction_ = transaction_; - } else { - result.transaction_ = transactionBuilder_.build(); - } - result.timestamp_ = timestamp_; - result.moneyFlew_ = moneyFlew_; - onBuilt(); - return result; - } - - @Override - public Builder clone() { - return super.clone(); - } - @Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.setField(field, value); - } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return super.setRepeatedField(field, index, value); - } - @Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.addRepeatedField(field, value); - } - @Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof GetTransactionResponseV2) { - return mergeFrom((GetTransactionResponseV2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(GetTransactionResponseV2 other) { - if (other == GetTransactionResponseV2.getDefaultInstance()) return this; - if (other.hasTransaction()) { - mergeTransaction(other.getTransaction()); - } - if (other.getTimestamp() != 0L) { - setTimestamp(other.getTimestamp()); - } - if (other.getMoneyFlew() != false) { - setMoneyFlew(other.getMoneyFlew()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - GetTransactionResponseV2 parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (GetTransactionResponseV2) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private Transaction transaction_; - private com.google.protobuf.SingleFieldBuilderV3< - Transaction, Transaction.Builder, TransactionOrBuilder> transactionBuilder_; - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - * @return Whether the transaction field is set. - */ - public boolean hasTransaction() { - return transactionBuilder_ != null || transaction_ != null; - } - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - * @return The transaction. - */ - public Transaction getTransaction() { - if (transactionBuilder_ == null) { - return transaction_ == null ? Transaction.getDefaultInstance() : transaction_; - } else { - return transactionBuilder_.getMessage(); - } - } - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - */ - public Builder setTransaction(Transaction value) { - if (transactionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - transaction_ = value; - onChanged(); - } else { - transactionBuilder_.setMessage(value); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - */ - public Builder setTransaction( - Transaction.Builder builderForValue) { - if (transactionBuilder_ == null) { - transaction_ = builderForValue.build(); - onChanged(); - } else { - transactionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - */ - public Builder mergeTransaction(Transaction value) { - if (transactionBuilder_ == null) { - if (transaction_ != null) { - transaction_ = - Transaction.newBuilder(transaction_).mergeFrom(value).buildPartial(); - } else { - transaction_ = value; - } - onChanged(); - } else { - transactionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - */ - public Builder clearTransaction() { - if (transactionBuilder_ == null) { - transaction_ = null; - onChanged(); - } else { - transaction_ = null; - transactionBuilder_ = null; - } - - return this; - } - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - */ - public Transaction.Builder getTransactionBuilder() { - - onChanged(); - return getTransactionFieldBuilder().getBuilder(); - } - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - */ - public TransactionOrBuilder getTransactionOrBuilder() { - if (transactionBuilder_ != null) { - return transactionBuilder_.getMessageOrBuilder(); - } else { - return transaction_ == null ? - Transaction.getDefaultInstance() : transaction_; - } - } - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - Transaction, Transaction.Builder, TransactionOrBuilder> - getTransactionFieldBuilder() { - if (transactionBuilder_ == null) { - transactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - Transaction, Transaction.Builder, TransactionOrBuilder>( - getTransaction(), - getParentForChildren(), - isClean()); - transaction_ = null; - } - return transactionBuilder_; - } - - private long timestamp_ ; - /** - * uint64 timestamp = 2; - * @return The timestamp. - */ - @Override - public long getTimestamp() { - return timestamp_; - } - /** - * uint64 timestamp = 2; - * @param value The timestamp to set. - * @return This builder for chaining. - */ - public Builder setTimestamp(long value) { - - timestamp_ = value; - onChanged(); - return this; - } - /** - * uint64 timestamp = 2; - * @return This builder for chaining. - */ - public Builder clearTimestamp() { - - timestamp_ = 0L; - onChanged(); - return this; - } - - private boolean moneyFlew_ ; - /** - * bool money_flew = 3; - * @return The moneyFlew. - */ - @Override - public boolean getMoneyFlew() { - return moneyFlew_; - } - /** - * bool money_flew = 3; - * @param value The moneyFlew to set. - * @return This builder for chaining. - */ - public Builder setMoneyFlew(boolean value) { - - moneyFlew_ = value; - onChanged(); - return this; - } - /** - * bool money_flew = 3; - * @return This builder for chaining. - */ - public Builder clearMoneyFlew() { - - moneyFlew_ = false; - onChanged(); - return this; - } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.GetTransactionResponseV2) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.GetTransactionResponseV2) - private static final GetTransactionResponseV2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new GetTransactionResponseV2(); - } - - public static GetTransactionResponseV2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public GetTransactionResponseV2 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetTransactionResponseV2(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public GetTransactionResponseV2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/GetTransactionResponseV2OrBuilder.java b/src/main/java/org/qubic/archiver/proto/GetTransactionResponseV2OrBuilder.java deleted file mode 100644 index c9ee583..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetTransactionResponseV2OrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface GetTransactionResponseV2OrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.GetTransactionResponseV2) - com.google.protobuf.MessageOrBuilder { - - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - * @return Whether the transaction field is set. - */ - boolean hasTransaction(); - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - * @return The transaction. - */ - org.qubic.archiver.proto.Transaction getTransaction(); - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - */ - org.qubic.archiver.proto.TransactionOrBuilder getTransactionOrBuilder(); - - /** - * uint64 timestamp = 2; - * @return The timestamp. - */ - long getTimestamp(); - - /** - * bool money_flew = 3; - * @return The moneyFlew. - */ - boolean getMoneyFlew(); -} diff --git a/src/main/java/org/qubic/archiver/proto/GetTransactionStatusRequest.java b/src/main/java/org/qubic/archiver/proto/GetTransactionStatusRequest.java deleted file mode 100644 index b193168..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetTransactionStatusRequest.java +++ /dev/null @@ -1,557 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.GetTransactionStatusRequest} - */ -public final class GetTransactionStatusRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.GetTransactionStatusRequest) - GetTransactionStatusRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetTransactionStatusRequest.newBuilder() to construct. - private GetTransactionStatusRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetTransactionStatusRequest() { - txId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetTransactionStatusRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetTransactionStatusRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - txId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransactionStatusRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransactionStatusRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.qubic.archiver.proto.GetTransactionStatusRequest.class, org.qubic.archiver.proto.GetTransactionStatusRequest.Builder.class); - } - - public static final int TX_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object txId_; - /** - * string tx_id = 1; - * @return The txId. - */ - @java.lang.Override - public java.lang.String getTxId() { - java.lang.Object ref = txId_; - 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(); - txId_ = s; - return s; - } - } - /** - * string tx_id = 1; - * @return The bytes for txId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTxIdBytes() { - java.lang.Object ref = txId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - txId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getTxIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, txId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTxIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, txId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.qubic.archiver.proto.GetTransactionStatusRequest)) { - return super.equals(obj); - } - org.qubic.archiver.proto.GetTransactionStatusRequest other = (org.qubic.archiver.proto.GetTransactionStatusRequest) obj; - - if (!getTxId() - .equals(other.getTxId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TX_ID_FIELD_NUMBER; - hash = (53 * hash) + getTxId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.qubic.archiver.proto.GetTransactionStatusRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetTransactionStatusRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetTransactionStatusRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetTransactionStatusRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetTransactionStatusRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetTransactionStatusRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetTransactionStatusRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetTransactionStatusRequest 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 org.qubic.archiver.proto.GetTransactionStatusRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetTransactionStatusRequest 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 org.qubic.archiver.proto.GetTransactionStatusRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetTransactionStatusRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.qubic.archiver.proto.GetTransactionStatusRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.GetTransactionStatusRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.GetTransactionStatusRequest) - org.qubic.archiver.proto.GetTransactionStatusRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransactionStatusRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransactionStatusRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.qubic.archiver.proto.GetTransactionStatusRequest.class, org.qubic.archiver.proto.GetTransactionStatusRequest.Builder.class); - } - - // Construct using org.qubic.archiver.proto.GetTransactionStatusRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - txId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransactionStatusRequest_descriptor; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTransactionStatusRequest getDefaultInstanceForType() { - return org.qubic.archiver.proto.GetTransactionStatusRequest.getDefaultInstance(); - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTransactionStatusRequest build() { - org.qubic.archiver.proto.GetTransactionStatusRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTransactionStatusRequest buildPartial() { - org.qubic.archiver.proto.GetTransactionStatusRequest result = new org.qubic.archiver.proto.GetTransactionStatusRequest(this); - result.txId_ = txId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.qubic.archiver.proto.GetTransactionStatusRequest) { - return mergeFrom((org.qubic.archiver.proto.GetTransactionStatusRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.qubic.archiver.proto.GetTransactionStatusRequest other) { - if (other == org.qubic.archiver.proto.GetTransactionStatusRequest.getDefaultInstance()) return this; - if (!other.getTxId().isEmpty()) { - txId_ = other.txId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.qubic.archiver.proto.GetTransactionStatusRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.qubic.archiver.proto.GetTransactionStatusRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object txId_ = ""; - /** - * string tx_id = 1; - * @return The txId. - */ - public java.lang.String getTxId() { - java.lang.Object ref = txId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - txId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string tx_id = 1; - * @return The bytes for txId. - */ - public com.google.protobuf.ByteString - getTxIdBytes() { - java.lang.Object ref = txId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - txId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string tx_id = 1; - * @param value The txId to set. - * @return This builder for chaining. - */ - public Builder setTxId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - txId_ = value; - onChanged(); - return this; - } - /** - * string tx_id = 1; - * @return This builder for chaining. - */ - public Builder clearTxId() { - - txId_ = getDefaultInstance().getTxId(); - onChanged(); - return this; - } - /** - * string tx_id = 1; - * @param value The bytes for txId to set. - * @return This builder for chaining. - */ - public Builder setTxIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - txId_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.GetTransactionStatusRequest) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.GetTransactionStatusRequest) - private static final org.qubic.archiver.proto.GetTransactionStatusRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.qubic.archiver.proto.GetTransactionStatusRequest(); - } - - public static org.qubic.archiver.proto.GetTransactionStatusRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetTransactionStatusRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetTransactionStatusRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTransactionStatusRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/GetTransactionStatusRequestOrBuilder.java b/src/main/java/org/qubic/archiver/proto/GetTransactionStatusRequestOrBuilder.java deleted file mode 100644 index 94a5bb4..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetTransactionStatusRequestOrBuilder.java +++ /dev/null @@ -1,21 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface GetTransactionStatusRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.GetTransactionStatusRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * string tx_id = 1; - * @return The txId. - */ - java.lang.String getTxId(); - /** - * string tx_id = 1; - * @return The bytes for txId. - */ - com.google.protobuf.ByteString - getTxIdBytes(); -} diff --git a/src/main/java/org/qubic/archiver/proto/GetTransactionStatusResponse.java b/src/main/java/org/qubic/archiver/proto/GetTransactionStatusResponse.java deleted file mode 100644 index de797de..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetTransactionStatusResponse.java +++ /dev/null @@ -1,607 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.GetTransactionStatusResponse} - */ -public final class GetTransactionStatusResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.GetTransactionStatusResponse) - GetTransactionStatusResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetTransactionStatusResponse.newBuilder() to construct. - private GetTransactionStatusResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetTransactionStatusResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetTransactionStatusResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetTransactionStatusResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - org.qubic.archiver.proto.TransactionStatus.Builder subBuilder = null; - if (transactionStatus_ != null) { - subBuilder = transactionStatus_.toBuilder(); - } - transactionStatus_ = input.readMessage(org.qubic.archiver.proto.TransactionStatus.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(transactionStatus_); - transactionStatus_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransactionStatusResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransactionStatusResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.qubic.archiver.proto.GetTransactionStatusResponse.class, org.qubic.archiver.proto.GetTransactionStatusResponse.Builder.class); - } - - public static final int TRANSACTION_STATUS_FIELD_NUMBER = 1; - private org.qubic.archiver.proto.TransactionStatus transactionStatus_; - /** - * .qubic.archiver.archive.pb.TransactionStatus transaction_status = 1; - * @return Whether the transactionStatus field is set. - */ - @java.lang.Override - public boolean hasTransactionStatus() { - return transactionStatus_ != null; - } - /** - * .qubic.archiver.archive.pb.TransactionStatus transaction_status = 1; - * @return The transactionStatus. - */ - @java.lang.Override - public org.qubic.archiver.proto.TransactionStatus getTransactionStatus() { - return transactionStatus_ == null ? org.qubic.archiver.proto.TransactionStatus.getDefaultInstance() : transactionStatus_; - } - /** - * .qubic.archiver.archive.pb.TransactionStatus transaction_status = 1; - */ - @java.lang.Override - public org.qubic.archiver.proto.TransactionStatusOrBuilder getTransactionStatusOrBuilder() { - return getTransactionStatus(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (transactionStatus_ != null) { - output.writeMessage(1, getTransactionStatus()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (transactionStatus_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTransactionStatus()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.qubic.archiver.proto.GetTransactionStatusResponse)) { - return super.equals(obj); - } - org.qubic.archiver.proto.GetTransactionStatusResponse other = (org.qubic.archiver.proto.GetTransactionStatusResponse) obj; - - if (hasTransactionStatus() != other.hasTransactionStatus()) return false; - if (hasTransactionStatus()) { - if (!getTransactionStatus() - .equals(other.getTransactionStatus())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasTransactionStatus()) { - hash = (37 * hash) + TRANSACTION_STATUS_FIELD_NUMBER; - hash = (53 * hash) + getTransactionStatus().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.qubic.archiver.proto.GetTransactionStatusResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetTransactionStatusResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetTransactionStatusResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetTransactionStatusResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetTransactionStatusResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetTransactionStatusResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetTransactionStatusResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetTransactionStatusResponse 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 org.qubic.archiver.proto.GetTransactionStatusResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetTransactionStatusResponse 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 org.qubic.archiver.proto.GetTransactionStatusResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetTransactionStatusResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.qubic.archiver.proto.GetTransactionStatusResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.GetTransactionStatusResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.GetTransactionStatusResponse) - org.qubic.archiver.proto.GetTransactionStatusResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransactionStatusResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransactionStatusResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.qubic.archiver.proto.GetTransactionStatusResponse.class, org.qubic.archiver.proto.GetTransactionStatusResponse.Builder.class); - } - - // Construct using org.qubic.archiver.proto.GetTransactionStatusResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (transactionStatusBuilder_ == null) { - transactionStatus_ = null; - } else { - transactionStatus_ = null; - transactionStatusBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransactionStatusResponse_descriptor; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTransactionStatusResponse getDefaultInstanceForType() { - return org.qubic.archiver.proto.GetTransactionStatusResponse.getDefaultInstance(); - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTransactionStatusResponse build() { - org.qubic.archiver.proto.GetTransactionStatusResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTransactionStatusResponse buildPartial() { - org.qubic.archiver.proto.GetTransactionStatusResponse result = new org.qubic.archiver.proto.GetTransactionStatusResponse(this); - if (transactionStatusBuilder_ == null) { - result.transactionStatus_ = transactionStatus_; - } else { - result.transactionStatus_ = transactionStatusBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.qubic.archiver.proto.GetTransactionStatusResponse) { - return mergeFrom((org.qubic.archiver.proto.GetTransactionStatusResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.qubic.archiver.proto.GetTransactionStatusResponse other) { - if (other == org.qubic.archiver.proto.GetTransactionStatusResponse.getDefaultInstance()) return this; - if (other.hasTransactionStatus()) { - mergeTransactionStatus(other.getTransactionStatus()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.qubic.archiver.proto.GetTransactionStatusResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.qubic.archiver.proto.GetTransactionStatusResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private org.qubic.archiver.proto.TransactionStatus transactionStatus_; - private com.google.protobuf.SingleFieldBuilderV3< - org.qubic.archiver.proto.TransactionStatus, org.qubic.archiver.proto.TransactionStatus.Builder, org.qubic.archiver.proto.TransactionStatusOrBuilder> transactionStatusBuilder_; - /** - * .qubic.archiver.archive.pb.TransactionStatus transaction_status = 1; - * @return Whether the transactionStatus field is set. - */ - public boolean hasTransactionStatus() { - return transactionStatusBuilder_ != null || transactionStatus_ != null; - } - /** - * .qubic.archiver.archive.pb.TransactionStatus transaction_status = 1; - * @return The transactionStatus. - */ - public org.qubic.archiver.proto.TransactionStatus getTransactionStatus() { - if (transactionStatusBuilder_ == null) { - return transactionStatus_ == null ? org.qubic.archiver.proto.TransactionStatus.getDefaultInstance() : transactionStatus_; - } else { - return transactionStatusBuilder_.getMessage(); - } - } - /** - * .qubic.archiver.archive.pb.TransactionStatus transaction_status = 1; - */ - public Builder setTransactionStatus(org.qubic.archiver.proto.TransactionStatus value) { - if (transactionStatusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - transactionStatus_ = value; - onChanged(); - } else { - transactionStatusBuilder_.setMessage(value); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.TransactionStatus transaction_status = 1; - */ - public Builder setTransactionStatus( - org.qubic.archiver.proto.TransactionStatus.Builder builderForValue) { - if (transactionStatusBuilder_ == null) { - transactionStatus_ = builderForValue.build(); - onChanged(); - } else { - transactionStatusBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.TransactionStatus transaction_status = 1; - */ - public Builder mergeTransactionStatus(org.qubic.archiver.proto.TransactionStatus value) { - if (transactionStatusBuilder_ == null) { - if (transactionStatus_ != null) { - transactionStatus_ = - org.qubic.archiver.proto.TransactionStatus.newBuilder(transactionStatus_).mergeFrom(value).buildPartial(); - } else { - transactionStatus_ = value; - } - onChanged(); - } else { - transactionStatusBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.TransactionStatus transaction_status = 1; - */ - public Builder clearTransactionStatus() { - if (transactionStatusBuilder_ == null) { - transactionStatus_ = null; - onChanged(); - } else { - transactionStatus_ = null; - transactionStatusBuilder_ = null; - } - - return this; - } - /** - * .qubic.archiver.archive.pb.TransactionStatus transaction_status = 1; - */ - public org.qubic.archiver.proto.TransactionStatus.Builder getTransactionStatusBuilder() { - - onChanged(); - return getTransactionStatusFieldBuilder().getBuilder(); - } - /** - * .qubic.archiver.archive.pb.TransactionStatus transaction_status = 1; - */ - public org.qubic.archiver.proto.TransactionStatusOrBuilder getTransactionStatusOrBuilder() { - if (transactionStatusBuilder_ != null) { - return transactionStatusBuilder_.getMessageOrBuilder(); - } else { - return transactionStatus_ == null ? - org.qubic.archiver.proto.TransactionStatus.getDefaultInstance() : transactionStatus_; - } - } - /** - * .qubic.archiver.archive.pb.TransactionStatus transaction_status = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.qubic.archiver.proto.TransactionStatus, org.qubic.archiver.proto.TransactionStatus.Builder, org.qubic.archiver.proto.TransactionStatusOrBuilder> - getTransactionStatusFieldBuilder() { - if (transactionStatusBuilder_ == null) { - transactionStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.qubic.archiver.proto.TransactionStatus, org.qubic.archiver.proto.TransactionStatus.Builder, org.qubic.archiver.proto.TransactionStatusOrBuilder>( - getTransactionStatus(), - getParentForChildren(), - isClean()); - transactionStatus_ = null; - } - return transactionStatusBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.GetTransactionStatusResponse) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.GetTransactionStatusResponse) - private static final org.qubic.archiver.proto.GetTransactionStatusResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.qubic.archiver.proto.GetTransactionStatusResponse(); - } - - public static org.qubic.archiver.proto.GetTransactionStatusResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetTransactionStatusResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetTransactionStatusResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTransactionStatusResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/GetTransactionStatusResponseOrBuilder.java b/src/main/java/org/qubic/archiver/proto/GetTransactionStatusResponseOrBuilder.java deleted file mode 100644 index aec866c..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetTransactionStatusResponseOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface GetTransactionStatusResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.GetTransactionStatusResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .qubic.archiver.archive.pb.TransactionStatus transaction_status = 1; - * @return Whether the transactionStatus field is set. - */ - boolean hasTransactionStatus(); - /** - * .qubic.archiver.archive.pb.TransactionStatus transaction_status = 1; - * @return The transactionStatus. - */ - org.qubic.archiver.proto.TransactionStatus getTransactionStatus(); - /** - * .qubic.archiver.archive.pb.TransactionStatus transaction_status = 1; - */ - org.qubic.archiver.proto.TransactionStatusOrBuilder getTransactionStatusOrBuilder(); -} diff --git a/src/main/java/org/qubic/archiver/proto/GetTransferTransactionsPerTickRequest.java b/src/main/java/org/qubic/archiver/proto/GetTransferTransactionsPerTickRequest.java deleted file mode 100644 index 2010610..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetTransferTransactionsPerTickRequest.java +++ /dev/null @@ -1,685 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.GetTransferTransactionsPerTickRequest} - */ -public final class GetTransferTransactionsPerTickRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.GetTransferTransactionsPerTickRequest) - GetTransferTransactionsPerTickRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetTransferTransactionsPerTickRequest.newBuilder() to construct. - private GetTransferTransactionsPerTickRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetTransferTransactionsPerTickRequest() { - identity_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetTransferTransactionsPerTickRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetTransferTransactionsPerTickRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - identity_ = s; - break; - } - case 16: { - - startTick_ = input.readUInt32(); - break; - } - case 24: { - - endTick_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransferTransactionsPerTickRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransferTransactionsPerTickRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.qubic.archiver.proto.GetTransferTransactionsPerTickRequest.class, org.qubic.archiver.proto.GetTransferTransactionsPerTickRequest.Builder.class); - } - - public static final int IDENTITY_FIELD_NUMBER = 1; - private volatile java.lang.Object identity_; - /** - * string identity = 1; - * @return The identity. - */ - @java.lang.Override - public java.lang.String getIdentity() { - java.lang.Object ref = identity_; - 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(); - identity_ = s; - return s; - } - } - /** - * string identity = 1; - * @return The bytes for identity. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdentityBytes() { - java.lang.Object ref = identity_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - identity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int START_TICK_FIELD_NUMBER = 2; - private int startTick_; - /** - * uint32 start_tick = 2; - * @return The startTick. - */ - @java.lang.Override - public int getStartTick() { - return startTick_; - } - - public static final int END_TICK_FIELD_NUMBER = 3; - private int endTick_; - /** - * uint32 end_tick = 3; - * @return The endTick. - */ - @java.lang.Override - public int getEndTick() { - return endTick_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getIdentityBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, identity_); - } - if (startTick_ != 0) { - output.writeUInt32(2, startTick_); - } - if (endTick_ != 0) { - output.writeUInt32(3, endTick_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getIdentityBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, identity_); - } - if (startTick_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, startTick_); - } - if (endTick_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, endTick_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.qubic.archiver.proto.GetTransferTransactionsPerTickRequest)) { - return super.equals(obj); - } - org.qubic.archiver.proto.GetTransferTransactionsPerTickRequest other = (org.qubic.archiver.proto.GetTransferTransactionsPerTickRequest) obj; - - if (!getIdentity() - .equals(other.getIdentity())) return false; - if (getStartTick() - != other.getStartTick()) return false; - if (getEndTick() - != other.getEndTick()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + IDENTITY_FIELD_NUMBER; - hash = (53 * hash) + getIdentity().hashCode(); - hash = (37 * hash) + START_TICK_FIELD_NUMBER; - hash = (53 * hash) + getStartTick(); - hash = (37 * hash) + END_TICK_FIELD_NUMBER; - hash = (53 * hash) + getEndTick(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.qubic.archiver.proto.GetTransferTransactionsPerTickRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetTransferTransactionsPerTickRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetTransferTransactionsPerTickRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetTransferTransactionsPerTickRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetTransferTransactionsPerTickRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetTransferTransactionsPerTickRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetTransferTransactionsPerTickRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetTransferTransactionsPerTickRequest 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 org.qubic.archiver.proto.GetTransferTransactionsPerTickRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetTransferTransactionsPerTickRequest 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 org.qubic.archiver.proto.GetTransferTransactionsPerTickRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetTransferTransactionsPerTickRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.qubic.archiver.proto.GetTransferTransactionsPerTickRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.GetTransferTransactionsPerTickRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.GetTransferTransactionsPerTickRequest) - org.qubic.archiver.proto.GetTransferTransactionsPerTickRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransferTransactionsPerTickRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransferTransactionsPerTickRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.qubic.archiver.proto.GetTransferTransactionsPerTickRequest.class, org.qubic.archiver.proto.GetTransferTransactionsPerTickRequest.Builder.class); - } - - // Construct using org.qubic.archiver.proto.GetTransferTransactionsPerTickRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - identity_ = ""; - - startTick_ = 0; - - endTick_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransferTransactionsPerTickRequest_descriptor; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTransferTransactionsPerTickRequest getDefaultInstanceForType() { - return org.qubic.archiver.proto.GetTransferTransactionsPerTickRequest.getDefaultInstance(); - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTransferTransactionsPerTickRequest build() { - org.qubic.archiver.proto.GetTransferTransactionsPerTickRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTransferTransactionsPerTickRequest buildPartial() { - org.qubic.archiver.proto.GetTransferTransactionsPerTickRequest result = new org.qubic.archiver.proto.GetTransferTransactionsPerTickRequest(this); - result.identity_ = identity_; - result.startTick_ = startTick_; - result.endTick_ = endTick_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.qubic.archiver.proto.GetTransferTransactionsPerTickRequest) { - return mergeFrom((org.qubic.archiver.proto.GetTransferTransactionsPerTickRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.qubic.archiver.proto.GetTransferTransactionsPerTickRequest other) { - if (other == org.qubic.archiver.proto.GetTransferTransactionsPerTickRequest.getDefaultInstance()) return this; - if (!other.getIdentity().isEmpty()) { - identity_ = other.identity_; - onChanged(); - } - if (other.getStartTick() != 0) { - setStartTick(other.getStartTick()); - } - if (other.getEndTick() != 0) { - setEndTick(other.getEndTick()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.qubic.archiver.proto.GetTransferTransactionsPerTickRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.qubic.archiver.proto.GetTransferTransactionsPerTickRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object identity_ = ""; - /** - * string identity = 1; - * @return The identity. - */ - public java.lang.String getIdentity() { - java.lang.Object ref = identity_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - identity_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string identity = 1; - * @return The bytes for identity. - */ - public com.google.protobuf.ByteString - getIdentityBytes() { - java.lang.Object ref = identity_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - identity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string identity = 1; - * @param value The identity to set. - * @return This builder for chaining. - */ - public Builder setIdentity( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - identity_ = value; - onChanged(); - return this; - } - /** - * string identity = 1; - * @return This builder for chaining. - */ - public Builder clearIdentity() { - - identity_ = getDefaultInstance().getIdentity(); - onChanged(); - return this; - } - /** - * string identity = 1; - * @param value The bytes for identity to set. - * @return This builder for chaining. - */ - public Builder setIdentityBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - identity_ = value; - onChanged(); - return this; - } - - private int startTick_ ; - /** - * uint32 start_tick = 2; - * @return The startTick. - */ - @java.lang.Override - public int getStartTick() { - return startTick_; - } - /** - * uint32 start_tick = 2; - * @param value The startTick to set. - * @return This builder for chaining. - */ - public Builder setStartTick(int value) { - - startTick_ = value; - onChanged(); - return this; - } - /** - * uint32 start_tick = 2; - * @return This builder for chaining. - */ - public Builder clearStartTick() { - - startTick_ = 0; - onChanged(); - return this; - } - - private int endTick_ ; - /** - * uint32 end_tick = 3; - * @return The endTick. - */ - @java.lang.Override - public int getEndTick() { - return endTick_; - } - /** - * uint32 end_tick = 3; - * @param value The endTick to set. - * @return This builder for chaining. - */ - public Builder setEndTick(int value) { - - endTick_ = value; - onChanged(); - return this; - } - /** - * uint32 end_tick = 3; - * @return This builder for chaining. - */ - public Builder clearEndTick() { - - endTick_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.GetTransferTransactionsPerTickRequest) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.GetTransferTransactionsPerTickRequest) - private static final org.qubic.archiver.proto.GetTransferTransactionsPerTickRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.qubic.archiver.proto.GetTransferTransactionsPerTickRequest(); - } - - public static org.qubic.archiver.proto.GetTransferTransactionsPerTickRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetTransferTransactionsPerTickRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetTransferTransactionsPerTickRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTransferTransactionsPerTickRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/GetTransferTransactionsPerTickRequestOrBuilder.java b/src/main/java/org/qubic/archiver/proto/GetTransferTransactionsPerTickRequestOrBuilder.java deleted file mode 100644 index 015be7b..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetTransferTransactionsPerTickRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface GetTransferTransactionsPerTickRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.GetTransferTransactionsPerTickRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * string identity = 1; - * @return The identity. - */ - java.lang.String getIdentity(); - /** - * string identity = 1; - * @return The bytes for identity. - */ - com.google.protobuf.ByteString - getIdentityBytes(); - - /** - * uint32 start_tick = 2; - * @return The startTick. - */ - int getStartTick(); - - /** - * uint32 end_tick = 3; - * @return The endTick. - */ - int getEndTick(); -} diff --git a/src/main/java/org/qubic/archiver/proto/GetTransferTransactionsPerTickRequestV2.java b/src/main/java/org/qubic/archiver/proto/GetTransferTransactionsPerTickRequestV2.java deleted file mode 100644 index ad25584..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetTransferTransactionsPerTickRequestV2.java +++ /dev/null @@ -1,815 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.GetTransferTransactionsPerTickRequestV2} - */ -public final class GetTransferTransactionsPerTickRequestV2 extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.GetTransferTransactionsPerTickRequestV2) - GetTransferTransactionsPerTickRequestV2OrBuilder { -private static final long serialVersionUID = 0L; - // Use GetTransferTransactionsPerTickRequestV2.newBuilder() to construct. - private GetTransferTransactionsPerTickRequestV2(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetTransferTransactionsPerTickRequestV2() { - identity_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetTransferTransactionsPerTickRequestV2(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetTransferTransactionsPerTickRequestV2( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - identity_ = s; - break; - } - case 16: { - - startTick_ = input.readUInt32(); - break; - } - case 24: { - - endTick_ = input.readUInt32(); - break; - } - case 32: { - - scOnly_ = input.readBool(); - break; - } - case 40: { - - desc_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransferTransactionsPerTickRequestV2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransferTransactionsPerTickRequestV2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.qubic.archiver.proto.GetTransferTransactionsPerTickRequestV2.class, org.qubic.archiver.proto.GetTransferTransactionsPerTickRequestV2.Builder.class); - } - - public static final int IDENTITY_FIELD_NUMBER = 1; - private volatile java.lang.Object identity_; - /** - * string identity = 1; - * @return The identity. - */ - @java.lang.Override - public java.lang.String getIdentity() { - java.lang.Object ref = identity_; - 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(); - identity_ = s; - return s; - } - } - /** - * string identity = 1; - * @return The bytes for identity. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdentityBytes() { - java.lang.Object ref = identity_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - identity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int START_TICK_FIELD_NUMBER = 2; - private int startTick_; - /** - * uint32 start_tick = 2; - * @return The startTick. - */ - @java.lang.Override - public int getStartTick() { - return startTick_; - } - - public static final int END_TICK_FIELD_NUMBER = 3; - private int endTick_; - /** - * uint32 end_tick = 3; - * @return The endTick. - */ - @java.lang.Override - public int getEndTick() { - return endTick_; - } - - public static final int SC_ONLY_FIELD_NUMBER = 4; - private boolean scOnly_; - /** - * bool sc_only = 4; - * @return The scOnly. - */ - @java.lang.Override - public boolean getScOnly() { - return scOnly_; - } - - public static final int DESC_FIELD_NUMBER = 5; - private boolean desc_; - /** - * bool desc = 5; - * @return The desc. - */ - @java.lang.Override - public boolean getDesc() { - return desc_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getIdentityBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, identity_); - } - if (startTick_ != 0) { - output.writeUInt32(2, startTick_); - } - if (endTick_ != 0) { - output.writeUInt32(3, endTick_); - } - if (scOnly_ != false) { - output.writeBool(4, scOnly_); - } - if (desc_ != false) { - output.writeBool(5, desc_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getIdentityBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, identity_); - } - if (startTick_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, startTick_); - } - if (endTick_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, endTick_); - } - if (scOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, scOnly_); - } - if (desc_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, desc_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.qubic.archiver.proto.GetTransferTransactionsPerTickRequestV2)) { - return super.equals(obj); - } - org.qubic.archiver.proto.GetTransferTransactionsPerTickRequestV2 other = (org.qubic.archiver.proto.GetTransferTransactionsPerTickRequestV2) obj; - - if (!getIdentity() - .equals(other.getIdentity())) return false; - if (getStartTick() - != other.getStartTick()) return false; - if (getEndTick() - != other.getEndTick()) return false; - if (getScOnly() - != other.getScOnly()) return false; - if (getDesc() - != other.getDesc()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + IDENTITY_FIELD_NUMBER; - hash = (53 * hash) + getIdentity().hashCode(); - hash = (37 * hash) + START_TICK_FIELD_NUMBER; - hash = (53 * hash) + getStartTick(); - hash = (37 * hash) + END_TICK_FIELD_NUMBER; - hash = (53 * hash) + getEndTick(); - hash = (37 * hash) + SC_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getScOnly()); - hash = (37 * hash) + DESC_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDesc()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.qubic.archiver.proto.GetTransferTransactionsPerTickRequestV2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetTransferTransactionsPerTickRequestV2 parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetTransferTransactionsPerTickRequestV2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetTransferTransactionsPerTickRequestV2 parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetTransferTransactionsPerTickRequestV2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetTransferTransactionsPerTickRequestV2 parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetTransferTransactionsPerTickRequestV2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetTransferTransactionsPerTickRequestV2 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 org.qubic.archiver.proto.GetTransferTransactionsPerTickRequestV2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetTransferTransactionsPerTickRequestV2 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 org.qubic.archiver.proto.GetTransferTransactionsPerTickRequestV2 parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetTransferTransactionsPerTickRequestV2 parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.qubic.archiver.proto.GetTransferTransactionsPerTickRequestV2 prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.GetTransferTransactionsPerTickRequestV2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.GetTransferTransactionsPerTickRequestV2) - org.qubic.archiver.proto.GetTransferTransactionsPerTickRequestV2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransferTransactionsPerTickRequestV2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransferTransactionsPerTickRequestV2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.qubic.archiver.proto.GetTransferTransactionsPerTickRequestV2.class, org.qubic.archiver.proto.GetTransferTransactionsPerTickRequestV2.Builder.class); - } - - // Construct using org.qubic.archiver.proto.GetTransferTransactionsPerTickRequestV2.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - identity_ = ""; - - startTick_ = 0; - - endTick_ = 0; - - scOnly_ = false; - - desc_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransferTransactionsPerTickRequestV2_descriptor; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTransferTransactionsPerTickRequestV2 getDefaultInstanceForType() { - return org.qubic.archiver.proto.GetTransferTransactionsPerTickRequestV2.getDefaultInstance(); - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTransferTransactionsPerTickRequestV2 build() { - org.qubic.archiver.proto.GetTransferTransactionsPerTickRequestV2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTransferTransactionsPerTickRequestV2 buildPartial() { - org.qubic.archiver.proto.GetTransferTransactionsPerTickRequestV2 result = new org.qubic.archiver.proto.GetTransferTransactionsPerTickRequestV2(this); - result.identity_ = identity_; - result.startTick_ = startTick_; - result.endTick_ = endTick_; - result.scOnly_ = scOnly_; - result.desc_ = desc_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.qubic.archiver.proto.GetTransferTransactionsPerTickRequestV2) { - return mergeFrom((org.qubic.archiver.proto.GetTransferTransactionsPerTickRequestV2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.qubic.archiver.proto.GetTransferTransactionsPerTickRequestV2 other) { - if (other == org.qubic.archiver.proto.GetTransferTransactionsPerTickRequestV2.getDefaultInstance()) return this; - if (!other.getIdentity().isEmpty()) { - identity_ = other.identity_; - onChanged(); - } - if (other.getStartTick() != 0) { - setStartTick(other.getStartTick()); - } - if (other.getEndTick() != 0) { - setEndTick(other.getEndTick()); - } - if (other.getScOnly() != false) { - setScOnly(other.getScOnly()); - } - if (other.getDesc() != false) { - setDesc(other.getDesc()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.qubic.archiver.proto.GetTransferTransactionsPerTickRequestV2 parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.qubic.archiver.proto.GetTransferTransactionsPerTickRequestV2) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object identity_ = ""; - /** - * string identity = 1; - * @return The identity. - */ - public java.lang.String getIdentity() { - java.lang.Object ref = identity_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - identity_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string identity = 1; - * @return The bytes for identity. - */ - public com.google.protobuf.ByteString - getIdentityBytes() { - java.lang.Object ref = identity_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - identity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string identity = 1; - * @param value The identity to set. - * @return This builder for chaining. - */ - public Builder setIdentity( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - identity_ = value; - onChanged(); - return this; - } - /** - * string identity = 1; - * @return This builder for chaining. - */ - public Builder clearIdentity() { - - identity_ = getDefaultInstance().getIdentity(); - onChanged(); - return this; - } - /** - * string identity = 1; - * @param value The bytes for identity to set. - * @return This builder for chaining. - */ - public Builder setIdentityBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - identity_ = value; - onChanged(); - return this; - } - - private int startTick_ ; - /** - * uint32 start_tick = 2; - * @return The startTick. - */ - @java.lang.Override - public int getStartTick() { - return startTick_; - } - /** - * uint32 start_tick = 2; - * @param value The startTick to set. - * @return This builder for chaining. - */ - public Builder setStartTick(int value) { - - startTick_ = value; - onChanged(); - return this; - } - /** - * uint32 start_tick = 2; - * @return This builder for chaining. - */ - public Builder clearStartTick() { - - startTick_ = 0; - onChanged(); - return this; - } - - private int endTick_ ; - /** - * uint32 end_tick = 3; - * @return The endTick. - */ - @java.lang.Override - public int getEndTick() { - return endTick_; - } - /** - * uint32 end_tick = 3; - * @param value The endTick to set. - * @return This builder for chaining. - */ - public Builder setEndTick(int value) { - - endTick_ = value; - onChanged(); - return this; - } - /** - * uint32 end_tick = 3; - * @return This builder for chaining. - */ - public Builder clearEndTick() { - - endTick_ = 0; - onChanged(); - return this; - } - - private boolean scOnly_ ; - /** - * bool sc_only = 4; - * @return The scOnly. - */ - @java.lang.Override - public boolean getScOnly() { - return scOnly_; - } - /** - * bool sc_only = 4; - * @param value The scOnly to set. - * @return This builder for chaining. - */ - public Builder setScOnly(boolean value) { - - scOnly_ = value; - onChanged(); - return this; - } - /** - * bool sc_only = 4; - * @return This builder for chaining. - */ - public Builder clearScOnly() { - - scOnly_ = false; - onChanged(); - return this; - } - - private boolean desc_ ; - /** - * bool desc = 5; - * @return The desc. - */ - @java.lang.Override - public boolean getDesc() { - return desc_; - } - /** - * bool desc = 5; - * @param value The desc to set. - * @return This builder for chaining. - */ - public Builder setDesc(boolean value) { - - desc_ = value; - onChanged(); - return this; - } - /** - * bool desc = 5; - * @return This builder for chaining. - */ - public Builder clearDesc() { - - desc_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.GetTransferTransactionsPerTickRequestV2) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.GetTransferTransactionsPerTickRequestV2) - private static final org.qubic.archiver.proto.GetTransferTransactionsPerTickRequestV2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.qubic.archiver.proto.GetTransferTransactionsPerTickRequestV2(); - } - - public static org.qubic.archiver.proto.GetTransferTransactionsPerTickRequestV2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetTransferTransactionsPerTickRequestV2 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetTransferTransactionsPerTickRequestV2(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTransferTransactionsPerTickRequestV2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/GetTransferTransactionsPerTickRequestV2OrBuilder.java b/src/main/java/org/qubic/archiver/proto/GetTransferTransactionsPerTickRequestV2OrBuilder.java deleted file mode 100644 index e8dbf98..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetTransferTransactionsPerTickRequestV2OrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface GetTransferTransactionsPerTickRequestV2OrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.GetTransferTransactionsPerTickRequestV2) - com.google.protobuf.MessageOrBuilder { - - /** - * string identity = 1; - * @return The identity. - */ - java.lang.String getIdentity(); - /** - * string identity = 1; - * @return The bytes for identity. - */ - com.google.protobuf.ByteString - getIdentityBytes(); - - /** - * uint32 start_tick = 2; - * @return The startTick. - */ - int getStartTick(); - - /** - * uint32 end_tick = 3; - * @return The endTick. - */ - int getEndTick(); - - /** - * bool sc_only = 4; - * @return The scOnly. - */ - boolean getScOnly(); - - /** - * bool desc = 5; - * @return The desc. - */ - boolean getDesc(); -} diff --git a/src/main/java/org/qubic/archiver/proto/GetTransferTransactionsPerTickResponse.java b/src/main/java/org/qubic/archiver/proto/GetTransferTransactionsPerTickResponse.java deleted file mode 100644 index 6fb92c0..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetTransferTransactionsPerTickResponse.java +++ /dev/null @@ -1,770 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.GetTransferTransactionsPerTickResponse} - */ -public final class GetTransferTransactionsPerTickResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.GetTransferTransactionsPerTickResponse) - GetTransferTransactionsPerTickResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetTransferTransactionsPerTickResponse.newBuilder() to construct. - private GetTransferTransactionsPerTickResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetTransferTransactionsPerTickResponse() { - transferTransactionsPerTick_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetTransferTransactionsPerTickResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetTransferTransactionsPerTickResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - transferTransactionsPerTick_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - transferTransactionsPerTick_.add( - input.readMessage(org.qubic.archiver.proto.TransferTransactionsPerTick.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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) != 0)) { - transferTransactionsPerTick_ = java.util.Collections.unmodifiableList(transferTransactionsPerTick_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransferTransactionsPerTickResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransferTransactionsPerTickResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.qubic.archiver.proto.GetTransferTransactionsPerTickResponse.class, org.qubic.archiver.proto.GetTransferTransactionsPerTickResponse.Builder.class); - } - - public static final int TRANSFER_TRANSACTIONS_PER_TICK_FIELD_NUMBER = 1; - private java.util.List transferTransactionsPerTick_; - /** - * repeated .qubic.archiver.archive.pb.TransferTransactionsPerTick transfer_transactions_per_tick = 1; - */ - @java.lang.Override - public java.util.List getTransferTransactionsPerTickList() { - return transferTransactionsPerTick_; - } - /** - * repeated .qubic.archiver.archive.pb.TransferTransactionsPerTick transfer_transactions_per_tick = 1; - */ - @java.lang.Override - public java.util.List - getTransferTransactionsPerTickOrBuilderList() { - return transferTransactionsPerTick_; - } - /** - * repeated .qubic.archiver.archive.pb.TransferTransactionsPerTick transfer_transactions_per_tick = 1; - */ - @java.lang.Override - public int getTransferTransactionsPerTickCount() { - return transferTransactionsPerTick_.size(); - } - /** - * repeated .qubic.archiver.archive.pb.TransferTransactionsPerTick transfer_transactions_per_tick = 1; - */ - @java.lang.Override - public org.qubic.archiver.proto.TransferTransactionsPerTick getTransferTransactionsPerTick(int index) { - return transferTransactionsPerTick_.get(index); - } - /** - * repeated .qubic.archiver.archive.pb.TransferTransactionsPerTick transfer_transactions_per_tick = 1; - */ - @java.lang.Override - public org.qubic.archiver.proto.TransferTransactionsPerTickOrBuilder getTransferTransactionsPerTickOrBuilder( - int index) { - return transferTransactionsPerTick_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < transferTransactionsPerTick_.size(); i++) { - output.writeMessage(1, transferTransactionsPerTick_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < transferTransactionsPerTick_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, transferTransactionsPerTick_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.qubic.archiver.proto.GetTransferTransactionsPerTickResponse)) { - return super.equals(obj); - } - org.qubic.archiver.proto.GetTransferTransactionsPerTickResponse other = (org.qubic.archiver.proto.GetTransferTransactionsPerTickResponse) obj; - - if (!getTransferTransactionsPerTickList() - .equals(other.getTransferTransactionsPerTickList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTransferTransactionsPerTickCount() > 0) { - hash = (37 * hash) + TRANSFER_TRANSACTIONS_PER_TICK_FIELD_NUMBER; - hash = (53 * hash) + getTransferTransactionsPerTickList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.qubic.archiver.proto.GetTransferTransactionsPerTickResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetTransferTransactionsPerTickResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetTransferTransactionsPerTickResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetTransferTransactionsPerTickResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetTransferTransactionsPerTickResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.GetTransferTransactionsPerTickResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.GetTransferTransactionsPerTickResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetTransferTransactionsPerTickResponse 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 org.qubic.archiver.proto.GetTransferTransactionsPerTickResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetTransferTransactionsPerTickResponse 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 org.qubic.archiver.proto.GetTransferTransactionsPerTickResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.GetTransferTransactionsPerTickResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.qubic.archiver.proto.GetTransferTransactionsPerTickResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.GetTransferTransactionsPerTickResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.GetTransferTransactionsPerTickResponse) - org.qubic.archiver.proto.GetTransferTransactionsPerTickResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransferTransactionsPerTickResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransferTransactionsPerTickResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.qubic.archiver.proto.GetTransferTransactionsPerTickResponse.class, org.qubic.archiver.proto.GetTransferTransactionsPerTickResponse.Builder.class); - } - - // Construct using org.qubic.archiver.proto.GetTransferTransactionsPerTickResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTransferTransactionsPerTickFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (transferTransactionsPerTickBuilder_ == null) { - transferTransactionsPerTick_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - transferTransactionsPerTickBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_GetTransferTransactionsPerTickResponse_descriptor; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTransferTransactionsPerTickResponse getDefaultInstanceForType() { - return org.qubic.archiver.proto.GetTransferTransactionsPerTickResponse.getDefaultInstance(); - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTransferTransactionsPerTickResponse build() { - org.qubic.archiver.proto.GetTransferTransactionsPerTickResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTransferTransactionsPerTickResponse buildPartial() { - org.qubic.archiver.proto.GetTransferTransactionsPerTickResponse result = new org.qubic.archiver.proto.GetTransferTransactionsPerTickResponse(this); - int from_bitField0_ = bitField0_; - if (transferTransactionsPerTickBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - transferTransactionsPerTick_ = java.util.Collections.unmodifiableList(transferTransactionsPerTick_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.transferTransactionsPerTick_ = transferTransactionsPerTick_; - } else { - result.transferTransactionsPerTick_ = transferTransactionsPerTickBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.qubic.archiver.proto.GetTransferTransactionsPerTickResponse) { - return mergeFrom((org.qubic.archiver.proto.GetTransferTransactionsPerTickResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.qubic.archiver.proto.GetTransferTransactionsPerTickResponse other) { - if (other == org.qubic.archiver.proto.GetTransferTransactionsPerTickResponse.getDefaultInstance()) return this; - if (transferTransactionsPerTickBuilder_ == null) { - if (!other.transferTransactionsPerTick_.isEmpty()) { - if (transferTransactionsPerTick_.isEmpty()) { - transferTransactionsPerTick_ = other.transferTransactionsPerTick_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTransferTransactionsPerTickIsMutable(); - transferTransactionsPerTick_.addAll(other.transferTransactionsPerTick_); - } - onChanged(); - } - } else { - if (!other.transferTransactionsPerTick_.isEmpty()) { - if (transferTransactionsPerTickBuilder_.isEmpty()) { - transferTransactionsPerTickBuilder_.dispose(); - transferTransactionsPerTickBuilder_ = null; - transferTransactionsPerTick_ = other.transferTransactionsPerTick_; - bitField0_ = (bitField0_ & ~0x00000001); - transferTransactionsPerTickBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTransferTransactionsPerTickFieldBuilder() : null; - } else { - transferTransactionsPerTickBuilder_.addAllMessages(other.transferTransactionsPerTick_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.qubic.archiver.proto.GetTransferTransactionsPerTickResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.qubic.archiver.proto.GetTransferTransactionsPerTickResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List transferTransactionsPerTick_ = - java.util.Collections.emptyList(); - private void ensureTransferTransactionsPerTickIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - transferTransactionsPerTick_ = new java.util.ArrayList(transferTransactionsPerTick_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.qubic.archiver.proto.TransferTransactionsPerTick, org.qubic.archiver.proto.TransferTransactionsPerTick.Builder, org.qubic.archiver.proto.TransferTransactionsPerTickOrBuilder> transferTransactionsPerTickBuilder_; - - /** - * repeated .qubic.archiver.archive.pb.TransferTransactionsPerTick transfer_transactions_per_tick = 1; - */ - public java.util.List getTransferTransactionsPerTickList() { - if (transferTransactionsPerTickBuilder_ == null) { - return java.util.Collections.unmodifiableList(transferTransactionsPerTick_); - } else { - return transferTransactionsPerTickBuilder_.getMessageList(); - } - } - /** - * repeated .qubic.archiver.archive.pb.TransferTransactionsPerTick transfer_transactions_per_tick = 1; - */ - public int getTransferTransactionsPerTickCount() { - if (transferTransactionsPerTickBuilder_ == null) { - return transferTransactionsPerTick_.size(); - } else { - return transferTransactionsPerTickBuilder_.getCount(); - } - } - /** - * repeated .qubic.archiver.archive.pb.TransferTransactionsPerTick transfer_transactions_per_tick = 1; - */ - public org.qubic.archiver.proto.TransferTransactionsPerTick getTransferTransactionsPerTick(int index) { - if (transferTransactionsPerTickBuilder_ == null) { - return transferTransactionsPerTick_.get(index); - } else { - return transferTransactionsPerTickBuilder_.getMessage(index); - } - } - /** - * repeated .qubic.archiver.archive.pb.TransferTransactionsPerTick transfer_transactions_per_tick = 1; - */ - public Builder setTransferTransactionsPerTick( - int index, org.qubic.archiver.proto.TransferTransactionsPerTick value) { - if (transferTransactionsPerTickBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransferTransactionsPerTickIsMutable(); - transferTransactionsPerTick_.set(index, value); - onChanged(); - } else { - transferTransactionsPerTickBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.TransferTransactionsPerTick transfer_transactions_per_tick = 1; - */ - public Builder setTransferTransactionsPerTick( - int index, org.qubic.archiver.proto.TransferTransactionsPerTick.Builder builderForValue) { - if (transferTransactionsPerTickBuilder_ == null) { - ensureTransferTransactionsPerTickIsMutable(); - transferTransactionsPerTick_.set(index, builderForValue.build()); - onChanged(); - } else { - transferTransactionsPerTickBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.TransferTransactionsPerTick transfer_transactions_per_tick = 1; - */ - public Builder addTransferTransactionsPerTick(org.qubic.archiver.proto.TransferTransactionsPerTick value) { - if (transferTransactionsPerTickBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransferTransactionsPerTickIsMutable(); - transferTransactionsPerTick_.add(value); - onChanged(); - } else { - transferTransactionsPerTickBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.TransferTransactionsPerTick transfer_transactions_per_tick = 1; - */ - public Builder addTransferTransactionsPerTick( - int index, org.qubic.archiver.proto.TransferTransactionsPerTick value) { - if (transferTransactionsPerTickBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransferTransactionsPerTickIsMutable(); - transferTransactionsPerTick_.add(index, value); - onChanged(); - } else { - transferTransactionsPerTickBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.TransferTransactionsPerTick transfer_transactions_per_tick = 1; - */ - public Builder addTransferTransactionsPerTick( - org.qubic.archiver.proto.TransferTransactionsPerTick.Builder builderForValue) { - if (transferTransactionsPerTickBuilder_ == null) { - ensureTransferTransactionsPerTickIsMutable(); - transferTransactionsPerTick_.add(builderForValue.build()); - onChanged(); - } else { - transferTransactionsPerTickBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.TransferTransactionsPerTick transfer_transactions_per_tick = 1; - */ - public Builder addTransferTransactionsPerTick( - int index, org.qubic.archiver.proto.TransferTransactionsPerTick.Builder builderForValue) { - if (transferTransactionsPerTickBuilder_ == null) { - ensureTransferTransactionsPerTickIsMutable(); - transferTransactionsPerTick_.add(index, builderForValue.build()); - onChanged(); - } else { - transferTransactionsPerTickBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.TransferTransactionsPerTick transfer_transactions_per_tick = 1; - */ - public Builder addAllTransferTransactionsPerTick( - java.lang.Iterable values) { - if (transferTransactionsPerTickBuilder_ == null) { - ensureTransferTransactionsPerTickIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, transferTransactionsPerTick_); - onChanged(); - } else { - transferTransactionsPerTickBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.TransferTransactionsPerTick transfer_transactions_per_tick = 1; - */ - public Builder clearTransferTransactionsPerTick() { - if (transferTransactionsPerTickBuilder_ == null) { - transferTransactionsPerTick_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - transferTransactionsPerTickBuilder_.clear(); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.TransferTransactionsPerTick transfer_transactions_per_tick = 1; - */ - public Builder removeTransferTransactionsPerTick(int index) { - if (transferTransactionsPerTickBuilder_ == null) { - ensureTransferTransactionsPerTickIsMutable(); - transferTransactionsPerTick_.remove(index); - onChanged(); - } else { - transferTransactionsPerTickBuilder_.remove(index); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.TransferTransactionsPerTick transfer_transactions_per_tick = 1; - */ - public org.qubic.archiver.proto.TransferTransactionsPerTick.Builder getTransferTransactionsPerTickBuilder( - int index) { - return getTransferTransactionsPerTickFieldBuilder().getBuilder(index); - } - /** - * repeated .qubic.archiver.archive.pb.TransferTransactionsPerTick transfer_transactions_per_tick = 1; - */ - public org.qubic.archiver.proto.TransferTransactionsPerTickOrBuilder getTransferTransactionsPerTickOrBuilder( - int index) { - if (transferTransactionsPerTickBuilder_ == null) { - return transferTransactionsPerTick_.get(index); } else { - return transferTransactionsPerTickBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .qubic.archiver.archive.pb.TransferTransactionsPerTick transfer_transactions_per_tick = 1; - */ - public java.util.List - getTransferTransactionsPerTickOrBuilderList() { - if (transferTransactionsPerTickBuilder_ != null) { - return transferTransactionsPerTickBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(transferTransactionsPerTick_); - } - } - /** - * repeated .qubic.archiver.archive.pb.TransferTransactionsPerTick transfer_transactions_per_tick = 1; - */ - public org.qubic.archiver.proto.TransferTransactionsPerTick.Builder addTransferTransactionsPerTickBuilder() { - return getTransferTransactionsPerTickFieldBuilder().addBuilder( - org.qubic.archiver.proto.TransferTransactionsPerTick.getDefaultInstance()); - } - /** - * repeated .qubic.archiver.archive.pb.TransferTransactionsPerTick transfer_transactions_per_tick = 1; - */ - public org.qubic.archiver.proto.TransferTransactionsPerTick.Builder addTransferTransactionsPerTickBuilder( - int index) { - return getTransferTransactionsPerTickFieldBuilder().addBuilder( - index, org.qubic.archiver.proto.TransferTransactionsPerTick.getDefaultInstance()); - } - /** - * repeated .qubic.archiver.archive.pb.TransferTransactionsPerTick transfer_transactions_per_tick = 1; - */ - public java.util.List - getTransferTransactionsPerTickBuilderList() { - return getTransferTransactionsPerTickFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.qubic.archiver.proto.TransferTransactionsPerTick, org.qubic.archiver.proto.TransferTransactionsPerTick.Builder, org.qubic.archiver.proto.TransferTransactionsPerTickOrBuilder> - getTransferTransactionsPerTickFieldBuilder() { - if (transferTransactionsPerTickBuilder_ == null) { - transferTransactionsPerTickBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.qubic.archiver.proto.TransferTransactionsPerTick, org.qubic.archiver.proto.TransferTransactionsPerTick.Builder, org.qubic.archiver.proto.TransferTransactionsPerTickOrBuilder>( - transferTransactionsPerTick_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - transferTransactionsPerTick_ = null; - } - return transferTransactionsPerTickBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.GetTransferTransactionsPerTickResponse) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.GetTransferTransactionsPerTickResponse) - private static final org.qubic.archiver.proto.GetTransferTransactionsPerTickResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.qubic.archiver.proto.GetTransferTransactionsPerTickResponse(); - } - - public static org.qubic.archiver.proto.GetTransferTransactionsPerTickResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetTransferTransactionsPerTickResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetTransferTransactionsPerTickResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.qubic.archiver.proto.GetTransferTransactionsPerTickResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/GetTransferTransactionsPerTickResponseOrBuilder.java b/src/main/java/org/qubic/archiver/proto/GetTransferTransactionsPerTickResponseOrBuilder.java deleted file mode 100644 index e598fba..0000000 --- a/src/main/java/org/qubic/archiver/proto/GetTransferTransactionsPerTickResponseOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface GetTransferTransactionsPerTickResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.GetTransferTransactionsPerTickResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .qubic.archiver.archive.pb.TransferTransactionsPerTick transfer_transactions_per_tick = 1; - */ - java.util.List - getTransferTransactionsPerTickList(); - /** - * repeated .qubic.archiver.archive.pb.TransferTransactionsPerTick transfer_transactions_per_tick = 1; - */ - org.qubic.archiver.proto.TransferTransactionsPerTick getTransferTransactionsPerTick(int index); - /** - * repeated .qubic.archiver.archive.pb.TransferTransactionsPerTick transfer_transactions_per_tick = 1; - */ - int getTransferTransactionsPerTickCount(); - /** - * repeated .qubic.archiver.archive.pb.TransferTransactionsPerTick transfer_transactions_per_tick = 1; - */ - java.util.List - getTransferTransactionsPerTickOrBuilderList(); - /** - * repeated .qubic.archiver.archive.pb.TransferTransactionsPerTick transfer_transactions_per_tick = 1; - */ - org.qubic.archiver.proto.TransferTransactionsPerTickOrBuilder getTransferTransactionsPerTickOrBuilder( - int index); -} diff --git a/src/main/java/org/qubic/archiver/proto/LastProcessedTick.java b/src/main/java/org/qubic/archiver/proto/LastProcessedTick.java deleted file mode 100644 index 77f86a3..0000000 --- a/src/main/java/org/qubic/archiver/proto/LastProcessedTick.java +++ /dev/null @@ -1,483 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.LastProcessedTick} - */ -public final class LastProcessedTick extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.LastProcessedTick) - LastProcessedTickOrBuilder { -private static final long serialVersionUID = 0L; - // Use LastProcessedTick.newBuilder() to construct. - private LastProcessedTick(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LastProcessedTick() { - } - - @Override - @SuppressWarnings({"unused"}) - protected Object newInstance( - UnusedPrivateParameter unused) { - return new LastProcessedTick(); - } - - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LastProcessedTick( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - lastProcessedTick_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_LastProcessedTick_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_LastProcessedTick_fieldAccessorTable - .ensureFieldAccessorsInitialized( - LastProcessedTick.class, Builder.class); - } - - public static final int LAST_PROCESSED_TICK_FIELD_NUMBER = 1; - private int lastProcessedTick_; - /** - * uint32 last_processed_tick = 1; - * @return The lastProcessedTick. - */ - @Override - public int getLastProcessedTick() { - return lastProcessedTick_; - } - - private byte memoizedIsInitialized = -1; - @Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (lastProcessedTick_ != 0) { - output.writeUInt32(1, lastProcessedTick_); - } - unknownFields.writeTo(output); - } - - @Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (lastProcessedTick_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, lastProcessedTick_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @Override - public boolean equals(final Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof LastProcessedTick)) { - return super.equals(obj); - } - LastProcessedTick other = (LastProcessedTick) obj; - - if (getLastProcessedTick() - != other.getLastProcessedTick()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + LAST_PROCESSED_TICK_FIELD_NUMBER; - hash = (53 * hash) + getLastProcessedTick(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static LastProcessedTick parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static LastProcessedTick parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static LastProcessedTick parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static LastProcessedTick parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static LastProcessedTick parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static LastProcessedTick parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static LastProcessedTick parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static LastProcessedTick 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 LastProcessedTick parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static LastProcessedTick 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 LastProcessedTick parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static LastProcessedTick parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(LastProcessedTick prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.LastProcessedTick} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.LastProcessedTick) - LastProcessedTickOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_LastProcessedTick_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_LastProcessedTick_fieldAccessorTable - .ensureFieldAccessorsInitialized( - LastProcessedTick.class, Builder.class); - } - - // Construct using org.qubic.archiver.proto.LastProcessedTick.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @Override - public Builder clear() { - super.clear(); - lastProcessedTick_ = 0; - - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_LastProcessedTick_descriptor; - } - - @Override - public LastProcessedTick getDefaultInstanceForType() { - return LastProcessedTick.getDefaultInstance(); - } - - @Override - public LastProcessedTick build() { - LastProcessedTick result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public LastProcessedTick buildPartial() { - LastProcessedTick result = new LastProcessedTick(this); - result.lastProcessedTick_ = lastProcessedTick_; - onBuilt(); - return result; - } - - @Override - public Builder clone() { - return super.clone(); - } - @Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.setField(field, value); - } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return super.setRepeatedField(field, index, value); - } - @Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.addRepeatedField(field, value); - } - @Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof LastProcessedTick) { - return mergeFrom((LastProcessedTick)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(LastProcessedTick other) { - if (other == LastProcessedTick.getDefaultInstance()) return this; - if (other.getLastProcessedTick() != 0) { - setLastProcessedTick(other.getLastProcessedTick()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - LastProcessedTick parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (LastProcessedTick) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int lastProcessedTick_ ; - /** - * uint32 last_processed_tick = 1; - * @return The lastProcessedTick. - */ - @Override - public int getLastProcessedTick() { - return lastProcessedTick_; - } - /** - * uint32 last_processed_tick = 1; - * @param value The lastProcessedTick to set. - * @return This builder for chaining. - */ - public Builder setLastProcessedTick(int value) { - - lastProcessedTick_ = value; - onChanged(); - return this; - } - /** - * uint32 last_processed_tick = 1; - * @return This builder for chaining. - */ - public Builder clearLastProcessedTick() { - - lastProcessedTick_ = 0; - onChanged(); - return this; - } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.LastProcessedTick) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.LastProcessedTick) - private static final LastProcessedTick DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new LastProcessedTick(); - } - - public static LastProcessedTick getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public LastProcessedTick parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LastProcessedTick(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public LastProcessedTick getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/LastProcessedTickOrBuilder.java b/src/main/java/org/qubic/archiver/proto/LastProcessedTickOrBuilder.java deleted file mode 100644 index fcd9980..0000000 --- a/src/main/java/org/qubic/archiver/proto/LastProcessedTickOrBuilder.java +++ /dev/null @@ -1,15 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface LastProcessedTickOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.LastProcessedTick) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 last_processed_tick = 1; - * @return The lastProcessedTick. - */ - int getLastProcessedTick(); -} diff --git a/src/main/java/org/qubic/archiver/proto/NextAvailableTick.java b/src/main/java/org/qubic/archiver/proto/NextAvailableTick.java deleted file mode 100644 index 978037a..0000000 --- a/src/main/java/org/qubic/archiver/proto/NextAvailableTick.java +++ /dev/null @@ -1,483 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.NextAvailableTick} - */ -public final class NextAvailableTick extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.NextAvailableTick) - NextAvailableTickOrBuilder { -private static final long serialVersionUID = 0L; - // Use NextAvailableTick.newBuilder() to construct. - private NextAvailableTick(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NextAvailableTick() { - } - - @Override - @SuppressWarnings({"unused"}) - protected Object newInstance( - UnusedPrivateParameter unused) { - return new NextAvailableTick(); - } - - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NextAvailableTick( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - nextTickNumber_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_NextAvailableTick_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_NextAvailableTick_fieldAccessorTable - .ensureFieldAccessorsInitialized( - NextAvailableTick.class, Builder.class); - } - - public static final int NEXT_TICK_NUMBER_FIELD_NUMBER = 1; - private int nextTickNumber_; - /** - * uint32 next_tick_number = 1; - * @return The nextTickNumber. - */ - @Override - public int getNextTickNumber() { - return nextTickNumber_; - } - - private byte memoizedIsInitialized = -1; - @Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (nextTickNumber_ != 0) { - output.writeUInt32(1, nextTickNumber_); - } - unknownFields.writeTo(output); - } - - @Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (nextTickNumber_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, nextTickNumber_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @Override - public boolean equals(final Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof NextAvailableTick)) { - return super.equals(obj); - } - NextAvailableTick other = (NextAvailableTick) obj; - - if (getNextTickNumber() - != other.getNextTickNumber()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NEXT_TICK_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getNextTickNumber(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static NextAvailableTick parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static NextAvailableTick parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static NextAvailableTick parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static NextAvailableTick parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static NextAvailableTick parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static NextAvailableTick parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static NextAvailableTick parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static NextAvailableTick 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 NextAvailableTick parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static NextAvailableTick 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 NextAvailableTick parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static NextAvailableTick parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(NextAvailableTick prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.NextAvailableTick} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.NextAvailableTick) - NextAvailableTickOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_NextAvailableTick_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_NextAvailableTick_fieldAccessorTable - .ensureFieldAccessorsInitialized( - NextAvailableTick.class, Builder.class); - } - - // Construct using org.qubic.archiver.proto.NextAvailableTick.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @Override - public Builder clear() { - super.clear(); - nextTickNumber_ = 0; - - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_NextAvailableTick_descriptor; - } - - @Override - public NextAvailableTick getDefaultInstanceForType() { - return NextAvailableTick.getDefaultInstance(); - } - - @Override - public NextAvailableTick build() { - NextAvailableTick result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public NextAvailableTick buildPartial() { - NextAvailableTick result = new NextAvailableTick(this); - result.nextTickNumber_ = nextTickNumber_; - onBuilt(); - return result; - } - - @Override - public Builder clone() { - return super.clone(); - } - @Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.setField(field, value); - } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return super.setRepeatedField(field, index, value); - } - @Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.addRepeatedField(field, value); - } - @Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof NextAvailableTick) { - return mergeFrom((NextAvailableTick)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(NextAvailableTick other) { - if (other == NextAvailableTick.getDefaultInstance()) return this; - if (other.getNextTickNumber() != 0) { - setNextTickNumber(other.getNextTickNumber()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - NextAvailableTick parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (NextAvailableTick) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int nextTickNumber_ ; - /** - * uint32 next_tick_number = 1; - * @return The nextTickNumber. - */ - @Override - public int getNextTickNumber() { - return nextTickNumber_; - } - /** - * uint32 next_tick_number = 1; - * @param value The nextTickNumber to set. - * @return This builder for chaining. - */ - public Builder setNextTickNumber(int value) { - - nextTickNumber_ = value; - onChanged(); - return this; - } - /** - * uint32 next_tick_number = 1; - * @return This builder for chaining. - */ - public Builder clearNextTickNumber() { - - nextTickNumber_ = 0; - onChanged(); - return this; - } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.NextAvailableTick) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.NextAvailableTick) - private static final NextAvailableTick DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new NextAvailableTick(); - } - - public static NextAvailableTick getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public NextAvailableTick parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NextAvailableTick(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public NextAvailableTick getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/NextAvailableTickOrBuilder.java b/src/main/java/org/qubic/archiver/proto/NextAvailableTickOrBuilder.java deleted file mode 100644 index 0908781..0000000 --- a/src/main/java/org/qubic/archiver/proto/NextAvailableTickOrBuilder.java +++ /dev/null @@ -1,15 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface NextAvailableTickOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.NextAvailableTick) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 next_tick_number = 1; - * @return The nextTickNumber. - */ - int getNextTickNumber(); -} diff --git a/src/main/java/org/qubic/archiver/proto/PerTickIdentityTransfers.java b/src/main/java/org/qubic/archiver/proto/PerTickIdentityTransfers.java deleted file mode 100644 index f05b361..0000000 --- a/src/main/java/org/qubic/archiver/proto/PerTickIdentityTransfers.java +++ /dev/null @@ -1,972 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.PerTickIdentityTransfers} - */ -public final class PerTickIdentityTransfers extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.PerTickIdentityTransfers) - PerTickIdentityTransfersOrBuilder { -private static final long serialVersionUID = 0L; - // Use PerTickIdentityTransfers.newBuilder() to construct. - private PerTickIdentityTransfers(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PerTickIdentityTransfers() { - identity_ = ""; - transactions_ = java.util.Collections.emptyList(); - } - - @Override - @SuppressWarnings({"unused"}) - protected Object newInstance( - UnusedPrivateParameter unused) { - return new PerTickIdentityTransfers(); - } - - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PerTickIdentityTransfers( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - tickNumber_ = input.readUInt32(); - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - identity_ = s; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - transactions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - transactions_.add( - input.readMessage(TransactionData.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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) != 0)) { - transactions_ = java.util.Collections.unmodifiableList(transactions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_PerTickIdentityTransfers_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_PerTickIdentityTransfers_fieldAccessorTable - .ensureFieldAccessorsInitialized( - PerTickIdentityTransfers.class, Builder.class); - } - - public static final int TICK_NUMBER_FIELD_NUMBER = 1; - private int tickNumber_; - /** - * uint32 tick_number = 1; - * @return The tickNumber. - */ - @Override - public int getTickNumber() { - return tickNumber_; - } - - public static final int IDENTITY_FIELD_NUMBER = 2; - private volatile Object identity_; - /** - * string identity = 2; - * @return The identity. - */ - @Override - public String getIdentity() { - Object ref = identity_; - if (ref instanceof String) { - return (String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - identity_ = s; - return s; - } - } - /** - * string identity = 2; - * @return The bytes for identity. - */ - @Override - public com.google.protobuf.ByteString - getIdentityBytes() { - Object ref = identity_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - identity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TRANSACTIONS_FIELD_NUMBER = 3; - private java.util.List transactions_; - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 3; - */ - @Override - public java.util.List getTransactionsList() { - return transactions_; - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 3; - */ - @Override - public java.util.List - getTransactionsOrBuilderList() { - return transactions_; - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 3; - */ - @Override - public int getTransactionsCount() { - return transactions_.size(); - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 3; - */ - @Override - public TransactionData getTransactions(int index) { - return transactions_.get(index); - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 3; - */ - @Override - public TransactionDataOrBuilder getTransactionsOrBuilder( - int index) { - return transactions_.get(index); - } - - private byte memoizedIsInitialized = -1; - @Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (tickNumber_ != 0) { - output.writeUInt32(1, tickNumber_); - } - if (!getIdentityBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, identity_); - } - for (int i = 0; i < transactions_.size(); i++) { - output.writeMessage(3, transactions_.get(i)); - } - unknownFields.writeTo(output); - } - - @Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (tickNumber_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, tickNumber_); - } - if (!getIdentityBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, identity_); - } - for (int i = 0; i < transactions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, transactions_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @Override - public boolean equals(final Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof PerTickIdentityTransfers)) { - return super.equals(obj); - } - PerTickIdentityTransfers other = (PerTickIdentityTransfers) obj; - - if (getTickNumber() - != other.getTickNumber()) return false; - if (!getIdentity() - .equals(other.getIdentity())) return false; - if (!getTransactionsList() - .equals(other.getTransactionsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TICK_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getTickNumber(); - hash = (37 * hash) + IDENTITY_FIELD_NUMBER; - hash = (53 * hash) + getIdentity().hashCode(); - if (getTransactionsCount() > 0) { - hash = (37 * hash) + TRANSACTIONS_FIELD_NUMBER; - hash = (53 * hash) + getTransactionsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static PerTickIdentityTransfers parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static PerTickIdentityTransfers parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static PerTickIdentityTransfers parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static PerTickIdentityTransfers parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static PerTickIdentityTransfers parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static PerTickIdentityTransfers parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static PerTickIdentityTransfers parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static PerTickIdentityTransfers 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 PerTickIdentityTransfers parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static PerTickIdentityTransfers 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 PerTickIdentityTransfers parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static PerTickIdentityTransfers parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(PerTickIdentityTransfers prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.PerTickIdentityTransfers} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.PerTickIdentityTransfers) - PerTickIdentityTransfersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_PerTickIdentityTransfers_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_PerTickIdentityTransfers_fieldAccessorTable - .ensureFieldAccessorsInitialized( - PerTickIdentityTransfers.class, Builder.class); - } - - // Construct using org.qubic.archiver.proto.PerTickIdentityTransfers.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTransactionsFieldBuilder(); - } - } - @Override - public Builder clear() { - super.clear(); - tickNumber_ = 0; - - identity_ = ""; - - if (transactionsBuilder_ == null) { - transactions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - transactionsBuilder_.clear(); - } - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_PerTickIdentityTransfers_descriptor; - } - - @Override - public PerTickIdentityTransfers getDefaultInstanceForType() { - return PerTickIdentityTransfers.getDefaultInstance(); - } - - @Override - public PerTickIdentityTransfers build() { - PerTickIdentityTransfers result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public PerTickIdentityTransfers buildPartial() { - PerTickIdentityTransfers result = new PerTickIdentityTransfers(this); - int from_bitField0_ = bitField0_; - result.tickNumber_ = tickNumber_; - result.identity_ = identity_; - if (transactionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - transactions_ = java.util.Collections.unmodifiableList(transactions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.transactions_ = transactions_; - } else { - result.transactions_ = transactionsBuilder_.build(); - } - onBuilt(); - return result; - } - - @Override - public Builder clone() { - return super.clone(); - } - @Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.setField(field, value); - } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return super.setRepeatedField(field, index, value); - } - @Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.addRepeatedField(field, value); - } - @Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof PerTickIdentityTransfers) { - return mergeFrom((PerTickIdentityTransfers)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(PerTickIdentityTransfers other) { - if (other == PerTickIdentityTransfers.getDefaultInstance()) return this; - if (other.getTickNumber() != 0) { - setTickNumber(other.getTickNumber()); - } - if (!other.getIdentity().isEmpty()) { - identity_ = other.identity_; - onChanged(); - } - if (transactionsBuilder_ == null) { - if (!other.transactions_.isEmpty()) { - if (transactions_.isEmpty()) { - transactions_ = other.transactions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTransactionsIsMutable(); - transactions_.addAll(other.transactions_); - } - onChanged(); - } - } else { - if (!other.transactions_.isEmpty()) { - if (transactionsBuilder_.isEmpty()) { - transactionsBuilder_.dispose(); - transactionsBuilder_ = null; - transactions_ = other.transactions_; - bitField0_ = (bitField0_ & ~0x00000001); - transactionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTransactionsFieldBuilder() : null; - } else { - transactionsBuilder_.addAllMessages(other.transactions_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - PerTickIdentityTransfers parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (PerTickIdentityTransfers) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int tickNumber_ ; - /** - * uint32 tick_number = 1; - * @return The tickNumber. - */ - @Override - public int getTickNumber() { - return tickNumber_; - } - /** - * uint32 tick_number = 1; - * @param value The tickNumber to set. - * @return This builder for chaining. - */ - public Builder setTickNumber(int value) { - - tickNumber_ = value; - onChanged(); - return this; - } - /** - * uint32 tick_number = 1; - * @return This builder for chaining. - */ - public Builder clearTickNumber() { - - tickNumber_ = 0; - onChanged(); - return this; - } - - private Object identity_ = ""; - /** - * string identity = 2; - * @return The identity. - */ - public String getIdentity() { - Object ref = identity_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - identity_ = s; - return s; - } else { - return (String) ref; - } - } - /** - * string identity = 2; - * @return The bytes for identity. - */ - public com.google.protobuf.ByteString - getIdentityBytes() { - Object ref = identity_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - identity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string identity = 2; - * @param value The identity to set. - * @return This builder for chaining. - */ - public Builder setIdentity( - String value) { - if (value == null) { - throw new NullPointerException(); - } - - identity_ = value; - onChanged(); - return this; - } - /** - * string identity = 2; - * @return This builder for chaining. - */ - public Builder clearIdentity() { - - identity_ = getDefaultInstance().getIdentity(); - onChanged(); - return this; - } - /** - * string identity = 2; - * @param value The bytes for identity to set. - * @return This builder for chaining. - */ - public Builder setIdentityBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - identity_ = value; - onChanged(); - return this; - } - - private java.util.List transactions_ = - java.util.Collections.emptyList(); - private void ensureTransactionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - transactions_ = new java.util.ArrayList(transactions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - TransactionData, TransactionData.Builder, TransactionDataOrBuilder> transactionsBuilder_; - - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 3; - */ - public java.util.List getTransactionsList() { - if (transactionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(transactions_); - } else { - return transactionsBuilder_.getMessageList(); - } - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 3; - */ - public int getTransactionsCount() { - if (transactionsBuilder_ == null) { - return transactions_.size(); - } else { - return transactionsBuilder_.getCount(); - } - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 3; - */ - public TransactionData getTransactions(int index) { - if (transactionsBuilder_ == null) { - return transactions_.get(index); - } else { - return transactionsBuilder_.getMessage(index); - } - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 3; - */ - public Builder setTransactions( - int index, TransactionData value) { - if (transactionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransactionsIsMutable(); - transactions_.set(index, value); - onChanged(); - } else { - transactionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 3; - */ - public Builder setTransactions( - int index, TransactionData.Builder builderForValue) { - if (transactionsBuilder_ == null) { - ensureTransactionsIsMutable(); - transactions_.set(index, builderForValue.build()); - onChanged(); - } else { - transactionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 3; - */ - public Builder addTransactions(TransactionData value) { - if (transactionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransactionsIsMutable(); - transactions_.add(value); - onChanged(); - } else { - transactionsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 3; - */ - public Builder addTransactions( - int index, TransactionData value) { - if (transactionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransactionsIsMutable(); - transactions_.add(index, value); - onChanged(); - } else { - transactionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 3; - */ - public Builder addTransactions( - TransactionData.Builder builderForValue) { - if (transactionsBuilder_ == null) { - ensureTransactionsIsMutable(); - transactions_.add(builderForValue.build()); - onChanged(); - } else { - transactionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 3; - */ - public Builder addTransactions( - int index, TransactionData.Builder builderForValue) { - if (transactionsBuilder_ == null) { - ensureTransactionsIsMutable(); - transactions_.add(index, builderForValue.build()); - onChanged(); - } else { - transactionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 3; - */ - public Builder addAllTransactions( - Iterable values) { - if (transactionsBuilder_ == null) { - ensureTransactionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, transactions_); - onChanged(); - } else { - transactionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 3; - */ - public Builder clearTransactions() { - if (transactionsBuilder_ == null) { - transactions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - transactionsBuilder_.clear(); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 3; - */ - public Builder removeTransactions(int index) { - if (transactionsBuilder_ == null) { - ensureTransactionsIsMutable(); - transactions_.remove(index); - onChanged(); - } else { - transactionsBuilder_.remove(index); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 3; - */ - public TransactionData.Builder getTransactionsBuilder( - int index) { - return getTransactionsFieldBuilder().getBuilder(index); - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 3; - */ - public TransactionDataOrBuilder getTransactionsOrBuilder( - int index) { - if (transactionsBuilder_ == null) { - return transactions_.get(index); } else { - return transactionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 3; - */ - public java.util.List - getTransactionsOrBuilderList() { - if (transactionsBuilder_ != null) { - return transactionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(transactions_); - } - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 3; - */ - public TransactionData.Builder addTransactionsBuilder() { - return getTransactionsFieldBuilder().addBuilder( - TransactionData.getDefaultInstance()); - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 3; - */ - public TransactionData.Builder addTransactionsBuilder( - int index) { - return getTransactionsFieldBuilder().addBuilder( - index, TransactionData.getDefaultInstance()); - } - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 3; - */ - public java.util.List - getTransactionsBuilderList() { - return getTransactionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - TransactionData, TransactionData.Builder, TransactionDataOrBuilder> - getTransactionsFieldBuilder() { - if (transactionsBuilder_ == null) { - transactionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - TransactionData, TransactionData.Builder, TransactionDataOrBuilder>( - transactions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - transactions_ = null; - } - return transactionsBuilder_; - } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.PerTickIdentityTransfers) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.PerTickIdentityTransfers) - private static final PerTickIdentityTransfers DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new PerTickIdentityTransfers(); - } - - public static PerTickIdentityTransfers getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public PerTickIdentityTransfers parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PerTickIdentityTransfers(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public PerTickIdentityTransfers getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/PerTickIdentityTransfersOrBuilder.java b/src/main/java/org/qubic/archiver/proto/PerTickIdentityTransfersOrBuilder.java deleted file mode 100644 index 28f7b9f..0000000 --- a/src/main/java/org/qubic/archiver/proto/PerTickIdentityTransfersOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface PerTickIdentityTransfersOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.PerTickIdentityTransfers) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 tick_number = 1; - * @return The tickNumber. - */ - int getTickNumber(); - - /** - * string identity = 2; - * @return The identity. - */ - java.lang.String getIdentity(); - /** - * string identity = 2; - * @return The bytes for identity. - */ - com.google.protobuf.ByteString - getIdentityBytes(); - - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 3; - */ - java.util.List - getTransactionsList(); - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 3; - */ - org.qubic.archiver.proto.TransactionData getTransactions(int index); - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 3; - */ - int getTransactionsCount(); - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 3; - */ - java.util.List - getTransactionsOrBuilderList(); - /** - * repeated .qubic.archiver.archive.pb.TransactionData transactions = 3; - */ - org.qubic.archiver.proto.TransactionDataOrBuilder getTransactionsOrBuilder( - int index); -} diff --git a/src/main/java/org/qubic/archiver/proto/ProcessedTick.java b/src/main/java/org/qubic/archiver/proto/ProcessedTick.java deleted file mode 100644 index f8f1885..0000000 --- a/src/main/java/org/qubic/archiver/proto/ProcessedTick.java +++ /dev/null @@ -1,547 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.ProcessedTick} - */ -public final class ProcessedTick extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.ProcessedTick) - ProcessedTickOrBuilder { -private static final long serialVersionUID = 0L; - // Use ProcessedTick.newBuilder() to construct. - private ProcessedTick(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProcessedTick() { - } - - @Override - @SuppressWarnings({"unused"}) - protected Object newInstance( - UnusedPrivateParameter unused) { - return new ProcessedTick(); - } - - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProcessedTick( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - tickNumber_ = input.readUInt32(); - break; - } - case 16: { - - epoch_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_ProcessedTick_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_ProcessedTick_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ProcessedTick.class, Builder.class); - } - - public static final int TICK_NUMBER_FIELD_NUMBER = 1; - private int tickNumber_; - /** - * uint32 tick_number = 1; - * @return The tickNumber. - */ - @Override - public int getTickNumber() { - return tickNumber_; - } - - public static final int EPOCH_FIELD_NUMBER = 2; - private int epoch_; - /** - * uint32 epoch = 2; - * @return The epoch. - */ - @Override - public int getEpoch() { - return epoch_; - } - - private byte memoizedIsInitialized = -1; - @Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (tickNumber_ != 0) { - output.writeUInt32(1, tickNumber_); - } - if (epoch_ != 0) { - output.writeUInt32(2, epoch_); - } - unknownFields.writeTo(output); - } - - @Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (tickNumber_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, tickNumber_); - } - if (epoch_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, epoch_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @Override - public boolean equals(final Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof ProcessedTick)) { - return super.equals(obj); - } - ProcessedTick other = (ProcessedTick) obj; - - if (getTickNumber() - != other.getTickNumber()) return false; - if (getEpoch() - != other.getEpoch()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TICK_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getTickNumber(); - hash = (37 * hash) + EPOCH_FIELD_NUMBER; - hash = (53 * hash) + getEpoch(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ProcessedTick parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ProcessedTick parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ProcessedTick parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ProcessedTick parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ProcessedTick parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ProcessedTick parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ProcessedTick parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ProcessedTick 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 ProcessedTick parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ProcessedTick 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 ProcessedTick parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ProcessedTick parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ProcessedTick prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.ProcessedTick} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.ProcessedTick) - ProcessedTickOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_ProcessedTick_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_ProcessedTick_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ProcessedTick.class, Builder.class); - } - - // Construct using org.qubic.archiver.proto.ProcessedTick.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @Override - public Builder clear() { - super.clear(); - tickNumber_ = 0; - - epoch_ = 0; - - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_ProcessedTick_descriptor; - } - - @Override - public ProcessedTick getDefaultInstanceForType() { - return ProcessedTick.getDefaultInstance(); - } - - @Override - public ProcessedTick build() { - ProcessedTick result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public ProcessedTick buildPartial() { - ProcessedTick result = new ProcessedTick(this); - result.tickNumber_ = tickNumber_; - result.epoch_ = epoch_; - onBuilt(); - return result; - } - - @Override - public Builder clone() { - return super.clone(); - } - @Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.setField(field, value); - } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return super.setRepeatedField(field, index, value); - } - @Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.addRepeatedField(field, value); - } - @Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ProcessedTick) { - return mergeFrom((ProcessedTick)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ProcessedTick other) { - if (other == ProcessedTick.getDefaultInstance()) return this; - if (other.getTickNumber() != 0) { - setTickNumber(other.getTickNumber()); - } - if (other.getEpoch() != 0) { - setEpoch(other.getEpoch()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ProcessedTick parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ProcessedTick) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int tickNumber_ ; - /** - * uint32 tick_number = 1; - * @return The tickNumber. - */ - @Override - public int getTickNumber() { - return tickNumber_; - } - /** - * uint32 tick_number = 1; - * @param value The tickNumber to set. - * @return This builder for chaining. - */ - public Builder setTickNumber(int value) { - - tickNumber_ = value; - onChanged(); - return this; - } - /** - * uint32 tick_number = 1; - * @return This builder for chaining. - */ - public Builder clearTickNumber() { - - tickNumber_ = 0; - onChanged(); - return this; - } - - private int epoch_ ; - /** - * uint32 epoch = 2; - * @return The epoch. - */ - @Override - public int getEpoch() { - return epoch_; - } - /** - * uint32 epoch = 2; - * @param value The epoch to set. - * @return This builder for chaining. - */ - public Builder setEpoch(int value) { - - epoch_ = value; - onChanged(); - return this; - } - /** - * uint32 epoch = 2; - * @return This builder for chaining. - */ - public Builder clearEpoch() { - - epoch_ = 0; - onChanged(); - return this; - } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.ProcessedTick) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.ProcessedTick) - private static final ProcessedTick DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ProcessedTick(); - } - - public static ProcessedTick getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public ProcessedTick parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProcessedTick(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public ProcessedTick getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/ProcessedTickInterval.java b/src/main/java/org/qubic/archiver/proto/ProcessedTickInterval.java deleted file mode 100644 index edc684b..0000000 --- a/src/main/java/org/qubic/archiver/proto/ProcessedTickInterval.java +++ /dev/null @@ -1,547 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.ProcessedTickInterval} - */ -public final class ProcessedTickInterval extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.ProcessedTickInterval) - ProcessedTickIntervalOrBuilder { -private static final long serialVersionUID = 0L; - // Use ProcessedTickInterval.newBuilder() to construct. - private ProcessedTickInterval(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProcessedTickInterval() { - } - - @Override - @SuppressWarnings({"unused"}) - protected Object newInstance( - UnusedPrivateParameter unused) { - return new ProcessedTickInterval(); - } - - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProcessedTickInterval( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - initialProcessedTick_ = input.readUInt32(); - break; - } - case 16: { - - lastProcessedTick_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_ProcessedTickInterval_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_ProcessedTickInterval_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ProcessedTickInterval.class, Builder.class); - } - - public static final int INITIAL_PROCESSED_TICK_FIELD_NUMBER = 1; - private int initialProcessedTick_; - /** - * uint32 initial_processed_tick = 1; - * @return The initialProcessedTick. - */ - @Override - public int getInitialProcessedTick() { - return initialProcessedTick_; - } - - public static final int LAST_PROCESSED_TICK_FIELD_NUMBER = 2; - private int lastProcessedTick_; - /** - * uint32 last_processed_tick = 2; - * @return The lastProcessedTick. - */ - @Override - public int getLastProcessedTick() { - return lastProcessedTick_; - } - - private byte memoizedIsInitialized = -1; - @Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (initialProcessedTick_ != 0) { - output.writeUInt32(1, initialProcessedTick_); - } - if (lastProcessedTick_ != 0) { - output.writeUInt32(2, lastProcessedTick_); - } - unknownFields.writeTo(output); - } - - @Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (initialProcessedTick_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, initialProcessedTick_); - } - if (lastProcessedTick_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, lastProcessedTick_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @Override - public boolean equals(final Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof ProcessedTickInterval)) { - return super.equals(obj); - } - ProcessedTickInterval other = (ProcessedTickInterval) obj; - - if (getInitialProcessedTick() - != other.getInitialProcessedTick()) return false; - if (getLastProcessedTick() - != other.getLastProcessedTick()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + INITIAL_PROCESSED_TICK_FIELD_NUMBER; - hash = (53 * hash) + getInitialProcessedTick(); - hash = (37 * hash) + LAST_PROCESSED_TICK_FIELD_NUMBER; - hash = (53 * hash) + getLastProcessedTick(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static ProcessedTickInterval parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ProcessedTickInterval parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ProcessedTickInterval parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ProcessedTickInterval parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ProcessedTickInterval parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static ProcessedTickInterval parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static ProcessedTickInterval parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ProcessedTickInterval 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 ProcessedTickInterval parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static ProcessedTickInterval 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 ProcessedTickInterval parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static ProcessedTickInterval parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ProcessedTickInterval prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.ProcessedTickInterval} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.ProcessedTickInterval) - ProcessedTickIntervalOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_ProcessedTickInterval_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_ProcessedTickInterval_fieldAccessorTable - .ensureFieldAccessorsInitialized( - ProcessedTickInterval.class, Builder.class); - } - - // Construct using org.qubic.archiver.proto.ProcessedTickInterval.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @Override - public Builder clear() { - super.clear(); - initialProcessedTick_ = 0; - - lastProcessedTick_ = 0; - - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_ProcessedTickInterval_descriptor; - } - - @Override - public ProcessedTickInterval getDefaultInstanceForType() { - return ProcessedTickInterval.getDefaultInstance(); - } - - @Override - public ProcessedTickInterval build() { - ProcessedTickInterval result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public ProcessedTickInterval buildPartial() { - ProcessedTickInterval result = new ProcessedTickInterval(this); - result.initialProcessedTick_ = initialProcessedTick_; - result.lastProcessedTick_ = lastProcessedTick_; - onBuilt(); - return result; - } - - @Override - public Builder clone() { - return super.clone(); - } - @Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.setField(field, value); - } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return super.setRepeatedField(field, index, value); - } - @Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.addRepeatedField(field, value); - } - @Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ProcessedTickInterval) { - return mergeFrom((ProcessedTickInterval)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(ProcessedTickInterval other) { - if (other == ProcessedTickInterval.getDefaultInstance()) return this; - if (other.getInitialProcessedTick() != 0) { - setInitialProcessedTick(other.getInitialProcessedTick()); - } - if (other.getLastProcessedTick() != 0) { - setLastProcessedTick(other.getLastProcessedTick()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - ProcessedTickInterval parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ProcessedTickInterval) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int initialProcessedTick_ ; - /** - * uint32 initial_processed_tick = 1; - * @return The initialProcessedTick. - */ - @Override - public int getInitialProcessedTick() { - return initialProcessedTick_; - } - /** - * uint32 initial_processed_tick = 1; - * @param value The initialProcessedTick to set. - * @return This builder for chaining. - */ - public Builder setInitialProcessedTick(int value) { - - initialProcessedTick_ = value; - onChanged(); - return this; - } - /** - * uint32 initial_processed_tick = 1; - * @return This builder for chaining. - */ - public Builder clearInitialProcessedTick() { - - initialProcessedTick_ = 0; - onChanged(); - return this; - } - - private int lastProcessedTick_ ; - /** - * uint32 last_processed_tick = 2; - * @return The lastProcessedTick. - */ - @Override - public int getLastProcessedTick() { - return lastProcessedTick_; - } - /** - * uint32 last_processed_tick = 2; - * @param value The lastProcessedTick to set. - * @return This builder for chaining. - */ - public Builder setLastProcessedTick(int value) { - - lastProcessedTick_ = value; - onChanged(); - return this; - } - /** - * uint32 last_processed_tick = 2; - * @return This builder for chaining. - */ - public Builder clearLastProcessedTick() { - - lastProcessedTick_ = 0; - onChanged(); - return this; - } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.ProcessedTickInterval) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.ProcessedTickInterval) - private static final ProcessedTickInterval DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ProcessedTickInterval(); - } - - public static ProcessedTickInterval getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public ProcessedTickInterval parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProcessedTickInterval(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public ProcessedTickInterval getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/ProcessedTickIntervalOrBuilder.java b/src/main/java/org/qubic/archiver/proto/ProcessedTickIntervalOrBuilder.java deleted file mode 100644 index 6efcf25..0000000 --- a/src/main/java/org/qubic/archiver/proto/ProcessedTickIntervalOrBuilder.java +++ /dev/null @@ -1,21 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface ProcessedTickIntervalOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.ProcessedTickInterval) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 initial_processed_tick = 1; - * @return The initialProcessedTick. - */ - int getInitialProcessedTick(); - - /** - * uint32 last_processed_tick = 2; - * @return The lastProcessedTick. - */ - int getLastProcessedTick(); -} diff --git a/src/main/java/org/qubic/archiver/proto/ProcessedTickIntervalsPerEpoch.java b/src/main/java/org/qubic/archiver/proto/ProcessedTickIntervalsPerEpoch.java deleted file mode 100644 index cb75745..0000000 --- a/src/main/java/org/qubic/archiver/proto/ProcessedTickIntervalsPerEpoch.java +++ /dev/null @@ -1,834 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.ProcessedTickIntervalsPerEpoch} - */ -public final class ProcessedTickIntervalsPerEpoch extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.ProcessedTickIntervalsPerEpoch) - ProcessedTickIntervalsPerEpochOrBuilder { -private static final long serialVersionUID = 0L; - // Use ProcessedTickIntervalsPerEpoch.newBuilder() to construct. - private ProcessedTickIntervalsPerEpoch(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProcessedTickIntervalsPerEpoch() { - intervals_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ProcessedTickIntervalsPerEpoch(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProcessedTickIntervalsPerEpoch( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - epoch_ = input.readUInt32(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - intervals_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - intervals_.add( - input.readMessage(org.qubic.archiver.proto.ProcessedTickInterval.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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) != 0)) { - intervals_ = java.util.Collections.unmodifiableList(intervals_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_ProcessedTickIntervalsPerEpoch_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_ProcessedTickIntervalsPerEpoch_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.qubic.archiver.proto.ProcessedTickIntervalsPerEpoch.class, org.qubic.archiver.proto.ProcessedTickIntervalsPerEpoch.Builder.class); - } - - public static final int EPOCH_FIELD_NUMBER = 1; - private int epoch_; - /** - * uint32 epoch = 1; - * @return The epoch. - */ - @java.lang.Override - public int getEpoch() { - return epoch_; - } - - public static final int INTERVALS_FIELD_NUMBER = 2; - private java.util.List intervals_; - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickInterval intervals = 2; - */ - @java.lang.Override - public java.util.List getIntervalsList() { - return intervals_; - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickInterval intervals = 2; - */ - @java.lang.Override - public java.util.List - getIntervalsOrBuilderList() { - return intervals_; - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickInterval intervals = 2; - */ - @java.lang.Override - public int getIntervalsCount() { - return intervals_.size(); - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickInterval intervals = 2; - */ - @java.lang.Override - public org.qubic.archiver.proto.ProcessedTickInterval getIntervals(int index) { - return intervals_.get(index); - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickInterval intervals = 2; - */ - @java.lang.Override - public org.qubic.archiver.proto.ProcessedTickIntervalOrBuilder getIntervalsOrBuilder( - int index) { - return intervals_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (epoch_ != 0) { - output.writeUInt32(1, epoch_); - } - for (int i = 0; i < intervals_.size(); i++) { - output.writeMessage(2, intervals_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (epoch_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, epoch_); - } - for (int i = 0; i < intervals_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, intervals_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.qubic.archiver.proto.ProcessedTickIntervalsPerEpoch)) { - return super.equals(obj); - } - org.qubic.archiver.proto.ProcessedTickIntervalsPerEpoch other = (org.qubic.archiver.proto.ProcessedTickIntervalsPerEpoch) obj; - - if (getEpoch() - != other.getEpoch()) return false; - if (!getIntervalsList() - .equals(other.getIntervalsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + EPOCH_FIELD_NUMBER; - hash = (53 * hash) + getEpoch(); - if (getIntervalsCount() > 0) { - hash = (37 * hash) + INTERVALS_FIELD_NUMBER; - hash = (53 * hash) + getIntervalsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.qubic.archiver.proto.ProcessedTickIntervalsPerEpoch parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.ProcessedTickIntervalsPerEpoch parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.ProcessedTickIntervalsPerEpoch parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.ProcessedTickIntervalsPerEpoch parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.ProcessedTickIntervalsPerEpoch parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.ProcessedTickIntervalsPerEpoch parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.ProcessedTickIntervalsPerEpoch parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.ProcessedTickIntervalsPerEpoch 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 org.qubic.archiver.proto.ProcessedTickIntervalsPerEpoch parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.ProcessedTickIntervalsPerEpoch 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 org.qubic.archiver.proto.ProcessedTickIntervalsPerEpoch parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.ProcessedTickIntervalsPerEpoch parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.qubic.archiver.proto.ProcessedTickIntervalsPerEpoch prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.ProcessedTickIntervalsPerEpoch} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.ProcessedTickIntervalsPerEpoch) - org.qubic.archiver.proto.ProcessedTickIntervalsPerEpochOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_ProcessedTickIntervalsPerEpoch_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_ProcessedTickIntervalsPerEpoch_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.qubic.archiver.proto.ProcessedTickIntervalsPerEpoch.class, org.qubic.archiver.proto.ProcessedTickIntervalsPerEpoch.Builder.class); - } - - // Construct using org.qubic.archiver.proto.ProcessedTickIntervalsPerEpoch.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getIntervalsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - epoch_ = 0; - - if (intervalsBuilder_ == null) { - intervals_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - intervalsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_ProcessedTickIntervalsPerEpoch_descriptor; - } - - @java.lang.Override - public org.qubic.archiver.proto.ProcessedTickIntervalsPerEpoch getDefaultInstanceForType() { - return org.qubic.archiver.proto.ProcessedTickIntervalsPerEpoch.getDefaultInstance(); - } - - @java.lang.Override - public org.qubic.archiver.proto.ProcessedTickIntervalsPerEpoch build() { - org.qubic.archiver.proto.ProcessedTickIntervalsPerEpoch result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.qubic.archiver.proto.ProcessedTickIntervalsPerEpoch buildPartial() { - org.qubic.archiver.proto.ProcessedTickIntervalsPerEpoch result = new org.qubic.archiver.proto.ProcessedTickIntervalsPerEpoch(this); - int from_bitField0_ = bitField0_; - result.epoch_ = epoch_; - if (intervalsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - intervals_ = java.util.Collections.unmodifiableList(intervals_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.intervals_ = intervals_; - } else { - result.intervals_ = intervalsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.qubic.archiver.proto.ProcessedTickIntervalsPerEpoch) { - return mergeFrom((org.qubic.archiver.proto.ProcessedTickIntervalsPerEpoch)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.qubic.archiver.proto.ProcessedTickIntervalsPerEpoch other) { - if (other == org.qubic.archiver.proto.ProcessedTickIntervalsPerEpoch.getDefaultInstance()) return this; - if (other.getEpoch() != 0) { - setEpoch(other.getEpoch()); - } - if (intervalsBuilder_ == null) { - if (!other.intervals_.isEmpty()) { - if (intervals_.isEmpty()) { - intervals_ = other.intervals_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureIntervalsIsMutable(); - intervals_.addAll(other.intervals_); - } - onChanged(); - } - } else { - if (!other.intervals_.isEmpty()) { - if (intervalsBuilder_.isEmpty()) { - intervalsBuilder_.dispose(); - intervalsBuilder_ = null; - intervals_ = other.intervals_; - bitField0_ = (bitField0_ & ~0x00000001); - intervalsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getIntervalsFieldBuilder() : null; - } else { - intervalsBuilder_.addAllMessages(other.intervals_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.qubic.archiver.proto.ProcessedTickIntervalsPerEpoch parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.qubic.archiver.proto.ProcessedTickIntervalsPerEpoch) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int epoch_ ; - /** - * uint32 epoch = 1; - * @return The epoch. - */ - @java.lang.Override - public int getEpoch() { - return epoch_; - } - /** - * uint32 epoch = 1; - * @param value The epoch to set. - * @return This builder for chaining. - */ - public Builder setEpoch(int value) { - - epoch_ = value; - onChanged(); - return this; - } - /** - * uint32 epoch = 1; - * @return This builder for chaining. - */ - public Builder clearEpoch() { - - epoch_ = 0; - onChanged(); - return this; - } - - private java.util.List intervals_ = - java.util.Collections.emptyList(); - private void ensureIntervalsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - intervals_ = new java.util.ArrayList(intervals_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.qubic.archiver.proto.ProcessedTickInterval, org.qubic.archiver.proto.ProcessedTickInterval.Builder, org.qubic.archiver.proto.ProcessedTickIntervalOrBuilder> intervalsBuilder_; - - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickInterval intervals = 2; - */ - public java.util.List getIntervalsList() { - if (intervalsBuilder_ == null) { - return java.util.Collections.unmodifiableList(intervals_); - } else { - return intervalsBuilder_.getMessageList(); - } - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickInterval intervals = 2; - */ - public int getIntervalsCount() { - if (intervalsBuilder_ == null) { - return intervals_.size(); - } else { - return intervalsBuilder_.getCount(); - } - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickInterval intervals = 2; - */ - public org.qubic.archiver.proto.ProcessedTickInterval getIntervals(int index) { - if (intervalsBuilder_ == null) { - return intervals_.get(index); - } else { - return intervalsBuilder_.getMessage(index); - } - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickInterval intervals = 2; - */ - public Builder setIntervals( - int index, org.qubic.archiver.proto.ProcessedTickInterval value) { - if (intervalsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureIntervalsIsMutable(); - intervals_.set(index, value); - onChanged(); - } else { - intervalsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickInterval intervals = 2; - */ - public Builder setIntervals( - int index, org.qubic.archiver.proto.ProcessedTickInterval.Builder builderForValue) { - if (intervalsBuilder_ == null) { - ensureIntervalsIsMutable(); - intervals_.set(index, builderForValue.build()); - onChanged(); - } else { - intervalsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickInterval intervals = 2; - */ - public Builder addIntervals(org.qubic.archiver.proto.ProcessedTickInterval value) { - if (intervalsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureIntervalsIsMutable(); - intervals_.add(value); - onChanged(); - } else { - intervalsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickInterval intervals = 2; - */ - public Builder addIntervals( - int index, org.qubic.archiver.proto.ProcessedTickInterval value) { - if (intervalsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureIntervalsIsMutable(); - intervals_.add(index, value); - onChanged(); - } else { - intervalsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickInterval intervals = 2; - */ - public Builder addIntervals( - org.qubic.archiver.proto.ProcessedTickInterval.Builder builderForValue) { - if (intervalsBuilder_ == null) { - ensureIntervalsIsMutable(); - intervals_.add(builderForValue.build()); - onChanged(); - } else { - intervalsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickInterval intervals = 2; - */ - public Builder addIntervals( - int index, org.qubic.archiver.proto.ProcessedTickInterval.Builder builderForValue) { - if (intervalsBuilder_ == null) { - ensureIntervalsIsMutable(); - intervals_.add(index, builderForValue.build()); - onChanged(); - } else { - intervalsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickInterval intervals = 2; - */ - public Builder addAllIntervals( - java.lang.Iterable values) { - if (intervalsBuilder_ == null) { - ensureIntervalsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, intervals_); - onChanged(); - } else { - intervalsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickInterval intervals = 2; - */ - public Builder clearIntervals() { - if (intervalsBuilder_ == null) { - intervals_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - intervalsBuilder_.clear(); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickInterval intervals = 2; - */ - public Builder removeIntervals(int index) { - if (intervalsBuilder_ == null) { - ensureIntervalsIsMutable(); - intervals_.remove(index); - onChanged(); - } else { - intervalsBuilder_.remove(index); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickInterval intervals = 2; - */ - public org.qubic.archiver.proto.ProcessedTickInterval.Builder getIntervalsBuilder( - int index) { - return getIntervalsFieldBuilder().getBuilder(index); - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickInterval intervals = 2; - */ - public org.qubic.archiver.proto.ProcessedTickIntervalOrBuilder getIntervalsOrBuilder( - int index) { - if (intervalsBuilder_ == null) { - return intervals_.get(index); } else { - return intervalsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickInterval intervals = 2; - */ - public java.util.List - getIntervalsOrBuilderList() { - if (intervalsBuilder_ != null) { - return intervalsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(intervals_); - } - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickInterval intervals = 2; - */ - public org.qubic.archiver.proto.ProcessedTickInterval.Builder addIntervalsBuilder() { - return getIntervalsFieldBuilder().addBuilder( - org.qubic.archiver.proto.ProcessedTickInterval.getDefaultInstance()); - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickInterval intervals = 2; - */ - public org.qubic.archiver.proto.ProcessedTickInterval.Builder addIntervalsBuilder( - int index) { - return getIntervalsFieldBuilder().addBuilder( - index, org.qubic.archiver.proto.ProcessedTickInterval.getDefaultInstance()); - } - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickInterval intervals = 2; - */ - public java.util.List - getIntervalsBuilderList() { - return getIntervalsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.qubic.archiver.proto.ProcessedTickInterval, org.qubic.archiver.proto.ProcessedTickInterval.Builder, org.qubic.archiver.proto.ProcessedTickIntervalOrBuilder> - getIntervalsFieldBuilder() { - if (intervalsBuilder_ == null) { - intervalsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.qubic.archiver.proto.ProcessedTickInterval, org.qubic.archiver.proto.ProcessedTickInterval.Builder, org.qubic.archiver.proto.ProcessedTickIntervalOrBuilder>( - intervals_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - intervals_ = null; - } - return intervalsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.ProcessedTickIntervalsPerEpoch) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.ProcessedTickIntervalsPerEpoch) - private static final org.qubic.archiver.proto.ProcessedTickIntervalsPerEpoch DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.qubic.archiver.proto.ProcessedTickIntervalsPerEpoch(); - } - - public static org.qubic.archiver.proto.ProcessedTickIntervalsPerEpoch getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProcessedTickIntervalsPerEpoch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProcessedTickIntervalsPerEpoch(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.qubic.archiver.proto.ProcessedTickIntervalsPerEpoch getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/ProcessedTickIntervalsPerEpochOrBuilder.java b/src/main/java/org/qubic/archiver/proto/ProcessedTickIntervalsPerEpochOrBuilder.java deleted file mode 100644 index 636de8e..0000000 --- a/src/main/java/org/qubic/archiver/proto/ProcessedTickIntervalsPerEpochOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface ProcessedTickIntervalsPerEpochOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.ProcessedTickIntervalsPerEpoch) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 epoch = 1; - * @return The epoch. - */ - int getEpoch(); - - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickInterval intervals = 2; - */ - java.util.List - getIntervalsList(); - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickInterval intervals = 2; - */ - org.qubic.archiver.proto.ProcessedTickInterval getIntervals(int index); - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickInterval intervals = 2; - */ - int getIntervalsCount(); - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickInterval intervals = 2; - */ - java.util.List - getIntervalsOrBuilderList(); - /** - * repeated .qubic.archiver.archive.pb.ProcessedTickInterval intervals = 2; - */ - org.qubic.archiver.proto.ProcessedTickIntervalOrBuilder getIntervalsOrBuilder( - int index); -} diff --git a/src/main/java/org/qubic/archiver/proto/ProcessedTickOrBuilder.java b/src/main/java/org/qubic/archiver/proto/ProcessedTickOrBuilder.java deleted file mode 100644 index 8698b03..0000000 --- a/src/main/java/org/qubic/archiver/proto/ProcessedTickOrBuilder.java +++ /dev/null @@ -1,21 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface ProcessedTickOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.ProcessedTick) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 tick_number = 1; - * @return The tickNumber. - */ - int getTickNumber(); - - /** - * uint32 epoch = 2; - * @return The epoch. - */ - int getEpoch(); -} diff --git a/src/main/java/org/qubic/archiver/proto/QubicArchiverProtos.java b/src/main/java/org/qubic/archiver/proto/QubicArchiverProtos.java deleted file mode 100644 index 40bf352..0000000 --- a/src/main/java/org/qubic/archiver/proto/QubicArchiverProtos.java +++ /dev/null @@ -1,955 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public final class QubicArchiverProtos { - private QubicArchiverProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_TickData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_TickData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_GetTickDataRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_GetTickDataRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_GetTickDataResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_GetTickDataResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_Transaction_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_Transaction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_TransactionStatus_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_TransactionStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_TickTransactionsStatus_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_TickTransactionsStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_NextAvailableTick_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_NextAvailableTick_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_LastProcessedTick_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_LastProcessedTick_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_GetTransactionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_GetTransactionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_GetTransactionResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_GetTransactionResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_GetTransactionStatusRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_GetTransactionStatusRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_GetTransactionStatusResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_GetTransactionStatusResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_GetTickTransactionsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_GetTickTransactionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_GetTickTransactionsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_GetTickTransactionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_GetTickApprovedTransactionsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_GetTickApprovedTransactionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_GetTickApprovedTransactionsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_GetTickApprovedTransactionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_QuorumTickData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_QuorumTickData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_QuorumTickData_QuorumDiffPerComputorEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_QuorumTickData_QuorumDiffPerComputorEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_QuorumTickStructure_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_QuorumTickStructure_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_QuorumDiff_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_QuorumDiff_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_SkippedTicksInterval_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_SkippedTicksInterval_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_SkippedTicksIntervalList_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_SkippedTicksIntervalList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_QuorumTickDataStored_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_QuorumTickDataStored_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_QuorumTickDataStored_QuorumDiffPerComputorEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_QuorumTickDataStored_QuorumDiffPerComputorEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_QuorumDiffStored_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_QuorumDiffStored_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_GetQuorumTickDataRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_GetQuorumTickDataRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_GetQuorumTickDataResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_GetQuorumTickDataResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_GetQuorumTickDataResponseStored_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_GetQuorumTickDataResponseStored_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_Computors_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_Computors_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_GetComputorsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_GetComputorsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_GetComputorsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_GetComputorsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_TransferTransactionsPerTick_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_TransferTransactionsPerTick_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_ProcessedTick_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_ProcessedTick_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_GetStatusResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_GetStatusResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_GetStatusResponse_LastProcessedTicksPerEpochEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_GetStatusResponse_LastProcessedTicksPerEpochEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_GetStatusResponse_EmptyTicksPerEpochEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_GetStatusResponse_EmptyTicksPerEpochEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_GetHealthCheckResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_GetHealthCheckResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_GetTransferTransactionsPerTickRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_GetTransferTransactionsPerTickRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_GetTransferTransactionsPerTickResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_GetTransferTransactionsPerTickResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_GetChainHashRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_GetChainHashRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_GetChainHashResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_GetChainHashResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_ProcessedTickInterval_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_ProcessedTickInterval_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_ProcessedTickIntervalsPerEpoch_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_ProcessedTickIntervalsPerEpoch_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_Tick_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_Tick_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_GetTickResponseV2_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_GetTickResponseV2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_PerTickIdentityTransfers_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_PerTickIdentityTransfers_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_GetIdentityTransfersInTickRangeResponseV2_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_GetIdentityTransfersInTickRangeResponseV2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_SendManyTransfer_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_SendManyTransfer_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_SendManyTransaction_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_SendManyTransaction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_SendManyTransactionData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_SendManyTransactionData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_GetSendManyTransactionRequestV2_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_GetSendManyTransactionRequestV2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_GetSendManyTransactionResponseV2_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_GetSendManyTransactionResponseV2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_TransactionData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_TransactionData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_GetLatestTickResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_GetLatestTickResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_GetTickRequestV2_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_GetTickRequestV2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_GetTickTransactionsResponseV2_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_GetTickTransactionsResponseV2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_GetTransactionRequestV2_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_GetTransactionRequestV2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_GetTransactionResponseV2_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_GetTransactionResponseV2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_GetTickTransactionsRequestV2_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_GetTickTransactionsRequestV2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_qubic_archiver_archive_pb_GetTransferTransactionsPerTickRequestV2_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_qubic_archiver_archive_pb_GetTransferTransactionsPerTickRequestV2_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - String[] descriptorData = { - "\n\rarchive.proto\022\031qubic.archiver.archive." + - "pb\032\034google/api/annotations.proto\032\033google" + - "/protobuf/empty.proto\"\307\001\n\010TickData\022\026\n\016co" + - "mputor_index\030\001 \001(\r\022\r\n\005epoch\030\002 \001(\r\022\023\n\013tic" + - "k_number\030\003 \001(\r\022\021\n\ttimestamp\030\004 \001(\004\022\022\n\nvar" + - "_struct\030\005 \001(\014\022\021\n\ttime_lock\030\006 \001(\014\022\027\n\017tran" + - "saction_ids\030\007 \003(\t\022\025\n\rcontract_fees\030\010 \003(\003" + - "\022\025\n\rsignature_hex\030\t \001(\t\")\n\022GetTickDataRe" + - "quest\022\023\n\013tick_number\030\001 \001(\r\"M\n\023GetTickDat" + - "aResponse\0226\n\ttick_data\030\001 \001(\0132#.qubic.arc" + - "hiver.archive.pb.TickData\"\267\001\n\013Transactio" + - "n\022\021\n\tsource_id\030\001 \001(\t\022\017\n\007dest_id\030\002 \001(\t\022\016\n" + - "\006amount\030\003 \001(\003\022\023\n\013tick_number\030\004 \001(\r\022\022\n\nin" + - "put_type\030\005 \001(\r\022\022\n\ninput_size\030\006 \001(\r\022\021\n\tin" + - "put_hex\030\007 \001(\t\022\025\n\rsignature_hex\030\010 \001(\t\022\r\n\005" + - "tx_id\030\t \001(\t\"5\n\021TransactionStatus\022\r\n\005tx_i" + - "d\030\001 \001(\t\022\021\n\tmoneyFlew\030\002 \001(\010\"\\\n\026TickTransa" + - "ctionsStatus\022B\n\014transactions\030\001 \003(\0132,.qub" + - "ic.archiver.archive.pb.TransactionStatus" + - "\"-\n\021NextAvailableTick\022\030\n\020next_tick_numbe" + - "r\030\001 \001(\r\"0\n\021LastProcessedTick\022\033\n\023last_pro" + - "cessed_tick\030\001 \001(\r\"&\n\025GetTransactionReque" + - "st\022\r\n\005tx_id\030\001 \001(\t\"U\n\026GetTransactionRespo" + - "nse\022;\n\013transaction\030\001 \001(\0132&.qubic.archive" + - "r.archive.pb.Transaction\",\n\033GetTransacti" + - "onStatusRequest\022\r\n\005tx_id\030\001 \001(\t\"h\n\034GetTra" + - "nsactionStatusResponse\022H\n\022transaction_st" + - "atus\030\001 \001(\0132,.qubic.archiver.archive.pb.T" + - "ransactionStatus\"1\n\032GetTickTransactionsR" + - "equest\022\023\n\013tick_number\030\001 \001(\r\"[\n\033GetTickTr" + - "ansactionsResponse\022<\n\014transactions\030\001 \003(\013" + - "2&.qubic.archiver.archive.pb.Transaction" + - "\"9\n\"GetTickApprovedTransactionsRequest\022\023" + - "\n\013tick_number\030\001 \001(\r\"l\n#GetTickApprovedTr" + - "ansactionsResponse\022E\n\025approved_transacti" + - "ons\030\001 \003(\0132&.qubic.archiver.archive.pb.Tr" + - "ansaction\"\254\002\n\016QuorumTickData\022M\n\025quorum_t" + - "ick_structure\030\001 \001(\0132..qubic.archiver.arc" + - "hive.pb.QuorumTickStructure\022f\n\030quorum_di" + - "ff_per_computor\030\002 \003(\0132D.qubic.archiver.a" + - "rchive.pb.QuorumTickData.QuorumDiffPerCo" + - "mputorEntry\032c\n\032QuorumDiffPerComputorEntr" + - "y\022\013\n\003key\030\001 \001(\r\0224\n\005value\030\002 \001(\0132%.qubic.ar" + - "chiver.archive.pb.QuorumDiff:\0028\001\"\363\001\n\023Quo" + - "rumTickStructure\022\r\n\005epoch\030\002 \001(\r\022\023\n\013tick_" + - "number\030\003 \001(\r\022\021\n\ttimestamp\030\004 \001(\004\022(\n prev_" + - "resource_testing_digest_hex\030\005 \001(\t\022 \n\030pre" + - "v_spectrum_digest_hex\030\006 \001(\t\022 \n\030prev_univ" + - "erse_digest_hex\030\007 \001(\t\022 \n\030prev_computer_d" + - "igest_hex\030\010 \001(\t\022\025\n\rtx_digest_hex\030\t \001(\t\"\345" + - "\001\n\nQuorumDiff\022*\n\"salted_resource_testing" + - "_digest_hex\030\001 \001(\t\022\"\n\032salted_spectrum_dig" + - "est_hex\030\002 \001(\t\022\"\n\032salted_universe_digest_" + - "hex\030\003 \001(\t\022\"\n\032salted_computer_digest_hex\030" + - "\004 \001(\t\022(\n expected_next_tick_tx_digest_he" + - "x\030\005 \001(\t\022\025\n\rsignature_hex\030\006 \001(\t\"<\n\024Skippe" + - "dTicksInterval\022\022\n\nstart_tick\030\001 \001(\r\022\020\n\010en" + - "d_tick\030\002 \001(\r\"b\n\030SkippedTicksIntervalList" + - "\022F\n\rskipped_ticks\030\001 \003(\0132/.qubic.archiver" + - ".archive.pb.SkippedTicksInterval\"\276\002\n\024Quo" + - "rumTickDataStored\022M\n\025quorum_tick_structu" + - "re\030\001 \001(\0132..qubic.archiver.archive.pb.Quo" + - "rumTickStructure\022l\n\030quorum_diff_per_comp" + - "utor\030\002 \003(\0132J.qubic.archiver.archive.pb.Q" + - "uorumTickDataStored.QuorumDiffPerComputo" + - "rEntry\032i\n\032QuorumDiffPerComputorEntry\022\013\n\003" + - "key\030\001 \001(\r\022:\n\005value\030\002 \001(\0132+.qubic.archive" + - "r.archive.pb.QuorumDiffStored:\0028\001\"S\n\020Quo" + - "rumDiffStored\022(\n expected_next_tick_tx_d" + - "igest_hex\030\005 \001(\t\022\025\n\rsignature_hex\030\006 \001(\t\"/" + - "\n\030GetQuorumTickDataRequest\022\023\n\013tick_numbe" + - "r\030\001 \001(\r\"`\n\031GetQuorumTickDataResponse\022C\n\020" + - "quorum_tick_data\030\001 \001(\0132).qubic.archiver." + - "archive.pb.QuorumTickData\"l\n\037GetQuorumTi" + - "ckDataResponseStored\022I\n\020quorum_tick_data" + - "\030\001 \001(\0132/.qubic.archiver.archive.pb.Quoru" + - "mTickDataStored\"E\n\tComputors\022\r\n\005epoch\030\001 " + - "\001(\r\022\022\n\nidentities\030\002 \003(\t\022\025\n\rsignature_hex" + - "\030\003 \001(\t\"$\n\023GetComputorsRequest\022\r\n\005epoch\030\001" + - " \001(\r\"O\n\024GetComputorsResponse\0227\n\tcomputor" + - "s\030\001 \001(\0132$.qubic.archiver.archive.pb.Comp" + - "utors\"\202\001\n\033TransferTransactionsPerTick\022\023\n" + - "\013tick_number\030\001 \001(\r\022\020\n\010identity\030\002 \001(\t\022<\n\014" + - "transactions\030\003 \003(\0132&.qubic.archiver.arch" + - "ive.pb.Transaction\"3\n\rProcessedTick\022\023\n\013t" + - "ick_number\030\001 \001(\r\022\r\n\005epoch\030\002 \001(\r\"\342\004\n\021GetS" + - "tatusResponse\022E\n\023last_processed_tick\030\001 \001" + - "(\0132(.qubic.archiver.archive.pb.Processed" + - "Tick\022t\n\036last_processed_ticks_per_epoch\030\002" + - " \003(\0132L.qubic.archiver.archive.pb.GetStat" + - "usResponse.LastProcessedTicksPerEpochEnt" + - "ry\022F\n\rskipped_ticks\030\003 \003(\0132/.qubic.archiv" + - "er.archive.pb.SkippedTicksInterval\022e\n\"pr" + - "ocessed_tick_intervals_per_epoch\030\004 \003(\01329" + - ".qubic.archiver.archive.pb.ProcessedTick" + - "IntervalsPerEpoch\022c\n\025empty_ticks_per_epo" + - "ch\030\005 \003(\0132D.qubic.archiver.archive.pb.Get" + - "StatusResponse.EmptyTicksPerEpochEntry\032A" + - "\n\037LastProcessedTicksPerEpochEntry\022\013\n\003key" + - "\030\001 \001(\r\022\r\n\005value\030\002 \001(\r:\0028\001\0329\n\027EmptyTicksP" + - "erEpochEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 \001(\r" + - ":\0028\001\"(\n\026GetHealthCheckResponse\022\016\n\006status" + - "\030\001 \001(\010\"_\n%GetTransferTransactionsPerTick" + - "Request\022\020\n\010identity\030\001 \001(\t\022\022\n\nstart_tick\030" + - "\002 \001(\r\022\020\n\010end_tick\030\003 \001(\r\"\210\001\n&GetTransferT" + - "ransactionsPerTickResponse\022^\n\036transfer_t" + - "ransactions_per_tick\030\001 \003(\01326.qubic.archi" + - "ver.archive.pb.TransferTransactionsPerTi" + - "ck\"*\n\023GetChainHashRequest\022\023\n\013tick_number" + - "\030\001 \001(\r\"*\n\024GetChainHashResponse\022\022\n\nhex_di" + - "gest\030\001 \001(\t\"T\n\025ProcessedTickInterval\022\036\n\026i" + - "nitial_processed_tick\030\001 \001(\r\022\033\n\023last_proc" + - "essed_tick\030\002 \001(\r\"t\n\036ProcessedTickInterva" + - "lsPerEpoch\022\r\n\005epoch\030\001 \001(\r\022C\n\tintervals\030\002" + - " \003(\01320.qubic.archiver.archive.pb.Process" + - "edTickInterval\"\303\001\n\004Tick\022\026\n\016computor_inde" + - "x\030\001 \001(\r\022\r\n\005epoch\030\002 \001(\r\022\023\n\013tick_number\030\003 " + - "\001(\r\022\021\n\ttimestamp\030\004 \001(\004\022\022\n\nvar_struct\030\005 \001" + - "(\014\022\021\n\ttime_lock\030\006 \001(\014\022\027\n\017transaction_ids" + - "\030\007 \003(\t\022\025\n\rcontract_fees\030\010 \003(\003\022\025\n\rsignatu" + - "re_hex\030\t \001(\t\"G\n\021GetTickResponseV2\0222\n\ttic" + - "k_Data\030\001 \001(\0132\037.qubic.archiver.archive.pb" + - ".Tick\"\203\001\n\030PerTickIdentityTransfers\022\023\n\013ti" + - "ck_number\030\001 \001(\r\022\020\n\010identity\030\002 \001(\t\022@\n\014tra" + - "nsactions\030\003 \003(\0132*.qubic.archiver.archive" + - ".pb.TransactionData\"v\n)GetIdentityTransf" + - "ersInTickRangeResponseV2\022I\n\014transactions" + - "\030\001 \003(\01323.qubic.archiver.archive.pb.PerTi" + - "ckIdentityTransfers\"3\n\020SendManyTransfer\022" + - "\017\n\007dest_id\030\001 \001(\t\022\016\n\006amount\030\002 \001(\003\"\271\001\n\023Sen" + - "dManyTransaction\022\021\n\tsource_id\030\001 \001(\t\022\023\n\013t" + - "ick_number\030\002 \001(\r\022>\n\ttransfers\030\003 \003(\0132+.qu" + - "bic.archiver.archive.pb.SendManyTransfer" + - "\022\024\n\014total_amount\030\004 \001(\003\022\025\n\rsignature_hex\030" + - "\005 \001(\t\022\r\n\005tx_id\030\006 \001(\t\"\205\001\n\027SendManyTransac" + - "tionData\022C\n\013transaction\030\002 \001(\0132..qubic.ar" + - "chiver.archive.pb.SendManyTransaction\022\021\n" + - "\ttimestamp\030\003 \001(\004\022\022\n\nmoney_flew\030\004 \001(\010\"0\n\037" + - "GetSendManyTransactionRequestV2\022\r\n\005tx_id" + - "\030\001 \001(\t\"\216\001\n GetSendManyTransactionRespons" + - "eV2\022C\n\013transaction\030\002 \001(\0132..qubic.archive" + - "r.archive.pb.SendManyTransaction\022\021\n\ttime" + - "stamp\030\003 \001(\004\022\022\n\nmoney_flew\030\004 \001(\010\"u\n\017Trans" + - "actionData\022;\n\013transaction\030\001 \001(\0132&.qubic." + - "archiver.archive.pb.Transaction\022\021\n\ttimes" + - "tamp\030\002 \001(\004\022\022\n\nmoney_flew\030\003 \001(\010\",\n\025GetLat" + - "estTickResponse\022\023\n\013latest_tick\030\001 \001(\r\"\'\n\020" + - "GetTickRequestV2\022\023\n\013tick_number\030\001 \001(\r\"a\n" + - "\035GetTickTransactionsResponseV2\022@\n\014transa" + - "ctions\030\001 \003(\0132*.qubic.archiver.archive.pb" + - ".TransactionData\"(\n\027GetTransactionReques" + - "tV2\022\r\n\005tx_id\030\001 \001(\t\"~\n\030GetTransactionResp" + - "onseV2\022;\n\013transaction\030\001 \001(\0132&.qubic.arch" + - "iver.archive.pb.Transaction\022\021\n\ttimestamp" + - "\030\002 \001(\004\022\022\n\nmoney_flew\030\003 \001(\010\"X\n\034GetTickTra" + - "nsactionsRequestV2\022\023\n\013tick_number\030\001 \001(\r\022" + - "\021\n\ttransfers\030\002 \001(\010\022\020\n\010approved\030\003 \001(\010\"\200\001\n" + - "\'GetTransferTransactionsPerTickRequestV2" + - "\022\020\n\010identity\030\001 \001(\t\022\022\n\nstart_tick\030\002 \001(\r\022\020" + - "\n\010end_tick\030\003 \001(\r\022\017\n\007sc_only\030\004 \001(\010\022\014\n\004des" + - "c\030\005 \001(\0102\323\033\n\016ArchiveService\022\245\001\n\023GetTickQu" + - "orumDataV2\022+.qubic.archiver.archive.pb.G" + - "etTickRequestV2\0324.qubic.archiver.archive" + - ".pb.GetQuorumTickDataResponse\"+\202\323\344\223\002%\022#/" + - "v2/ticks/{tick_number}/quorum-data\022\230\001\n\022G" + - "etTickChainHashV2\022+.qubic.archiver.archi" + - "ve.pb.GetTickRequestV2\032/.qubic.archiver." + - "archive.pb.GetChainHashResponse\"$\202\323\344\223\002\036\022" + - "\034/v2/ticks/{tick_number}/hash\022\236\001\n\022GetTic" + - "kStoreHashV2\022+.qubic.archiver.archive.pb" + - ".GetTickRequestV2\032/.qubic.archiver.archi" + - "ve.pb.GetChainHashResponse\"*\202\323\344\223\002$\022\"/v2/" + - "ticks/{tick_number}/store-hash\022\270\001\n\025GetTi" + - "ckTransactionsV2\0227.qubic.archiver.archiv" + - "e.pb.GetTickTransactionsRequestV2\0328.qubi" + - "c.archiver.archive.pb.GetTickTransaction" + - "sResponseV2\",\202\323\344\223\002&\022$/v2/ticks/{tick_num" + - "ber}/transactions\022\235\001\n\020GetTransactionV2\0222" + - ".qubic.archiver.archive.pb.GetTransactio" + - "nRequestV2\0323.qubic.archiver.archive.pb.G" + - "etTransactionResponseV2\" \202\323\344\223\002\032\022\030/v2/tra" + - "nsactions/{tx_id}\022\276\001\n\030GetSendManyTransac" + - "tionV2\022:.qubic.archiver.archive.pb.GetSe" + - "ndManyTransactionRequestV2\032;.qubic.archi" + - "ver.archive.pb.GetSendManyTransactionRes" + - "ponseV2\")\202\323\344\223\002#\022!/v2/transactions/{tx_id" + - "}/sendmany\022\332\001\n!GetIdentityTransfersInTic" + - "kRangeV2\022B.qubic.archiver.archive.pb.Get" + - "TransferTransactionsPerTickRequestV2\032D.q" + - "ubic.archiver.archive.pb.GetIdentityTran" + - "sfersInTickRangeResponseV2\"+\202\323\344\223\002%\022#/v2/" + - "identities/{identity}/transfers\022\227\001\n\013GetT" + - "ickData\022-.qubic.archiver.archive.pb.GetT" + - "ickDataRequest\032..qubic.archiver.archive." + - "pb.GetTickDataResponse\")\202\323\344\223\002#\022!/v1/tick" + - "s/{tick_number}/tick-data\022\260\001\n\021GetQuorumT" + - "ickData\0223.qubic.archiver.archive.pb.GetQ" + - "uorumTickDataRequest\0324.qubic.archiver.ar" + - "chive.pb.GetQuorumTickDataResponse\"0\202\323\344\223" + - "\002*\022(/v1/ticks/{tick_number}/quorum-tick-" + - "data\022\262\001\n\023GetTickTransactions\0225.qubic.arc" + - "hiver.archive.pb.GetTickTransactionsRequ" + - "est\0326.qubic.archiver.archive.pb.GetTickT" + - "ransactionsResponse\",\202\323\344\223\002&\022$/v1/ticks/{" + - "tick_number}/transactions\022\303\001\n\033GetTickTra" + - "nsferTransactions\0225.qubic.archiver.archi" + - "ve.pb.GetTickTransactionsRequest\0326.qubic" + - ".archiver.archive.pb.GetTickTransactions" + - "Response\"5\202\323\344\223\002/\022-/v1/ticks/{tick_number" + - "}/transfer-transactions\022\323\001\n\033GetTickAppro" + - "vedTransactions\022=.qubic.archiver.archive" + - ".pb.GetTickApprovedTransactionsRequest\032>" + - ".qubic.archiver.archive.pb.GetTickApprov" + - "edTransactionsResponse\"5\202\323\344\223\002/\022-/v1/tick" + - "s/{tick_number}/approved-transactions\022\233\001" + - "\n\014GetChainHash\022..qubic.archiver.archive." + - "pb.GetChainHashRequest\032/.qubic.archiver." + - "archive.pb.GetChainHashResponse\"*\202\323\344\223\002$\022" + - "\"/v1/ticks/{tick_number}/chain-hash\022\233\001\n\014" + - "GetStoreHash\022..qubic.archiver.archive.pb" + - ".GetChainHashRequest\032/.qubic.archiver.ar" + - "chive.pb.GetChainHashResponse\"*\202\323\344\223\002$\022\"/" + - "v1/ticks/{tick_number}/store-hash\022\227\001\n\016Ge" + - "tTransaction\0220.qubic.archiver.archive.pb" + - ".GetTransactionRequest\0321.qubic.archiver." + - "archive.pb.GetTransactionResponse\" \202\323\344\223\002" + - "\032\022\030/v1/transactions/{tx_id}\022\246\001\n\024GetTrans" + - "actionStatus\0226.qubic.archiver.archive.pb" + - ".GetTransactionStatusRequest\0327.qubic.arc" + - "hiver.archive.pb.GetTransactionStatusRes" + - "ponse\"\035\202\323\344\223\002\027\022\025/v1/tx-status/{tx_id}\022\336\001\n" + - "\036GetTransferTransactionsPerTick\022@.qubic." + - "archiver.archive.pb.GetTransferTransacti" + - "onsPerTickRequest\032A.qubic.archiver.archi" + - "ve.pb.GetTransferTransactionsPerTickResp" + - "onse\"7\202\323\344\223\0021\022//v1/identities/{identity}/" + - "transfer-transactions\022\225\001\n\014GetComputors\022." + - ".qubic.archiver.archive.pb.GetComputorsR" + - "equest\032/.qubic.archiver.archive.pb.GetCo" + - "mputorsResponse\"$\202\323\344\223\002\036\022\034/v1/epochs/{epo" + - "ch}/computors\022e\n\tGetStatus\022\026.google.prot" + - "obuf.Empty\032,.qubic.archiver.archive.pb.G" + - "etStatusResponse\"\022\202\323\344\223\002\014\022\n/v1/status\022q\n\r" + - "GetLatestTick\022\026.google.protobuf.Empty\0320." + - "qubic.archiver.archive.pb.GetLatestTickR" + - "esponse\"\026\202\323\344\223\002\020\022\016/v1/latestTick\022t\n\016GetHe" + - "althCheck\022\026.google.protobuf.Empty\0321.qubi" + - "c.archiver.archive.pb.GetHealthCheckResp" + - "onse\"\027\202\323\344\223\002\021\022\017/v1/healthcheckBZ\n\030org.qub" + - "ic.archiver.protoB\023QubicArchiverProtosP\001" + - "Z\'github.com/qubic/go-archiver/protobuff" + - "/b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - }); - internal_static_qubic_archiver_archive_pb_TickData_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_qubic_archiver_archive_pb_TickData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_TickData_descriptor, - new String[] { "ComputorIndex", "Epoch", "TickNumber", "Timestamp", "VarStruct", "TimeLock", "TransactionIds", "ContractFees", "SignatureHex", }); - internal_static_qubic_archiver_archive_pb_GetTickDataRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_qubic_archiver_archive_pb_GetTickDataRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_GetTickDataRequest_descriptor, - new String[] { "TickNumber", }); - internal_static_qubic_archiver_archive_pb_GetTickDataResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_qubic_archiver_archive_pb_GetTickDataResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_GetTickDataResponse_descriptor, - new String[] { "TickData", }); - internal_static_qubic_archiver_archive_pb_Transaction_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_qubic_archiver_archive_pb_Transaction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_Transaction_descriptor, - new String[] { "SourceId", "DestId", "Amount", "TickNumber", "InputType", "InputSize", "InputHex", "SignatureHex", "TxId", }); - internal_static_qubic_archiver_archive_pb_TransactionStatus_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_qubic_archiver_archive_pb_TransactionStatus_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_TransactionStatus_descriptor, - new String[] { "TxId", "MoneyFlew", }); - internal_static_qubic_archiver_archive_pb_TickTransactionsStatus_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_qubic_archiver_archive_pb_TickTransactionsStatus_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_TickTransactionsStatus_descriptor, - new String[] { "Transactions", }); - internal_static_qubic_archiver_archive_pb_NextAvailableTick_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_qubic_archiver_archive_pb_NextAvailableTick_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_NextAvailableTick_descriptor, - new String[] { "NextTickNumber", }); - internal_static_qubic_archiver_archive_pb_LastProcessedTick_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_qubic_archiver_archive_pb_LastProcessedTick_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_LastProcessedTick_descriptor, - new String[] { "LastProcessedTick", }); - internal_static_qubic_archiver_archive_pb_GetTransactionRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_qubic_archiver_archive_pb_GetTransactionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_GetTransactionRequest_descriptor, - new String[] { "TxId", }); - internal_static_qubic_archiver_archive_pb_GetTransactionResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_qubic_archiver_archive_pb_GetTransactionResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_GetTransactionResponse_descriptor, - new String[] { "Transaction", }); - internal_static_qubic_archiver_archive_pb_GetTransactionStatusRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_qubic_archiver_archive_pb_GetTransactionStatusRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_GetTransactionStatusRequest_descriptor, - new String[] { "TxId", }); - internal_static_qubic_archiver_archive_pb_GetTransactionStatusResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_qubic_archiver_archive_pb_GetTransactionStatusResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_GetTransactionStatusResponse_descriptor, - new String[] { "TransactionStatus", }); - internal_static_qubic_archiver_archive_pb_GetTickTransactionsRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_qubic_archiver_archive_pb_GetTickTransactionsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_GetTickTransactionsRequest_descriptor, - new String[] { "TickNumber", }); - internal_static_qubic_archiver_archive_pb_GetTickTransactionsResponse_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_qubic_archiver_archive_pb_GetTickTransactionsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_GetTickTransactionsResponse_descriptor, - new String[] { "Transactions", }); - internal_static_qubic_archiver_archive_pb_GetTickApprovedTransactionsRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_qubic_archiver_archive_pb_GetTickApprovedTransactionsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_GetTickApprovedTransactionsRequest_descriptor, - new String[] { "TickNumber", }); - internal_static_qubic_archiver_archive_pb_GetTickApprovedTransactionsResponse_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_qubic_archiver_archive_pb_GetTickApprovedTransactionsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_GetTickApprovedTransactionsResponse_descriptor, - new String[] { "ApprovedTransactions", }); - internal_static_qubic_archiver_archive_pb_QuorumTickData_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_qubic_archiver_archive_pb_QuorumTickData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_QuorumTickData_descriptor, - new String[] { "QuorumTickStructure", "QuorumDiffPerComputor", }); - internal_static_qubic_archiver_archive_pb_QuorumTickData_QuorumDiffPerComputorEntry_descriptor = - internal_static_qubic_archiver_archive_pb_QuorumTickData_descriptor.getNestedTypes().get(0); - internal_static_qubic_archiver_archive_pb_QuorumTickData_QuorumDiffPerComputorEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_QuorumTickData_QuorumDiffPerComputorEntry_descriptor, - new String[] { "Key", "Value", }); - internal_static_qubic_archiver_archive_pb_QuorumTickStructure_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_qubic_archiver_archive_pb_QuorumTickStructure_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_QuorumTickStructure_descriptor, - new String[] { "Epoch", "TickNumber", "Timestamp", "PrevResourceTestingDigestHex", "PrevSpectrumDigestHex", "PrevUniverseDigestHex", "PrevComputerDigestHex", "TxDigestHex", }); - internal_static_qubic_archiver_archive_pb_QuorumDiff_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_qubic_archiver_archive_pb_QuorumDiff_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_QuorumDiff_descriptor, - new String[] { "SaltedResourceTestingDigestHex", "SaltedSpectrumDigestHex", "SaltedUniverseDigestHex", "SaltedComputerDigestHex", "ExpectedNextTickTxDigestHex", "SignatureHex", }); - internal_static_qubic_archiver_archive_pb_SkippedTicksInterval_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_qubic_archiver_archive_pb_SkippedTicksInterval_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_SkippedTicksInterval_descriptor, - new String[] { "StartTick", "EndTick", }); - internal_static_qubic_archiver_archive_pb_SkippedTicksIntervalList_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_qubic_archiver_archive_pb_SkippedTicksIntervalList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_SkippedTicksIntervalList_descriptor, - new String[] { "SkippedTicks", }); - internal_static_qubic_archiver_archive_pb_QuorumTickDataStored_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_qubic_archiver_archive_pb_QuorumTickDataStored_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_QuorumTickDataStored_descriptor, - new String[] { "QuorumTickStructure", "QuorumDiffPerComputor", }); - internal_static_qubic_archiver_archive_pb_QuorumTickDataStored_QuorumDiffPerComputorEntry_descriptor = - internal_static_qubic_archiver_archive_pb_QuorumTickDataStored_descriptor.getNestedTypes().get(0); - internal_static_qubic_archiver_archive_pb_QuorumTickDataStored_QuorumDiffPerComputorEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_QuorumTickDataStored_QuorumDiffPerComputorEntry_descriptor, - new String[] { "Key", "Value", }); - internal_static_qubic_archiver_archive_pb_QuorumDiffStored_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_qubic_archiver_archive_pb_QuorumDiffStored_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_QuorumDiffStored_descriptor, - new String[] { "ExpectedNextTickTxDigestHex", "SignatureHex", }); - internal_static_qubic_archiver_archive_pb_GetQuorumTickDataRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_qubic_archiver_archive_pb_GetQuorumTickDataRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_GetQuorumTickDataRequest_descriptor, - new String[] { "TickNumber", }); - internal_static_qubic_archiver_archive_pb_GetQuorumTickDataResponse_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_qubic_archiver_archive_pb_GetQuorumTickDataResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_GetQuorumTickDataResponse_descriptor, - new String[] { "QuorumTickData", }); - internal_static_qubic_archiver_archive_pb_GetQuorumTickDataResponseStored_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_qubic_archiver_archive_pb_GetQuorumTickDataResponseStored_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_GetQuorumTickDataResponseStored_descriptor, - new String[] { "QuorumTickData", }); - internal_static_qubic_archiver_archive_pb_Computors_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_qubic_archiver_archive_pb_Computors_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_Computors_descriptor, - new String[] { "Epoch", "Identities", "SignatureHex", }); - internal_static_qubic_archiver_archive_pb_GetComputorsRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_qubic_archiver_archive_pb_GetComputorsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_GetComputorsRequest_descriptor, - new String[] { "Epoch", }); - internal_static_qubic_archiver_archive_pb_GetComputorsResponse_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_qubic_archiver_archive_pb_GetComputorsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_GetComputorsResponse_descriptor, - new String[] { "Computors", }); - internal_static_qubic_archiver_archive_pb_TransferTransactionsPerTick_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_qubic_archiver_archive_pb_TransferTransactionsPerTick_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_TransferTransactionsPerTick_descriptor, - new String[] { "TickNumber", "Identity", "Transactions", }); - internal_static_qubic_archiver_archive_pb_ProcessedTick_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_qubic_archiver_archive_pb_ProcessedTick_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_ProcessedTick_descriptor, - new String[] { "TickNumber", "Epoch", }); - internal_static_qubic_archiver_archive_pb_GetStatusResponse_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_qubic_archiver_archive_pb_GetStatusResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_GetStatusResponse_descriptor, - new String[] { "LastProcessedTick", "LastProcessedTicksPerEpoch", "SkippedTicks", "ProcessedTickIntervalsPerEpoch", "EmptyTicksPerEpoch", }); - internal_static_qubic_archiver_archive_pb_GetStatusResponse_LastProcessedTicksPerEpochEntry_descriptor = - internal_static_qubic_archiver_archive_pb_GetStatusResponse_descriptor.getNestedTypes().get(0); - internal_static_qubic_archiver_archive_pb_GetStatusResponse_LastProcessedTicksPerEpochEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_GetStatusResponse_LastProcessedTicksPerEpochEntry_descriptor, - new String[] { "Key", "Value", }); - internal_static_qubic_archiver_archive_pb_GetStatusResponse_EmptyTicksPerEpochEntry_descriptor = - internal_static_qubic_archiver_archive_pb_GetStatusResponse_descriptor.getNestedTypes().get(1); - internal_static_qubic_archiver_archive_pb_GetStatusResponse_EmptyTicksPerEpochEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_GetStatusResponse_EmptyTicksPerEpochEntry_descriptor, - new String[] { "Key", "Value", }); - internal_static_qubic_archiver_archive_pb_GetHealthCheckResponse_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_qubic_archiver_archive_pb_GetHealthCheckResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_GetHealthCheckResponse_descriptor, - new String[] { "Status", }); - internal_static_qubic_archiver_archive_pb_GetTransferTransactionsPerTickRequest_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_qubic_archiver_archive_pb_GetTransferTransactionsPerTickRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_GetTransferTransactionsPerTickRequest_descriptor, - new String[] { "Identity", "StartTick", "EndTick", }); - internal_static_qubic_archiver_archive_pb_GetTransferTransactionsPerTickResponse_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_qubic_archiver_archive_pb_GetTransferTransactionsPerTickResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_GetTransferTransactionsPerTickResponse_descriptor, - new String[] { "TransferTransactionsPerTick", }); - internal_static_qubic_archiver_archive_pb_GetChainHashRequest_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_qubic_archiver_archive_pb_GetChainHashRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_GetChainHashRequest_descriptor, - new String[] { "TickNumber", }); - internal_static_qubic_archiver_archive_pb_GetChainHashResponse_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_qubic_archiver_archive_pb_GetChainHashResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_GetChainHashResponse_descriptor, - new String[] { "HexDigest", }); - internal_static_qubic_archiver_archive_pb_ProcessedTickInterval_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_qubic_archiver_archive_pb_ProcessedTickInterval_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_ProcessedTickInterval_descriptor, - new String[] { "InitialProcessedTick", "LastProcessedTick", }); - internal_static_qubic_archiver_archive_pb_ProcessedTickIntervalsPerEpoch_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_qubic_archiver_archive_pb_ProcessedTickIntervalsPerEpoch_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_ProcessedTickIntervalsPerEpoch_descriptor, - new String[] { "Epoch", "Intervals", }); - internal_static_qubic_archiver_archive_pb_Tick_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_qubic_archiver_archive_pb_Tick_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_Tick_descriptor, - new String[] { "ComputorIndex", "Epoch", "TickNumber", "Timestamp", "VarStruct", "TimeLock", "TransactionIds", "ContractFees", "SignatureHex", }); - internal_static_qubic_archiver_archive_pb_GetTickResponseV2_descriptor = - getDescriptor().getMessageTypes().get(40); - internal_static_qubic_archiver_archive_pb_GetTickResponseV2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_GetTickResponseV2_descriptor, - new String[] { "TickData", }); - internal_static_qubic_archiver_archive_pb_PerTickIdentityTransfers_descriptor = - getDescriptor().getMessageTypes().get(41); - internal_static_qubic_archiver_archive_pb_PerTickIdentityTransfers_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_PerTickIdentityTransfers_descriptor, - new String[] { "TickNumber", "Identity", "Transactions", }); - internal_static_qubic_archiver_archive_pb_GetIdentityTransfersInTickRangeResponseV2_descriptor = - getDescriptor().getMessageTypes().get(42); - internal_static_qubic_archiver_archive_pb_GetIdentityTransfersInTickRangeResponseV2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_GetIdentityTransfersInTickRangeResponseV2_descriptor, - new String[] { "Transactions", }); - internal_static_qubic_archiver_archive_pb_SendManyTransfer_descriptor = - getDescriptor().getMessageTypes().get(43); - internal_static_qubic_archiver_archive_pb_SendManyTransfer_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_SendManyTransfer_descriptor, - new String[] { "DestId", "Amount", }); - internal_static_qubic_archiver_archive_pb_SendManyTransaction_descriptor = - getDescriptor().getMessageTypes().get(44); - internal_static_qubic_archiver_archive_pb_SendManyTransaction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_SendManyTransaction_descriptor, - new String[] { "SourceId", "TickNumber", "Transfers", "TotalAmount", "SignatureHex", "TxId", }); - internal_static_qubic_archiver_archive_pb_SendManyTransactionData_descriptor = - getDescriptor().getMessageTypes().get(45); - internal_static_qubic_archiver_archive_pb_SendManyTransactionData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_SendManyTransactionData_descriptor, - new String[] { "Transaction", "Timestamp", "MoneyFlew", }); - internal_static_qubic_archiver_archive_pb_GetSendManyTransactionRequestV2_descriptor = - getDescriptor().getMessageTypes().get(46); - internal_static_qubic_archiver_archive_pb_GetSendManyTransactionRequestV2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_GetSendManyTransactionRequestV2_descriptor, - new String[] { "TxId", }); - internal_static_qubic_archiver_archive_pb_GetSendManyTransactionResponseV2_descriptor = - getDescriptor().getMessageTypes().get(47); - internal_static_qubic_archiver_archive_pb_GetSendManyTransactionResponseV2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_GetSendManyTransactionResponseV2_descriptor, - new String[] { "Transaction", "Timestamp", "MoneyFlew", }); - internal_static_qubic_archiver_archive_pb_TransactionData_descriptor = - getDescriptor().getMessageTypes().get(48); - internal_static_qubic_archiver_archive_pb_TransactionData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_TransactionData_descriptor, - new String[] { "Transaction", "Timestamp", "MoneyFlew", }); - internal_static_qubic_archiver_archive_pb_GetLatestTickResponse_descriptor = - getDescriptor().getMessageTypes().get(49); - internal_static_qubic_archiver_archive_pb_GetLatestTickResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_GetLatestTickResponse_descriptor, - new String[] { "LatestTick", }); - internal_static_qubic_archiver_archive_pb_GetTickRequestV2_descriptor = - getDescriptor().getMessageTypes().get(50); - internal_static_qubic_archiver_archive_pb_GetTickRequestV2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_GetTickRequestV2_descriptor, - new String[] { "TickNumber", }); - internal_static_qubic_archiver_archive_pb_GetTickTransactionsResponseV2_descriptor = - getDescriptor().getMessageTypes().get(51); - internal_static_qubic_archiver_archive_pb_GetTickTransactionsResponseV2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_GetTickTransactionsResponseV2_descriptor, - new String[] { "Transactions", }); - internal_static_qubic_archiver_archive_pb_GetTransactionRequestV2_descriptor = - getDescriptor().getMessageTypes().get(52); - internal_static_qubic_archiver_archive_pb_GetTransactionRequestV2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_GetTransactionRequestV2_descriptor, - new String[] { "TxId", }); - internal_static_qubic_archiver_archive_pb_GetTransactionResponseV2_descriptor = - getDescriptor().getMessageTypes().get(53); - internal_static_qubic_archiver_archive_pb_GetTransactionResponseV2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_GetTransactionResponseV2_descriptor, - new String[] { "Transaction", "Timestamp", "MoneyFlew", }); - internal_static_qubic_archiver_archive_pb_GetTickTransactionsRequestV2_descriptor = - getDescriptor().getMessageTypes().get(54); - internal_static_qubic_archiver_archive_pb_GetTickTransactionsRequestV2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_GetTickTransactionsRequestV2_descriptor, - new String[] { "TickNumber", "Transfers", "Approved", }); - internal_static_qubic_archiver_archive_pb_GetTransferTransactionsPerTickRequestV2_descriptor = - getDescriptor().getMessageTypes().get(55); - internal_static_qubic_archiver_archive_pb_GetTransferTransactionsPerTickRequestV2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_qubic_archiver_archive_pb_GetTransferTransactionsPerTickRequestV2_descriptor, - new String[] { "Identity", "StartTick", "EndTick", "ScOnly", "Desc", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/org/qubic/archiver/proto/QuorumDiff.java b/src/main/java/org/qubic/archiver/proto/QuorumDiff.java deleted file mode 100644 index 145179a..0000000 --- a/src/main/java/org/qubic/archiver/proto/QuorumDiff.java +++ /dev/null @@ -1,1247 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.QuorumDiff} - */ -public final class QuorumDiff extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.QuorumDiff) - QuorumDiffOrBuilder { -private static final long serialVersionUID = 0L; - // Use QuorumDiff.newBuilder() to construct. - private QuorumDiff(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QuorumDiff() { - saltedResourceTestingDigestHex_ = ""; - saltedSpectrumDigestHex_ = ""; - saltedUniverseDigestHex_ = ""; - saltedComputerDigestHex_ = ""; - expectedNextTickTxDigestHex_ = ""; - signatureHex_ = ""; - } - - @Override - @SuppressWarnings({"unused"}) - protected Object newInstance( - UnusedPrivateParameter unused) { - return new QuorumDiff(); - } - - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QuorumDiff( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - String s = input.readStringRequireUtf8(); - - saltedResourceTestingDigestHex_ = s; - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - saltedSpectrumDigestHex_ = s; - break; - } - case 26: { - String s = input.readStringRequireUtf8(); - - saltedUniverseDigestHex_ = s; - break; - } - case 34: { - String s = input.readStringRequireUtf8(); - - saltedComputerDigestHex_ = s; - break; - } - case 42: { - String s = input.readStringRequireUtf8(); - - expectedNextTickTxDigestHex_ = s; - break; - } - case 50: { - String s = input.readStringRequireUtf8(); - - signatureHex_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_QuorumDiff_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_QuorumDiff_fieldAccessorTable - .ensureFieldAccessorsInitialized( - QuorumDiff.class, Builder.class); - } - - public static final int SALTED_RESOURCE_TESTING_DIGEST_HEX_FIELD_NUMBER = 1; - private volatile Object saltedResourceTestingDigestHex_; - /** - * string salted_resource_testing_digest_hex = 1; - * @return The saltedResourceTestingDigestHex. - */ - @Override - public String getSaltedResourceTestingDigestHex() { - Object ref = saltedResourceTestingDigestHex_; - if (ref instanceof String) { - return (String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - saltedResourceTestingDigestHex_ = s; - return s; - } - } - /** - * string salted_resource_testing_digest_hex = 1; - * @return The bytes for saltedResourceTestingDigestHex. - */ - @Override - public com.google.protobuf.ByteString - getSaltedResourceTestingDigestHexBytes() { - Object ref = saltedResourceTestingDigestHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - saltedResourceTestingDigestHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SALTED_SPECTRUM_DIGEST_HEX_FIELD_NUMBER = 2; - private volatile Object saltedSpectrumDigestHex_; - /** - * string salted_spectrum_digest_hex = 2; - * @return The saltedSpectrumDigestHex. - */ - @Override - public String getSaltedSpectrumDigestHex() { - Object ref = saltedSpectrumDigestHex_; - if (ref instanceof String) { - return (String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - saltedSpectrumDigestHex_ = s; - return s; - } - } - /** - * string salted_spectrum_digest_hex = 2; - * @return The bytes for saltedSpectrumDigestHex. - */ - @Override - public com.google.protobuf.ByteString - getSaltedSpectrumDigestHexBytes() { - Object ref = saltedSpectrumDigestHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - saltedSpectrumDigestHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SALTED_UNIVERSE_DIGEST_HEX_FIELD_NUMBER = 3; - private volatile Object saltedUniverseDigestHex_; - /** - * string salted_universe_digest_hex = 3; - * @return The saltedUniverseDigestHex. - */ - @Override - public String getSaltedUniverseDigestHex() { - Object ref = saltedUniverseDigestHex_; - if (ref instanceof String) { - return (String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - saltedUniverseDigestHex_ = s; - return s; - } - } - /** - * string salted_universe_digest_hex = 3; - * @return The bytes for saltedUniverseDigestHex. - */ - @Override - public com.google.protobuf.ByteString - getSaltedUniverseDigestHexBytes() { - Object ref = saltedUniverseDigestHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - saltedUniverseDigestHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SALTED_COMPUTER_DIGEST_HEX_FIELD_NUMBER = 4; - private volatile Object saltedComputerDigestHex_; - /** - * string salted_computer_digest_hex = 4; - * @return The saltedComputerDigestHex. - */ - @Override - public String getSaltedComputerDigestHex() { - Object ref = saltedComputerDigestHex_; - if (ref instanceof String) { - return (String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - saltedComputerDigestHex_ = s; - return s; - } - } - /** - * string salted_computer_digest_hex = 4; - * @return The bytes for saltedComputerDigestHex. - */ - @Override - public com.google.protobuf.ByteString - getSaltedComputerDigestHexBytes() { - Object ref = saltedComputerDigestHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - saltedComputerDigestHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EXPECTED_NEXT_TICK_TX_DIGEST_HEX_FIELD_NUMBER = 5; - private volatile Object expectedNextTickTxDigestHex_; - /** - * string expected_next_tick_tx_digest_hex = 5; - * @return The expectedNextTickTxDigestHex. - */ - @Override - public String getExpectedNextTickTxDigestHex() { - Object ref = expectedNextTickTxDigestHex_; - if (ref instanceof String) { - return (String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - expectedNextTickTxDigestHex_ = s; - return s; - } - } - /** - * string expected_next_tick_tx_digest_hex = 5; - * @return The bytes for expectedNextTickTxDigestHex. - */ - @Override - public com.google.protobuf.ByteString - getExpectedNextTickTxDigestHexBytes() { - Object ref = expectedNextTickTxDigestHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - expectedNextTickTxDigestHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SIGNATURE_HEX_FIELD_NUMBER = 6; - private volatile Object signatureHex_; - /** - * string signature_hex = 6; - * @return The signatureHex. - */ - @Override - public String getSignatureHex() { - Object ref = signatureHex_; - if (ref instanceof String) { - return (String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - signatureHex_ = s; - return s; - } - } - /** - * string signature_hex = 6; - * @return The bytes for signatureHex. - */ - @Override - public com.google.protobuf.ByteString - getSignatureHexBytes() { - Object ref = signatureHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - signatureHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getSaltedResourceTestingDigestHexBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, saltedResourceTestingDigestHex_); - } - if (!getSaltedSpectrumDigestHexBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, saltedSpectrumDigestHex_); - } - if (!getSaltedUniverseDigestHexBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, saltedUniverseDigestHex_); - } - if (!getSaltedComputerDigestHexBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, saltedComputerDigestHex_); - } - if (!getExpectedNextTickTxDigestHexBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, expectedNextTickTxDigestHex_); - } - if (!getSignatureHexBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, signatureHex_); - } - unknownFields.writeTo(output); - } - - @Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getSaltedResourceTestingDigestHexBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, saltedResourceTestingDigestHex_); - } - if (!getSaltedSpectrumDigestHexBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, saltedSpectrumDigestHex_); - } - if (!getSaltedUniverseDigestHexBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, saltedUniverseDigestHex_); - } - if (!getSaltedComputerDigestHexBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, saltedComputerDigestHex_); - } - if (!getExpectedNextTickTxDigestHexBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, expectedNextTickTxDigestHex_); - } - if (!getSignatureHexBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, signatureHex_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @Override - public boolean equals(final Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof QuorumDiff)) { - return super.equals(obj); - } - QuorumDiff other = (QuorumDiff) obj; - - if (!getSaltedResourceTestingDigestHex() - .equals(other.getSaltedResourceTestingDigestHex())) return false; - if (!getSaltedSpectrumDigestHex() - .equals(other.getSaltedSpectrumDigestHex())) return false; - if (!getSaltedUniverseDigestHex() - .equals(other.getSaltedUniverseDigestHex())) return false; - if (!getSaltedComputerDigestHex() - .equals(other.getSaltedComputerDigestHex())) return false; - if (!getExpectedNextTickTxDigestHex() - .equals(other.getExpectedNextTickTxDigestHex())) return false; - if (!getSignatureHex() - .equals(other.getSignatureHex())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SALTED_RESOURCE_TESTING_DIGEST_HEX_FIELD_NUMBER; - hash = (53 * hash) + getSaltedResourceTestingDigestHex().hashCode(); - hash = (37 * hash) + SALTED_SPECTRUM_DIGEST_HEX_FIELD_NUMBER; - hash = (53 * hash) + getSaltedSpectrumDigestHex().hashCode(); - hash = (37 * hash) + SALTED_UNIVERSE_DIGEST_HEX_FIELD_NUMBER; - hash = (53 * hash) + getSaltedUniverseDigestHex().hashCode(); - hash = (37 * hash) + SALTED_COMPUTER_DIGEST_HEX_FIELD_NUMBER; - hash = (53 * hash) + getSaltedComputerDigestHex().hashCode(); - hash = (37 * hash) + EXPECTED_NEXT_TICK_TX_DIGEST_HEX_FIELD_NUMBER; - hash = (53 * hash) + getExpectedNextTickTxDigestHex().hashCode(); - hash = (37 * hash) + SIGNATURE_HEX_FIELD_NUMBER; - hash = (53 * hash) + getSignatureHex().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static QuorumDiff parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static QuorumDiff parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static QuorumDiff parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static QuorumDiff parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static QuorumDiff parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static QuorumDiff parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static QuorumDiff parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static QuorumDiff 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 QuorumDiff parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static QuorumDiff 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 QuorumDiff parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static QuorumDiff parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(QuorumDiff prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.QuorumDiff} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.QuorumDiff) - QuorumDiffOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_QuorumDiff_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_QuorumDiff_fieldAccessorTable - .ensureFieldAccessorsInitialized( - QuorumDiff.class, Builder.class); - } - - // Construct using org.qubic.archiver.proto.QuorumDiff.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @Override - public Builder clear() { - super.clear(); - saltedResourceTestingDigestHex_ = ""; - - saltedSpectrumDigestHex_ = ""; - - saltedUniverseDigestHex_ = ""; - - saltedComputerDigestHex_ = ""; - - expectedNextTickTxDigestHex_ = ""; - - signatureHex_ = ""; - - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_QuorumDiff_descriptor; - } - - @Override - public QuorumDiff getDefaultInstanceForType() { - return QuorumDiff.getDefaultInstance(); - } - - @Override - public QuorumDiff build() { - QuorumDiff result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public QuorumDiff buildPartial() { - QuorumDiff result = new QuorumDiff(this); - result.saltedResourceTestingDigestHex_ = saltedResourceTestingDigestHex_; - result.saltedSpectrumDigestHex_ = saltedSpectrumDigestHex_; - result.saltedUniverseDigestHex_ = saltedUniverseDigestHex_; - result.saltedComputerDigestHex_ = saltedComputerDigestHex_; - result.expectedNextTickTxDigestHex_ = expectedNextTickTxDigestHex_; - result.signatureHex_ = signatureHex_; - onBuilt(); - return result; - } - - @Override - public Builder clone() { - return super.clone(); - } - @Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.setField(field, value); - } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return super.setRepeatedField(field, index, value); - } - @Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.addRepeatedField(field, value); - } - @Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof QuorumDiff) { - return mergeFrom((QuorumDiff)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(QuorumDiff other) { - if (other == QuorumDiff.getDefaultInstance()) return this; - if (!other.getSaltedResourceTestingDigestHex().isEmpty()) { - saltedResourceTestingDigestHex_ = other.saltedResourceTestingDigestHex_; - onChanged(); - } - if (!other.getSaltedSpectrumDigestHex().isEmpty()) { - saltedSpectrumDigestHex_ = other.saltedSpectrumDigestHex_; - onChanged(); - } - if (!other.getSaltedUniverseDigestHex().isEmpty()) { - saltedUniverseDigestHex_ = other.saltedUniverseDigestHex_; - onChanged(); - } - if (!other.getSaltedComputerDigestHex().isEmpty()) { - saltedComputerDigestHex_ = other.saltedComputerDigestHex_; - onChanged(); - } - if (!other.getExpectedNextTickTxDigestHex().isEmpty()) { - expectedNextTickTxDigestHex_ = other.expectedNextTickTxDigestHex_; - onChanged(); - } - if (!other.getSignatureHex().isEmpty()) { - signatureHex_ = other.signatureHex_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - QuorumDiff parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (QuorumDiff) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private Object saltedResourceTestingDigestHex_ = ""; - /** - * string salted_resource_testing_digest_hex = 1; - * @return The saltedResourceTestingDigestHex. - */ - public String getSaltedResourceTestingDigestHex() { - Object ref = saltedResourceTestingDigestHex_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - saltedResourceTestingDigestHex_ = s; - return s; - } else { - return (String) ref; - } - } - /** - * string salted_resource_testing_digest_hex = 1; - * @return The bytes for saltedResourceTestingDigestHex. - */ - public com.google.protobuf.ByteString - getSaltedResourceTestingDigestHexBytes() { - Object ref = saltedResourceTestingDigestHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - saltedResourceTestingDigestHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string salted_resource_testing_digest_hex = 1; - * @param value The saltedResourceTestingDigestHex to set. - * @return This builder for chaining. - */ - public Builder setSaltedResourceTestingDigestHex( - String value) { - if (value == null) { - throw new NullPointerException(); - } - - saltedResourceTestingDigestHex_ = value; - onChanged(); - return this; - } - /** - * string salted_resource_testing_digest_hex = 1; - * @return This builder for chaining. - */ - public Builder clearSaltedResourceTestingDigestHex() { - - saltedResourceTestingDigestHex_ = getDefaultInstance().getSaltedResourceTestingDigestHex(); - onChanged(); - return this; - } - /** - * string salted_resource_testing_digest_hex = 1; - * @param value The bytes for saltedResourceTestingDigestHex to set. - * @return This builder for chaining. - */ - public Builder setSaltedResourceTestingDigestHexBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - saltedResourceTestingDigestHex_ = value; - onChanged(); - return this; - } - - private Object saltedSpectrumDigestHex_ = ""; - /** - * string salted_spectrum_digest_hex = 2; - * @return The saltedSpectrumDigestHex. - */ - public String getSaltedSpectrumDigestHex() { - Object ref = saltedSpectrumDigestHex_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - saltedSpectrumDigestHex_ = s; - return s; - } else { - return (String) ref; - } - } - /** - * string salted_spectrum_digest_hex = 2; - * @return The bytes for saltedSpectrumDigestHex. - */ - public com.google.protobuf.ByteString - getSaltedSpectrumDigestHexBytes() { - Object ref = saltedSpectrumDigestHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - saltedSpectrumDigestHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string salted_spectrum_digest_hex = 2; - * @param value The saltedSpectrumDigestHex to set. - * @return This builder for chaining. - */ - public Builder setSaltedSpectrumDigestHex( - String value) { - if (value == null) { - throw new NullPointerException(); - } - - saltedSpectrumDigestHex_ = value; - onChanged(); - return this; - } - /** - * string salted_spectrum_digest_hex = 2; - * @return This builder for chaining. - */ - public Builder clearSaltedSpectrumDigestHex() { - - saltedSpectrumDigestHex_ = getDefaultInstance().getSaltedSpectrumDigestHex(); - onChanged(); - return this; - } - /** - * string salted_spectrum_digest_hex = 2; - * @param value The bytes for saltedSpectrumDigestHex to set. - * @return This builder for chaining. - */ - public Builder setSaltedSpectrumDigestHexBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - saltedSpectrumDigestHex_ = value; - onChanged(); - return this; - } - - private Object saltedUniverseDigestHex_ = ""; - /** - * string salted_universe_digest_hex = 3; - * @return The saltedUniverseDigestHex. - */ - public String getSaltedUniverseDigestHex() { - Object ref = saltedUniverseDigestHex_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - saltedUniverseDigestHex_ = s; - return s; - } else { - return (String) ref; - } - } - /** - * string salted_universe_digest_hex = 3; - * @return The bytes for saltedUniverseDigestHex. - */ - public com.google.protobuf.ByteString - getSaltedUniverseDigestHexBytes() { - Object ref = saltedUniverseDigestHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - saltedUniverseDigestHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string salted_universe_digest_hex = 3; - * @param value The saltedUniverseDigestHex to set. - * @return This builder for chaining. - */ - public Builder setSaltedUniverseDigestHex( - String value) { - if (value == null) { - throw new NullPointerException(); - } - - saltedUniverseDigestHex_ = value; - onChanged(); - return this; - } - /** - * string salted_universe_digest_hex = 3; - * @return This builder for chaining. - */ - public Builder clearSaltedUniverseDigestHex() { - - saltedUniverseDigestHex_ = getDefaultInstance().getSaltedUniverseDigestHex(); - onChanged(); - return this; - } - /** - * string salted_universe_digest_hex = 3; - * @param value The bytes for saltedUniverseDigestHex to set. - * @return This builder for chaining. - */ - public Builder setSaltedUniverseDigestHexBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - saltedUniverseDigestHex_ = value; - onChanged(); - return this; - } - - private Object saltedComputerDigestHex_ = ""; - /** - * string salted_computer_digest_hex = 4; - * @return The saltedComputerDigestHex. - */ - public String getSaltedComputerDigestHex() { - Object ref = saltedComputerDigestHex_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - saltedComputerDigestHex_ = s; - return s; - } else { - return (String) ref; - } - } - /** - * string salted_computer_digest_hex = 4; - * @return The bytes for saltedComputerDigestHex. - */ - public com.google.protobuf.ByteString - getSaltedComputerDigestHexBytes() { - Object ref = saltedComputerDigestHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - saltedComputerDigestHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string salted_computer_digest_hex = 4; - * @param value The saltedComputerDigestHex to set. - * @return This builder for chaining. - */ - public Builder setSaltedComputerDigestHex( - String value) { - if (value == null) { - throw new NullPointerException(); - } - - saltedComputerDigestHex_ = value; - onChanged(); - return this; - } - /** - * string salted_computer_digest_hex = 4; - * @return This builder for chaining. - */ - public Builder clearSaltedComputerDigestHex() { - - saltedComputerDigestHex_ = getDefaultInstance().getSaltedComputerDigestHex(); - onChanged(); - return this; - } - /** - * string salted_computer_digest_hex = 4; - * @param value The bytes for saltedComputerDigestHex to set. - * @return This builder for chaining. - */ - public Builder setSaltedComputerDigestHexBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - saltedComputerDigestHex_ = value; - onChanged(); - return this; - } - - private Object expectedNextTickTxDigestHex_ = ""; - /** - * string expected_next_tick_tx_digest_hex = 5; - * @return The expectedNextTickTxDigestHex. - */ - public String getExpectedNextTickTxDigestHex() { - Object ref = expectedNextTickTxDigestHex_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - expectedNextTickTxDigestHex_ = s; - return s; - } else { - return (String) ref; - } - } - /** - * string expected_next_tick_tx_digest_hex = 5; - * @return The bytes for expectedNextTickTxDigestHex. - */ - public com.google.protobuf.ByteString - getExpectedNextTickTxDigestHexBytes() { - Object ref = expectedNextTickTxDigestHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - expectedNextTickTxDigestHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string expected_next_tick_tx_digest_hex = 5; - * @param value The expectedNextTickTxDigestHex to set. - * @return This builder for chaining. - */ - public Builder setExpectedNextTickTxDigestHex( - String value) { - if (value == null) { - throw new NullPointerException(); - } - - expectedNextTickTxDigestHex_ = value; - onChanged(); - return this; - } - /** - * string expected_next_tick_tx_digest_hex = 5; - * @return This builder for chaining. - */ - public Builder clearExpectedNextTickTxDigestHex() { - - expectedNextTickTxDigestHex_ = getDefaultInstance().getExpectedNextTickTxDigestHex(); - onChanged(); - return this; - } - /** - * string expected_next_tick_tx_digest_hex = 5; - * @param value The bytes for expectedNextTickTxDigestHex to set. - * @return This builder for chaining. - */ - public Builder setExpectedNextTickTxDigestHexBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - expectedNextTickTxDigestHex_ = value; - onChanged(); - return this; - } - - private Object signatureHex_ = ""; - /** - * string signature_hex = 6; - * @return The signatureHex. - */ - public String getSignatureHex() { - Object ref = signatureHex_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - signatureHex_ = s; - return s; - } else { - return (String) ref; - } - } - /** - * string signature_hex = 6; - * @return The bytes for signatureHex. - */ - public com.google.protobuf.ByteString - getSignatureHexBytes() { - Object ref = signatureHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - signatureHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string signature_hex = 6; - * @param value The signatureHex to set. - * @return This builder for chaining. - */ - public Builder setSignatureHex( - String value) { - if (value == null) { - throw new NullPointerException(); - } - - signatureHex_ = value; - onChanged(); - return this; - } - /** - * string signature_hex = 6; - * @return This builder for chaining. - */ - public Builder clearSignatureHex() { - - signatureHex_ = getDefaultInstance().getSignatureHex(); - onChanged(); - return this; - } - /** - * string signature_hex = 6; - * @param value The bytes for signatureHex to set. - * @return This builder for chaining. - */ - public Builder setSignatureHexBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - signatureHex_ = value; - onChanged(); - return this; - } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.QuorumDiff) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.QuorumDiff) - private static final QuorumDiff DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new QuorumDiff(); - } - - public static QuorumDiff getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public QuorumDiff parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QuorumDiff(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public QuorumDiff getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/QuorumDiffOrBuilder.java b/src/main/java/org/qubic/archiver/proto/QuorumDiffOrBuilder.java deleted file mode 100644 index c3f3172..0000000 --- a/src/main/java/org/qubic/archiver/proto/QuorumDiffOrBuilder.java +++ /dev/null @@ -1,81 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface QuorumDiffOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.QuorumDiff) - com.google.protobuf.MessageOrBuilder { - - /** - * string salted_resource_testing_digest_hex = 1; - * @return The saltedResourceTestingDigestHex. - */ - String getSaltedResourceTestingDigestHex(); - /** - * string salted_resource_testing_digest_hex = 1; - * @return The bytes for saltedResourceTestingDigestHex. - */ - com.google.protobuf.ByteString - getSaltedResourceTestingDigestHexBytes(); - - /** - * string salted_spectrum_digest_hex = 2; - * @return The saltedSpectrumDigestHex. - */ - String getSaltedSpectrumDigestHex(); - /** - * string salted_spectrum_digest_hex = 2; - * @return The bytes for saltedSpectrumDigestHex. - */ - com.google.protobuf.ByteString - getSaltedSpectrumDigestHexBytes(); - - /** - * string salted_universe_digest_hex = 3; - * @return The saltedUniverseDigestHex. - */ - String getSaltedUniverseDigestHex(); - /** - * string salted_universe_digest_hex = 3; - * @return The bytes for saltedUniverseDigestHex. - */ - com.google.protobuf.ByteString - getSaltedUniverseDigestHexBytes(); - - /** - * string salted_computer_digest_hex = 4; - * @return The saltedComputerDigestHex. - */ - String getSaltedComputerDigestHex(); - /** - * string salted_computer_digest_hex = 4; - * @return The bytes for saltedComputerDigestHex. - */ - com.google.protobuf.ByteString - getSaltedComputerDigestHexBytes(); - - /** - * string expected_next_tick_tx_digest_hex = 5; - * @return The expectedNextTickTxDigestHex. - */ - String getExpectedNextTickTxDigestHex(); - /** - * string expected_next_tick_tx_digest_hex = 5; - * @return The bytes for expectedNextTickTxDigestHex. - */ - com.google.protobuf.ByteString - getExpectedNextTickTxDigestHexBytes(); - - /** - * string signature_hex = 6; - * @return The signatureHex. - */ - String getSignatureHex(); - /** - * string signature_hex = 6; - * @return The bytes for signatureHex. - */ - com.google.protobuf.ByteString - getSignatureHexBytes(); -} diff --git a/src/main/java/org/qubic/archiver/proto/QuorumDiffStored.java b/src/main/java/org/qubic/archiver/proto/QuorumDiffStored.java deleted file mode 100644 index deb0cba..0000000 --- a/src/main/java/org/qubic/archiver/proto/QuorumDiffStored.java +++ /dev/null @@ -1,695 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.QuorumDiffStored} - */ -public final class QuorumDiffStored extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.QuorumDiffStored) - QuorumDiffStoredOrBuilder { -private static final long serialVersionUID = 0L; - // Use QuorumDiffStored.newBuilder() to construct. - private QuorumDiffStored(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QuorumDiffStored() { - expectedNextTickTxDigestHex_ = ""; - signatureHex_ = ""; - } - - @Override - @SuppressWarnings({"unused"}) - protected Object newInstance( - UnusedPrivateParameter unused) { - return new QuorumDiffStored(); - } - - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QuorumDiffStored( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 42: { - String s = input.readStringRequireUtf8(); - - expectedNextTickTxDigestHex_ = s; - break; - } - case 50: { - String s = input.readStringRequireUtf8(); - - signatureHex_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_QuorumDiffStored_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_QuorumDiffStored_fieldAccessorTable - .ensureFieldAccessorsInitialized( - QuorumDiffStored.class, Builder.class); - } - - public static final int EXPECTED_NEXT_TICK_TX_DIGEST_HEX_FIELD_NUMBER = 5; - private volatile Object expectedNextTickTxDigestHex_; - /** - * string expected_next_tick_tx_digest_hex = 5; - * @return The expectedNextTickTxDigestHex. - */ - @Override - public String getExpectedNextTickTxDigestHex() { - Object ref = expectedNextTickTxDigestHex_; - if (ref instanceof String) { - return (String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - expectedNextTickTxDigestHex_ = s; - return s; - } - } - /** - * string expected_next_tick_tx_digest_hex = 5; - * @return The bytes for expectedNextTickTxDigestHex. - */ - @Override - public com.google.protobuf.ByteString - getExpectedNextTickTxDigestHexBytes() { - Object ref = expectedNextTickTxDigestHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - expectedNextTickTxDigestHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SIGNATURE_HEX_FIELD_NUMBER = 6; - private volatile Object signatureHex_; - /** - * string signature_hex = 6; - * @return The signatureHex. - */ - @Override - public String getSignatureHex() { - Object ref = signatureHex_; - if (ref instanceof String) { - return (String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - signatureHex_ = s; - return s; - } - } - /** - * string signature_hex = 6; - * @return The bytes for signatureHex. - */ - @Override - public com.google.protobuf.ByteString - getSignatureHexBytes() { - Object ref = signatureHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - signatureHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getExpectedNextTickTxDigestHexBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, expectedNextTickTxDigestHex_); - } - if (!getSignatureHexBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, signatureHex_); - } - unknownFields.writeTo(output); - } - - @Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getExpectedNextTickTxDigestHexBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, expectedNextTickTxDigestHex_); - } - if (!getSignatureHexBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, signatureHex_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @Override - public boolean equals(final Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof QuorumDiffStored)) { - return super.equals(obj); - } - QuorumDiffStored other = (QuorumDiffStored) obj; - - if (!getExpectedNextTickTxDigestHex() - .equals(other.getExpectedNextTickTxDigestHex())) return false; - if (!getSignatureHex() - .equals(other.getSignatureHex())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + EXPECTED_NEXT_TICK_TX_DIGEST_HEX_FIELD_NUMBER; - hash = (53 * hash) + getExpectedNextTickTxDigestHex().hashCode(); - hash = (37 * hash) + SIGNATURE_HEX_FIELD_NUMBER; - hash = (53 * hash) + getSignatureHex().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static QuorumDiffStored parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static QuorumDiffStored parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static QuorumDiffStored parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static QuorumDiffStored parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static QuorumDiffStored parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static QuorumDiffStored parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static QuorumDiffStored parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static QuorumDiffStored 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 QuorumDiffStored parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static QuorumDiffStored 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 QuorumDiffStored parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static QuorumDiffStored parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(QuorumDiffStored prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.QuorumDiffStored} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.QuorumDiffStored) - QuorumDiffStoredOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_QuorumDiffStored_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_QuorumDiffStored_fieldAccessorTable - .ensureFieldAccessorsInitialized( - QuorumDiffStored.class, Builder.class); - } - - // Construct using org.qubic.archiver.proto.QuorumDiffStored.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @Override - public Builder clear() { - super.clear(); - expectedNextTickTxDigestHex_ = ""; - - signatureHex_ = ""; - - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_QuorumDiffStored_descriptor; - } - - @Override - public QuorumDiffStored getDefaultInstanceForType() { - return QuorumDiffStored.getDefaultInstance(); - } - - @Override - public QuorumDiffStored build() { - QuorumDiffStored result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public QuorumDiffStored buildPartial() { - QuorumDiffStored result = new QuorumDiffStored(this); - result.expectedNextTickTxDigestHex_ = expectedNextTickTxDigestHex_; - result.signatureHex_ = signatureHex_; - onBuilt(); - return result; - } - - @Override - public Builder clone() { - return super.clone(); - } - @Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.setField(field, value); - } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return super.setRepeatedField(field, index, value); - } - @Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.addRepeatedField(field, value); - } - @Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof QuorumDiffStored) { - return mergeFrom((QuorumDiffStored)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(QuorumDiffStored other) { - if (other == QuorumDiffStored.getDefaultInstance()) return this; - if (!other.getExpectedNextTickTxDigestHex().isEmpty()) { - expectedNextTickTxDigestHex_ = other.expectedNextTickTxDigestHex_; - onChanged(); - } - if (!other.getSignatureHex().isEmpty()) { - signatureHex_ = other.signatureHex_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - QuorumDiffStored parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (QuorumDiffStored) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private Object expectedNextTickTxDigestHex_ = ""; - /** - * string expected_next_tick_tx_digest_hex = 5; - * @return The expectedNextTickTxDigestHex. - */ - public String getExpectedNextTickTxDigestHex() { - Object ref = expectedNextTickTxDigestHex_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - expectedNextTickTxDigestHex_ = s; - return s; - } else { - return (String) ref; - } - } - /** - * string expected_next_tick_tx_digest_hex = 5; - * @return The bytes for expectedNextTickTxDigestHex. - */ - public com.google.protobuf.ByteString - getExpectedNextTickTxDigestHexBytes() { - Object ref = expectedNextTickTxDigestHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - expectedNextTickTxDigestHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string expected_next_tick_tx_digest_hex = 5; - * @param value The expectedNextTickTxDigestHex to set. - * @return This builder for chaining. - */ - public Builder setExpectedNextTickTxDigestHex( - String value) { - if (value == null) { - throw new NullPointerException(); - } - - expectedNextTickTxDigestHex_ = value; - onChanged(); - return this; - } - /** - * string expected_next_tick_tx_digest_hex = 5; - * @return This builder for chaining. - */ - public Builder clearExpectedNextTickTxDigestHex() { - - expectedNextTickTxDigestHex_ = getDefaultInstance().getExpectedNextTickTxDigestHex(); - onChanged(); - return this; - } - /** - * string expected_next_tick_tx_digest_hex = 5; - * @param value The bytes for expectedNextTickTxDigestHex to set. - * @return This builder for chaining. - */ - public Builder setExpectedNextTickTxDigestHexBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - expectedNextTickTxDigestHex_ = value; - onChanged(); - return this; - } - - private Object signatureHex_ = ""; - /** - * string signature_hex = 6; - * @return The signatureHex. - */ - public String getSignatureHex() { - Object ref = signatureHex_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - signatureHex_ = s; - return s; - } else { - return (String) ref; - } - } - /** - * string signature_hex = 6; - * @return The bytes for signatureHex. - */ - public com.google.protobuf.ByteString - getSignatureHexBytes() { - Object ref = signatureHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - signatureHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string signature_hex = 6; - * @param value The signatureHex to set. - * @return This builder for chaining. - */ - public Builder setSignatureHex( - String value) { - if (value == null) { - throw new NullPointerException(); - } - - signatureHex_ = value; - onChanged(); - return this; - } - /** - * string signature_hex = 6; - * @return This builder for chaining. - */ - public Builder clearSignatureHex() { - - signatureHex_ = getDefaultInstance().getSignatureHex(); - onChanged(); - return this; - } - /** - * string signature_hex = 6; - * @param value The bytes for signatureHex to set. - * @return This builder for chaining. - */ - public Builder setSignatureHexBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - signatureHex_ = value; - onChanged(); - return this; - } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.QuorumDiffStored) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.QuorumDiffStored) - private static final QuorumDiffStored DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new QuorumDiffStored(); - } - - public static QuorumDiffStored getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public QuorumDiffStored parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QuorumDiffStored(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public QuorumDiffStored getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/QuorumDiffStoredOrBuilder.java b/src/main/java/org/qubic/archiver/proto/QuorumDiffStoredOrBuilder.java deleted file mode 100644 index 7e99d44..0000000 --- a/src/main/java/org/qubic/archiver/proto/QuorumDiffStoredOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface QuorumDiffStoredOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.QuorumDiffStored) - com.google.protobuf.MessageOrBuilder { - - /** - * string expected_next_tick_tx_digest_hex = 5; - * @return The expectedNextTickTxDigestHex. - */ - java.lang.String getExpectedNextTickTxDigestHex(); - /** - * string expected_next_tick_tx_digest_hex = 5; - * @return The bytes for expectedNextTickTxDigestHex. - */ - com.google.protobuf.ByteString - getExpectedNextTickTxDigestHexBytes(); - - /** - * string signature_hex = 6; - * @return The signatureHex. - */ - java.lang.String getSignatureHex(); - /** - * string signature_hex = 6; - * @return The bytes for signatureHex. - */ - com.google.protobuf.ByteString - getSignatureHexBytes(); -} diff --git a/src/main/java/org/qubic/archiver/proto/QuorumTickData.java b/src/main/java/org/qubic/archiver/proto/QuorumTickData.java deleted file mode 100644 index afd8f52..0000000 --- a/src/main/java/org/qubic/archiver/proto/QuorumTickData.java +++ /dev/null @@ -1,893 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.QuorumTickData} - */ -public final class QuorumTickData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.QuorumTickData) - QuorumTickDataOrBuilder { -private static final long serialVersionUID = 0L; - // Use QuorumTickData.newBuilder() to construct. - private QuorumTickData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QuorumTickData() { - } - - @Override - @SuppressWarnings({"unused"}) - protected Object newInstance( - UnusedPrivateParameter unused) { - return new QuorumTickData(); - } - - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QuorumTickData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - QuorumTickStructure.Builder subBuilder = null; - if (quorumTickStructure_ != null) { - subBuilder = quorumTickStructure_.toBuilder(); - } - quorumTickStructure_ = input.readMessage(QuorumTickStructure.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(quorumTickStructure_); - quorumTickStructure_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - quorumDiffPerComputor_ = com.google.protobuf.MapField.newMapField( - QuorumDiffPerComputorDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - quorumDiffPerComputor__ = input.readMessage( - QuorumDiffPerComputorDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - quorumDiffPerComputor_.getMutableMap().put( - quorumDiffPerComputor__.getKey(), quorumDiffPerComputor__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_QuorumTickData_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetQuorumDiffPerComputor(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_QuorumTickData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - QuorumTickData.class, Builder.class); - } - - public static final int QUORUM_TICK_STRUCTURE_FIELD_NUMBER = 1; - private QuorumTickStructure quorumTickStructure_; - /** - * .qubic.archiver.archive.pb.QuorumTickStructure quorum_tick_structure = 1; - * @return Whether the quorumTickStructure field is set. - */ - @Override - public boolean hasQuorumTickStructure() { - return quorumTickStructure_ != null; - } - /** - * .qubic.archiver.archive.pb.QuorumTickStructure quorum_tick_structure = 1; - * @return The quorumTickStructure. - */ - @Override - public QuorumTickStructure getQuorumTickStructure() { - return quorumTickStructure_ == null ? QuorumTickStructure.getDefaultInstance() : quorumTickStructure_; - } - /** - * .qubic.archiver.archive.pb.QuorumTickStructure quorum_tick_structure = 1; - */ - @Override - public QuorumTickStructureOrBuilder getQuorumTickStructureOrBuilder() { - return getQuorumTickStructure(); - } - - public static final int QUORUM_DIFF_PER_COMPUTOR_FIELD_NUMBER = 2; - private static final class QuorumDiffPerComputorDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - Integer, QuorumDiff> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_QuorumTickData_QuorumDiffPerComputorEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.MESSAGE, - QuorumDiff.getDefaultInstance()); - } - private com.google.protobuf.MapField< - Integer, QuorumDiff> quorumDiffPerComputor_; - private com.google.protobuf.MapField - internalGetQuorumDiffPerComputor() { - if (quorumDiffPerComputor_ == null) { - return com.google.protobuf.MapField.emptyMapField( - QuorumDiffPerComputorDefaultEntryHolder.defaultEntry); - } - return quorumDiffPerComputor_; - } - - public int getQuorumDiffPerComputorCount() { - return internalGetQuorumDiffPerComputor().getMap().size(); - } - /** - * map<uint32, .qubic.archiver.archive.pb.QuorumDiff> quorum_diff_per_computor = 2; - */ - - @Override - public boolean containsQuorumDiffPerComputor( - int key) { - - return internalGetQuorumDiffPerComputor().getMap().containsKey(key); - } - /** - * Use {@link #getQuorumDiffPerComputorMap()} instead. - */ - @Override - @Deprecated - public java.util.Map getQuorumDiffPerComputor() { - return getQuorumDiffPerComputorMap(); - } - /** - * map<uint32, .qubic.archiver.archive.pb.QuorumDiff> quorum_diff_per_computor = 2; - */ - @Override - - public java.util.Map getQuorumDiffPerComputorMap() { - return internalGetQuorumDiffPerComputor().getMap(); - } - /** - * map<uint32, .qubic.archiver.archive.pb.QuorumDiff> quorum_diff_per_computor = 2; - */ - @Override - - public QuorumDiff getQuorumDiffPerComputorOrDefault( - int key, - QuorumDiff defaultValue) { - - java.util.Map map = - internalGetQuorumDiffPerComputor().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<uint32, .qubic.archiver.archive.pb.QuorumDiff> quorum_diff_per_computor = 2; - */ - @Override - - public QuorumDiff getQuorumDiffPerComputorOrThrow( - int key) { - - java.util.Map map = - internalGetQuorumDiffPerComputor().getMap(); - if (!map.containsKey(key)) { - throw new IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (quorumTickStructure_ != null) { - output.writeMessage(1, getQuorumTickStructure()); - } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetQuorumDiffPerComputor(), - QuorumDiffPerComputorDefaultEntryHolder.defaultEntry, - 2); - unknownFields.writeTo(output); - } - - @Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (quorumTickStructure_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getQuorumTickStructure()); - } - for (java.util.Map.Entry entry - : internalGetQuorumDiffPerComputor().getMap().entrySet()) { - com.google.protobuf.MapEntry - quorumDiffPerComputor__ = QuorumDiffPerComputorDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, quorumDiffPerComputor__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @Override - public boolean equals(final Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof QuorumTickData)) { - return super.equals(obj); - } - QuorumTickData other = (QuorumTickData) obj; - - if (hasQuorumTickStructure() != other.hasQuorumTickStructure()) return false; - if (hasQuorumTickStructure()) { - if (!getQuorumTickStructure() - .equals(other.getQuorumTickStructure())) return false; - } - if (!internalGetQuorumDiffPerComputor().equals( - other.internalGetQuorumDiffPerComputor())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasQuorumTickStructure()) { - hash = (37 * hash) + QUORUM_TICK_STRUCTURE_FIELD_NUMBER; - hash = (53 * hash) + getQuorumTickStructure().hashCode(); - } - if (!internalGetQuorumDiffPerComputor().getMap().isEmpty()) { - hash = (37 * hash) + QUORUM_DIFF_PER_COMPUTOR_FIELD_NUMBER; - hash = (53 * hash) + internalGetQuorumDiffPerComputor().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static QuorumTickData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static QuorumTickData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static QuorumTickData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static QuorumTickData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static QuorumTickData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static QuorumTickData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static QuorumTickData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static QuorumTickData 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 QuorumTickData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static QuorumTickData 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 QuorumTickData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static QuorumTickData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(QuorumTickData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.QuorumTickData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.QuorumTickData) - QuorumTickDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_QuorumTickData_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetQuorumDiffPerComputor(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 2: - return internalGetMutableQuorumDiffPerComputor(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_QuorumTickData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - QuorumTickData.class, Builder.class); - } - - // Construct using org.qubic.archiver.proto.QuorumTickData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @Override - public Builder clear() { - super.clear(); - if (quorumTickStructureBuilder_ == null) { - quorumTickStructure_ = null; - } else { - quorumTickStructure_ = null; - quorumTickStructureBuilder_ = null; - } - internalGetMutableQuorumDiffPerComputor().clear(); - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_QuorumTickData_descriptor; - } - - @Override - public QuorumTickData getDefaultInstanceForType() { - return QuorumTickData.getDefaultInstance(); - } - - @Override - public QuorumTickData build() { - QuorumTickData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public QuorumTickData buildPartial() { - QuorumTickData result = new QuorumTickData(this); - int from_bitField0_ = bitField0_; - if (quorumTickStructureBuilder_ == null) { - result.quorumTickStructure_ = quorumTickStructure_; - } else { - result.quorumTickStructure_ = quorumTickStructureBuilder_.build(); - } - result.quorumDiffPerComputor_ = internalGetQuorumDiffPerComputor(); - result.quorumDiffPerComputor_.makeImmutable(); - onBuilt(); - return result; - } - - @Override - public Builder clone() { - return super.clone(); - } - @Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.setField(field, value); - } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return super.setRepeatedField(field, index, value); - } - @Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.addRepeatedField(field, value); - } - @Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof QuorumTickData) { - return mergeFrom((QuorumTickData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(QuorumTickData other) { - if (other == QuorumTickData.getDefaultInstance()) return this; - if (other.hasQuorumTickStructure()) { - mergeQuorumTickStructure(other.getQuorumTickStructure()); - } - internalGetMutableQuorumDiffPerComputor().mergeFrom( - other.internalGetQuorumDiffPerComputor()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - QuorumTickData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (QuorumTickData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private QuorumTickStructure quorumTickStructure_; - private com.google.protobuf.SingleFieldBuilderV3< - QuorumTickStructure, QuorumTickStructure.Builder, QuorumTickStructureOrBuilder> quorumTickStructureBuilder_; - /** - * .qubic.archiver.archive.pb.QuorumTickStructure quorum_tick_structure = 1; - * @return Whether the quorumTickStructure field is set. - */ - public boolean hasQuorumTickStructure() { - return quorumTickStructureBuilder_ != null || quorumTickStructure_ != null; - } - /** - * .qubic.archiver.archive.pb.QuorumTickStructure quorum_tick_structure = 1; - * @return The quorumTickStructure. - */ - public QuorumTickStructure getQuorumTickStructure() { - if (quorumTickStructureBuilder_ == null) { - return quorumTickStructure_ == null ? QuorumTickStructure.getDefaultInstance() : quorumTickStructure_; - } else { - return quorumTickStructureBuilder_.getMessage(); - } - } - /** - * .qubic.archiver.archive.pb.QuorumTickStructure quorum_tick_structure = 1; - */ - public Builder setQuorumTickStructure(QuorumTickStructure value) { - if (quorumTickStructureBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - quorumTickStructure_ = value; - onChanged(); - } else { - quorumTickStructureBuilder_.setMessage(value); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.QuorumTickStructure quorum_tick_structure = 1; - */ - public Builder setQuorumTickStructure( - QuorumTickStructure.Builder builderForValue) { - if (quorumTickStructureBuilder_ == null) { - quorumTickStructure_ = builderForValue.build(); - onChanged(); - } else { - quorumTickStructureBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.QuorumTickStructure quorum_tick_structure = 1; - */ - public Builder mergeQuorumTickStructure(QuorumTickStructure value) { - if (quorumTickStructureBuilder_ == null) { - if (quorumTickStructure_ != null) { - quorumTickStructure_ = - QuorumTickStructure.newBuilder(quorumTickStructure_).mergeFrom(value).buildPartial(); - } else { - quorumTickStructure_ = value; - } - onChanged(); - } else { - quorumTickStructureBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.QuorumTickStructure quorum_tick_structure = 1; - */ - public Builder clearQuorumTickStructure() { - if (quorumTickStructureBuilder_ == null) { - quorumTickStructure_ = null; - onChanged(); - } else { - quorumTickStructure_ = null; - quorumTickStructureBuilder_ = null; - } - - return this; - } - /** - * .qubic.archiver.archive.pb.QuorumTickStructure quorum_tick_structure = 1; - */ - public QuorumTickStructure.Builder getQuorumTickStructureBuilder() { - - onChanged(); - return getQuorumTickStructureFieldBuilder().getBuilder(); - } - /** - * .qubic.archiver.archive.pb.QuorumTickStructure quorum_tick_structure = 1; - */ - public QuorumTickStructureOrBuilder getQuorumTickStructureOrBuilder() { - if (quorumTickStructureBuilder_ != null) { - return quorumTickStructureBuilder_.getMessageOrBuilder(); - } else { - return quorumTickStructure_ == null ? - QuorumTickStructure.getDefaultInstance() : quorumTickStructure_; - } - } - /** - * .qubic.archiver.archive.pb.QuorumTickStructure quorum_tick_structure = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - QuorumTickStructure, QuorumTickStructure.Builder, QuorumTickStructureOrBuilder> - getQuorumTickStructureFieldBuilder() { - if (quorumTickStructureBuilder_ == null) { - quorumTickStructureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - QuorumTickStructure, QuorumTickStructure.Builder, QuorumTickStructureOrBuilder>( - getQuorumTickStructure(), - getParentForChildren(), - isClean()); - quorumTickStructure_ = null; - } - return quorumTickStructureBuilder_; - } - - private com.google.protobuf.MapField< - Integer, QuorumDiff> quorumDiffPerComputor_; - private com.google.protobuf.MapField - internalGetQuorumDiffPerComputor() { - if (quorumDiffPerComputor_ == null) { - return com.google.protobuf.MapField.emptyMapField( - QuorumDiffPerComputorDefaultEntryHolder.defaultEntry); - } - return quorumDiffPerComputor_; - } - private com.google.protobuf.MapField - internalGetMutableQuorumDiffPerComputor() { - onChanged();; - if (quorumDiffPerComputor_ == null) { - quorumDiffPerComputor_ = com.google.protobuf.MapField.newMapField( - QuorumDiffPerComputorDefaultEntryHolder.defaultEntry); - } - if (!quorumDiffPerComputor_.isMutable()) { - quorumDiffPerComputor_ = quorumDiffPerComputor_.copy(); - } - return quorumDiffPerComputor_; - } - - public int getQuorumDiffPerComputorCount() { - return internalGetQuorumDiffPerComputor().getMap().size(); - } - /** - * map<uint32, .qubic.archiver.archive.pb.QuorumDiff> quorum_diff_per_computor = 2; - */ - - @Override - public boolean containsQuorumDiffPerComputor( - int key) { - - return internalGetQuorumDiffPerComputor().getMap().containsKey(key); - } - /** - * Use {@link #getQuorumDiffPerComputorMap()} instead. - */ - @Override - @Deprecated - public java.util.Map getQuorumDiffPerComputor() { - return getQuorumDiffPerComputorMap(); - } - /** - * map<uint32, .qubic.archiver.archive.pb.QuorumDiff> quorum_diff_per_computor = 2; - */ - @Override - - public java.util.Map getQuorumDiffPerComputorMap() { - return internalGetQuorumDiffPerComputor().getMap(); - } - /** - * map<uint32, .qubic.archiver.archive.pb.QuorumDiff> quorum_diff_per_computor = 2; - */ - @Override - - public QuorumDiff getQuorumDiffPerComputorOrDefault( - int key, - QuorumDiff defaultValue) { - - java.util.Map map = - internalGetQuorumDiffPerComputor().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<uint32, .qubic.archiver.archive.pb.QuorumDiff> quorum_diff_per_computor = 2; - */ - @Override - - public QuorumDiff getQuorumDiffPerComputorOrThrow( - int key) { - - java.util.Map map = - internalGetQuorumDiffPerComputor().getMap(); - if (!map.containsKey(key)) { - throw new IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearQuorumDiffPerComputor() { - internalGetMutableQuorumDiffPerComputor().getMutableMap() - .clear(); - return this; - } - /** - * map<uint32, .qubic.archiver.archive.pb.QuorumDiff> quorum_diff_per_computor = 2; - */ - - public Builder removeQuorumDiffPerComputor( - int key) { - - internalGetMutableQuorumDiffPerComputor().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @Deprecated - public java.util.Map - getMutableQuorumDiffPerComputor() { - return internalGetMutableQuorumDiffPerComputor().getMutableMap(); - } - /** - * map<uint32, .qubic.archiver.archive.pb.QuorumDiff> quorum_diff_per_computor = 2; - */ - public Builder putQuorumDiffPerComputor( - int key, - QuorumDiff value) { - - if (value == null) { throw new NullPointerException(); } - internalGetMutableQuorumDiffPerComputor().getMutableMap() - .put(key, value); - return this; - } - /** - * map<uint32, .qubic.archiver.archive.pb.QuorumDiff> quorum_diff_per_computor = 2; - */ - - public Builder putAllQuorumDiffPerComputor( - java.util.Map values) { - internalGetMutableQuorumDiffPerComputor().getMutableMap() - .putAll(values); - return this; - } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.QuorumTickData) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.QuorumTickData) - private static final QuorumTickData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new QuorumTickData(); - } - - public static QuorumTickData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public QuorumTickData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QuorumTickData(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public QuorumTickData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/QuorumTickDataOrBuilder.java b/src/main/java/org/qubic/archiver/proto/QuorumTickDataOrBuilder.java deleted file mode 100644 index 8194797..0000000 --- a/src/main/java/org/qubic/archiver/proto/QuorumTickDataOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface QuorumTickDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.QuorumTickData) - com.google.protobuf.MessageOrBuilder { - - /** - * .qubic.archiver.archive.pb.QuorumTickStructure quorum_tick_structure = 1; - * @return Whether the quorumTickStructure field is set. - */ - boolean hasQuorumTickStructure(); - /** - * .qubic.archiver.archive.pb.QuorumTickStructure quorum_tick_structure = 1; - * @return The quorumTickStructure. - */ - QuorumTickStructure getQuorumTickStructure(); - /** - * .qubic.archiver.archive.pb.QuorumTickStructure quorum_tick_structure = 1; - */ - QuorumTickStructureOrBuilder getQuorumTickStructureOrBuilder(); - - /** - * map<uint32, .qubic.archiver.archive.pb.QuorumDiff> quorum_diff_per_computor = 2; - */ - int getQuorumDiffPerComputorCount(); - /** - * map<uint32, .qubic.archiver.archive.pb.QuorumDiff> quorum_diff_per_computor = 2; - */ - boolean containsQuorumDiffPerComputor( - int key); - /** - * Use {@link #getQuorumDiffPerComputorMap()} instead. - */ - @Deprecated - java.util.Map - getQuorumDiffPerComputor(); - /** - * map<uint32, .qubic.archiver.archive.pb.QuorumDiff> quorum_diff_per_computor = 2; - */ - java.util.Map - getQuorumDiffPerComputorMap(); - /** - * map<uint32, .qubic.archiver.archive.pb.QuorumDiff> quorum_diff_per_computor = 2; - */ - - QuorumDiff getQuorumDiffPerComputorOrDefault( - int key, - QuorumDiff defaultValue); - /** - * map<uint32, .qubic.archiver.archive.pb.QuorumDiff> quorum_diff_per_computor = 2; - */ - - QuorumDiff getQuorumDiffPerComputorOrThrow( - int key); -} diff --git a/src/main/java/org/qubic/archiver/proto/QuorumTickDataStored.java b/src/main/java/org/qubic/archiver/proto/QuorumTickDataStored.java deleted file mode 100644 index 44620da..0000000 --- a/src/main/java/org/qubic/archiver/proto/QuorumTickDataStored.java +++ /dev/null @@ -1,893 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.QuorumTickDataStored} - */ -public final class QuorumTickDataStored extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.QuorumTickDataStored) - QuorumTickDataStoredOrBuilder { -private static final long serialVersionUID = 0L; - // Use QuorumTickDataStored.newBuilder() to construct. - private QuorumTickDataStored(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QuorumTickDataStored() { - } - - @Override - @SuppressWarnings({"unused"}) - protected Object newInstance( - UnusedPrivateParameter unused) { - return new QuorumTickDataStored(); - } - - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QuorumTickDataStored( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - QuorumTickStructure.Builder subBuilder = null; - if (quorumTickStructure_ != null) { - subBuilder = quorumTickStructure_.toBuilder(); - } - quorumTickStructure_ = input.readMessage(QuorumTickStructure.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(quorumTickStructure_); - quorumTickStructure_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - quorumDiffPerComputor_ = com.google.protobuf.MapField.newMapField( - QuorumDiffPerComputorDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - quorumDiffPerComputor__ = input.readMessage( - QuorumDiffPerComputorDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - quorumDiffPerComputor_.getMutableMap().put( - quorumDiffPerComputor__.getKey(), quorumDiffPerComputor__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_QuorumTickDataStored_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetQuorumDiffPerComputor(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_QuorumTickDataStored_fieldAccessorTable - .ensureFieldAccessorsInitialized( - QuorumTickDataStored.class, Builder.class); - } - - public static final int QUORUM_TICK_STRUCTURE_FIELD_NUMBER = 1; - private QuorumTickStructure quorumTickStructure_; - /** - * .qubic.archiver.archive.pb.QuorumTickStructure quorum_tick_structure = 1; - * @return Whether the quorumTickStructure field is set. - */ - @Override - public boolean hasQuorumTickStructure() { - return quorumTickStructure_ != null; - } - /** - * .qubic.archiver.archive.pb.QuorumTickStructure quorum_tick_structure = 1; - * @return The quorumTickStructure. - */ - @Override - public QuorumTickStructure getQuorumTickStructure() { - return quorumTickStructure_ == null ? QuorumTickStructure.getDefaultInstance() : quorumTickStructure_; - } - /** - * .qubic.archiver.archive.pb.QuorumTickStructure quorum_tick_structure = 1; - */ - @Override - public QuorumTickStructureOrBuilder getQuorumTickStructureOrBuilder() { - return getQuorumTickStructure(); - } - - public static final int QUORUM_DIFF_PER_COMPUTOR_FIELD_NUMBER = 2; - private static final class QuorumDiffPerComputorDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - Integer, QuorumDiffStored> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_QuorumTickDataStored_QuorumDiffPerComputorEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.MESSAGE, - QuorumDiffStored.getDefaultInstance()); - } - private com.google.protobuf.MapField< - Integer, QuorumDiffStored> quorumDiffPerComputor_; - private com.google.protobuf.MapField - internalGetQuorumDiffPerComputor() { - if (quorumDiffPerComputor_ == null) { - return com.google.protobuf.MapField.emptyMapField( - QuorumDiffPerComputorDefaultEntryHolder.defaultEntry); - } - return quorumDiffPerComputor_; - } - - public int getQuorumDiffPerComputorCount() { - return internalGetQuorumDiffPerComputor().getMap().size(); - } - /** - * map<uint32, .qubic.archiver.archive.pb.QuorumDiffStored> quorum_diff_per_computor = 2; - */ - - @Override - public boolean containsQuorumDiffPerComputor( - int key) { - - return internalGetQuorumDiffPerComputor().getMap().containsKey(key); - } - /** - * Use {@link #getQuorumDiffPerComputorMap()} instead. - */ - @Override - @Deprecated - public java.util.Map getQuorumDiffPerComputor() { - return getQuorumDiffPerComputorMap(); - } - /** - * map<uint32, .qubic.archiver.archive.pb.QuorumDiffStored> quorum_diff_per_computor = 2; - */ - @Override - - public java.util.Map getQuorumDiffPerComputorMap() { - return internalGetQuorumDiffPerComputor().getMap(); - } - /** - * map<uint32, .qubic.archiver.archive.pb.QuorumDiffStored> quorum_diff_per_computor = 2; - */ - @Override - - public QuorumDiffStored getQuorumDiffPerComputorOrDefault( - int key, - QuorumDiffStored defaultValue) { - - java.util.Map map = - internalGetQuorumDiffPerComputor().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<uint32, .qubic.archiver.archive.pb.QuorumDiffStored> quorum_diff_per_computor = 2; - */ - @Override - - public QuorumDiffStored getQuorumDiffPerComputorOrThrow( - int key) { - - java.util.Map map = - internalGetQuorumDiffPerComputor().getMap(); - if (!map.containsKey(key)) { - throw new IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (quorumTickStructure_ != null) { - output.writeMessage(1, getQuorumTickStructure()); - } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetQuorumDiffPerComputor(), - QuorumDiffPerComputorDefaultEntryHolder.defaultEntry, - 2); - unknownFields.writeTo(output); - } - - @Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (quorumTickStructure_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getQuorumTickStructure()); - } - for (java.util.Map.Entry entry - : internalGetQuorumDiffPerComputor().getMap().entrySet()) { - com.google.protobuf.MapEntry - quorumDiffPerComputor__ = QuorumDiffPerComputorDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, quorumDiffPerComputor__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @Override - public boolean equals(final Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof QuorumTickDataStored)) { - return super.equals(obj); - } - QuorumTickDataStored other = (QuorumTickDataStored) obj; - - if (hasQuorumTickStructure() != other.hasQuorumTickStructure()) return false; - if (hasQuorumTickStructure()) { - if (!getQuorumTickStructure() - .equals(other.getQuorumTickStructure())) return false; - } - if (!internalGetQuorumDiffPerComputor().equals( - other.internalGetQuorumDiffPerComputor())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasQuorumTickStructure()) { - hash = (37 * hash) + QUORUM_TICK_STRUCTURE_FIELD_NUMBER; - hash = (53 * hash) + getQuorumTickStructure().hashCode(); - } - if (!internalGetQuorumDiffPerComputor().getMap().isEmpty()) { - hash = (37 * hash) + QUORUM_DIFF_PER_COMPUTOR_FIELD_NUMBER; - hash = (53 * hash) + internalGetQuorumDiffPerComputor().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static QuorumTickDataStored parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static QuorumTickDataStored parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static QuorumTickDataStored parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static QuorumTickDataStored parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static QuorumTickDataStored parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static QuorumTickDataStored parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static QuorumTickDataStored parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static QuorumTickDataStored 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 QuorumTickDataStored parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static QuorumTickDataStored 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 QuorumTickDataStored parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static QuorumTickDataStored parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(QuorumTickDataStored prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.QuorumTickDataStored} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.QuorumTickDataStored) - QuorumTickDataStoredOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_QuorumTickDataStored_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetQuorumDiffPerComputor(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 2: - return internalGetMutableQuorumDiffPerComputor(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_QuorumTickDataStored_fieldAccessorTable - .ensureFieldAccessorsInitialized( - QuorumTickDataStored.class, Builder.class); - } - - // Construct using org.qubic.archiver.proto.QuorumTickDataStored.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @Override - public Builder clear() { - super.clear(); - if (quorumTickStructureBuilder_ == null) { - quorumTickStructure_ = null; - } else { - quorumTickStructure_ = null; - quorumTickStructureBuilder_ = null; - } - internalGetMutableQuorumDiffPerComputor().clear(); - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_QuorumTickDataStored_descriptor; - } - - @Override - public QuorumTickDataStored getDefaultInstanceForType() { - return QuorumTickDataStored.getDefaultInstance(); - } - - @Override - public QuorumTickDataStored build() { - QuorumTickDataStored result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public QuorumTickDataStored buildPartial() { - QuorumTickDataStored result = new QuorumTickDataStored(this); - int from_bitField0_ = bitField0_; - if (quorumTickStructureBuilder_ == null) { - result.quorumTickStructure_ = quorumTickStructure_; - } else { - result.quorumTickStructure_ = quorumTickStructureBuilder_.build(); - } - result.quorumDiffPerComputor_ = internalGetQuorumDiffPerComputor(); - result.quorumDiffPerComputor_.makeImmutable(); - onBuilt(); - return result; - } - - @Override - public Builder clone() { - return super.clone(); - } - @Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.setField(field, value); - } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return super.setRepeatedField(field, index, value); - } - @Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.addRepeatedField(field, value); - } - @Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof QuorumTickDataStored) { - return mergeFrom((QuorumTickDataStored)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(QuorumTickDataStored other) { - if (other == QuorumTickDataStored.getDefaultInstance()) return this; - if (other.hasQuorumTickStructure()) { - mergeQuorumTickStructure(other.getQuorumTickStructure()); - } - internalGetMutableQuorumDiffPerComputor().mergeFrom( - other.internalGetQuorumDiffPerComputor()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - QuorumTickDataStored parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (QuorumTickDataStored) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private QuorumTickStructure quorumTickStructure_; - private com.google.protobuf.SingleFieldBuilderV3< - QuorumTickStructure, QuorumTickStructure.Builder, QuorumTickStructureOrBuilder> quorumTickStructureBuilder_; - /** - * .qubic.archiver.archive.pb.QuorumTickStructure quorum_tick_structure = 1; - * @return Whether the quorumTickStructure field is set. - */ - public boolean hasQuorumTickStructure() { - return quorumTickStructureBuilder_ != null || quorumTickStructure_ != null; - } - /** - * .qubic.archiver.archive.pb.QuorumTickStructure quorum_tick_structure = 1; - * @return The quorumTickStructure. - */ - public QuorumTickStructure getQuorumTickStructure() { - if (quorumTickStructureBuilder_ == null) { - return quorumTickStructure_ == null ? QuorumTickStructure.getDefaultInstance() : quorumTickStructure_; - } else { - return quorumTickStructureBuilder_.getMessage(); - } - } - /** - * .qubic.archiver.archive.pb.QuorumTickStructure quorum_tick_structure = 1; - */ - public Builder setQuorumTickStructure(QuorumTickStructure value) { - if (quorumTickStructureBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - quorumTickStructure_ = value; - onChanged(); - } else { - quorumTickStructureBuilder_.setMessage(value); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.QuorumTickStructure quorum_tick_structure = 1; - */ - public Builder setQuorumTickStructure( - QuorumTickStructure.Builder builderForValue) { - if (quorumTickStructureBuilder_ == null) { - quorumTickStructure_ = builderForValue.build(); - onChanged(); - } else { - quorumTickStructureBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.QuorumTickStructure quorum_tick_structure = 1; - */ - public Builder mergeQuorumTickStructure(QuorumTickStructure value) { - if (quorumTickStructureBuilder_ == null) { - if (quorumTickStructure_ != null) { - quorumTickStructure_ = - QuorumTickStructure.newBuilder(quorumTickStructure_).mergeFrom(value).buildPartial(); - } else { - quorumTickStructure_ = value; - } - onChanged(); - } else { - quorumTickStructureBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.QuorumTickStructure quorum_tick_structure = 1; - */ - public Builder clearQuorumTickStructure() { - if (quorumTickStructureBuilder_ == null) { - quorumTickStructure_ = null; - onChanged(); - } else { - quorumTickStructure_ = null; - quorumTickStructureBuilder_ = null; - } - - return this; - } - /** - * .qubic.archiver.archive.pb.QuorumTickStructure quorum_tick_structure = 1; - */ - public QuorumTickStructure.Builder getQuorumTickStructureBuilder() { - - onChanged(); - return getQuorumTickStructureFieldBuilder().getBuilder(); - } - /** - * .qubic.archiver.archive.pb.QuorumTickStructure quorum_tick_structure = 1; - */ - public QuorumTickStructureOrBuilder getQuorumTickStructureOrBuilder() { - if (quorumTickStructureBuilder_ != null) { - return quorumTickStructureBuilder_.getMessageOrBuilder(); - } else { - return quorumTickStructure_ == null ? - QuorumTickStructure.getDefaultInstance() : quorumTickStructure_; - } - } - /** - * .qubic.archiver.archive.pb.QuorumTickStructure quorum_tick_structure = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - QuorumTickStructure, QuorumTickStructure.Builder, QuorumTickStructureOrBuilder> - getQuorumTickStructureFieldBuilder() { - if (quorumTickStructureBuilder_ == null) { - quorumTickStructureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - QuorumTickStructure, QuorumTickStructure.Builder, QuorumTickStructureOrBuilder>( - getQuorumTickStructure(), - getParentForChildren(), - isClean()); - quorumTickStructure_ = null; - } - return quorumTickStructureBuilder_; - } - - private com.google.protobuf.MapField< - Integer, QuorumDiffStored> quorumDiffPerComputor_; - private com.google.protobuf.MapField - internalGetQuorumDiffPerComputor() { - if (quorumDiffPerComputor_ == null) { - return com.google.protobuf.MapField.emptyMapField( - QuorumDiffPerComputorDefaultEntryHolder.defaultEntry); - } - return quorumDiffPerComputor_; - } - private com.google.protobuf.MapField - internalGetMutableQuorumDiffPerComputor() { - onChanged();; - if (quorumDiffPerComputor_ == null) { - quorumDiffPerComputor_ = com.google.protobuf.MapField.newMapField( - QuorumDiffPerComputorDefaultEntryHolder.defaultEntry); - } - if (!quorumDiffPerComputor_.isMutable()) { - quorumDiffPerComputor_ = quorumDiffPerComputor_.copy(); - } - return quorumDiffPerComputor_; - } - - public int getQuorumDiffPerComputorCount() { - return internalGetQuorumDiffPerComputor().getMap().size(); - } - /** - * map<uint32, .qubic.archiver.archive.pb.QuorumDiffStored> quorum_diff_per_computor = 2; - */ - - @Override - public boolean containsQuorumDiffPerComputor( - int key) { - - return internalGetQuorumDiffPerComputor().getMap().containsKey(key); - } - /** - * Use {@link #getQuorumDiffPerComputorMap()} instead. - */ - @Override - @Deprecated - public java.util.Map getQuorumDiffPerComputor() { - return getQuorumDiffPerComputorMap(); - } - /** - * map<uint32, .qubic.archiver.archive.pb.QuorumDiffStored> quorum_diff_per_computor = 2; - */ - @Override - - public java.util.Map getQuorumDiffPerComputorMap() { - return internalGetQuorumDiffPerComputor().getMap(); - } - /** - * map<uint32, .qubic.archiver.archive.pb.QuorumDiffStored> quorum_diff_per_computor = 2; - */ - @Override - - public QuorumDiffStored getQuorumDiffPerComputorOrDefault( - int key, - QuorumDiffStored defaultValue) { - - java.util.Map map = - internalGetQuorumDiffPerComputor().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<uint32, .qubic.archiver.archive.pb.QuorumDiffStored> quorum_diff_per_computor = 2; - */ - @Override - - public QuorumDiffStored getQuorumDiffPerComputorOrThrow( - int key) { - - java.util.Map map = - internalGetQuorumDiffPerComputor().getMap(); - if (!map.containsKey(key)) { - throw new IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearQuorumDiffPerComputor() { - internalGetMutableQuorumDiffPerComputor().getMutableMap() - .clear(); - return this; - } - /** - * map<uint32, .qubic.archiver.archive.pb.QuorumDiffStored> quorum_diff_per_computor = 2; - */ - - public Builder removeQuorumDiffPerComputor( - int key) { - - internalGetMutableQuorumDiffPerComputor().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @Deprecated - public java.util.Map - getMutableQuorumDiffPerComputor() { - return internalGetMutableQuorumDiffPerComputor().getMutableMap(); - } - /** - * map<uint32, .qubic.archiver.archive.pb.QuorumDiffStored> quorum_diff_per_computor = 2; - */ - public Builder putQuorumDiffPerComputor( - int key, - QuorumDiffStored value) { - - if (value == null) { throw new NullPointerException(); } - internalGetMutableQuorumDiffPerComputor().getMutableMap() - .put(key, value); - return this; - } - /** - * map<uint32, .qubic.archiver.archive.pb.QuorumDiffStored> quorum_diff_per_computor = 2; - */ - - public Builder putAllQuorumDiffPerComputor( - java.util.Map values) { - internalGetMutableQuorumDiffPerComputor().getMutableMap() - .putAll(values); - return this; - } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.QuorumTickDataStored) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.QuorumTickDataStored) - private static final QuorumTickDataStored DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new QuorumTickDataStored(); - } - - public static QuorumTickDataStored getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public QuorumTickDataStored parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QuorumTickDataStored(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public QuorumTickDataStored getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/QuorumTickDataStoredOrBuilder.java b/src/main/java/org/qubic/archiver/proto/QuorumTickDataStoredOrBuilder.java deleted file mode 100644 index cd432ce..0000000 --- a/src/main/java/org/qubic/archiver/proto/QuorumTickDataStoredOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface QuorumTickDataStoredOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.QuorumTickDataStored) - com.google.protobuf.MessageOrBuilder { - - /** - * .qubic.archiver.archive.pb.QuorumTickStructure quorum_tick_structure = 1; - * @return Whether the quorumTickStructure field is set. - */ - boolean hasQuorumTickStructure(); - /** - * .qubic.archiver.archive.pb.QuorumTickStructure quorum_tick_structure = 1; - * @return The quorumTickStructure. - */ - org.qubic.archiver.proto.QuorumTickStructure getQuorumTickStructure(); - /** - * .qubic.archiver.archive.pb.QuorumTickStructure quorum_tick_structure = 1; - */ - org.qubic.archiver.proto.QuorumTickStructureOrBuilder getQuorumTickStructureOrBuilder(); - - /** - * map<uint32, .qubic.archiver.archive.pb.QuorumDiffStored> quorum_diff_per_computor = 2; - */ - int getQuorumDiffPerComputorCount(); - /** - * map<uint32, .qubic.archiver.archive.pb.QuorumDiffStored> quorum_diff_per_computor = 2; - */ - boolean containsQuorumDiffPerComputor( - int key); - /** - * Use {@link #getQuorumDiffPerComputorMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getQuorumDiffPerComputor(); - /** - * map<uint32, .qubic.archiver.archive.pb.QuorumDiffStored> quorum_diff_per_computor = 2; - */ - java.util.Map - getQuorumDiffPerComputorMap(); - /** - * map<uint32, .qubic.archiver.archive.pb.QuorumDiffStored> quorum_diff_per_computor = 2; - */ - - org.qubic.archiver.proto.QuorumDiffStored getQuorumDiffPerComputorOrDefault( - int key, - org.qubic.archiver.proto.QuorumDiffStored defaultValue); - /** - * map<uint32, .qubic.archiver.archive.pb.QuorumDiffStored> quorum_diff_per_computor = 2; - */ - - org.qubic.archiver.proto.QuorumDiffStored getQuorumDiffPerComputorOrThrow( - int key); -} diff --git a/src/main/java/org/qubic/archiver/proto/QuorumTickStructure.java b/src/main/java/org/qubic/archiver/proto/QuorumTickStructure.java deleted file mode 100644 index 5b4cc13..0000000 --- a/src/main/java/org/qubic/archiver/proto/QuorumTickStructure.java +++ /dev/null @@ -1,1302 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.QuorumTickStructure} - */ -public final class QuorumTickStructure extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.QuorumTickStructure) - QuorumTickStructureOrBuilder { -private static final long serialVersionUID = 0L; - // Use QuorumTickStructure.newBuilder() to construct. - private QuorumTickStructure(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QuorumTickStructure() { - prevResourceTestingDigestHex_ = ""; - prevSpectrumDigestHex_ = ""; - prevUniverseDigestHex_ = ""; - prevComputerDigestHex_ = ""; - txDigestHex_ = ""; - } - - @Override - @SuppressWarnings({"unused"}) - protected Object newInstance( - UnusedPrivateParameter unused) { - return new QuorumTickStructure(); - } - - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QuorumTickStructure( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 16: { - - epoch_ = input.readUInt32(); - break; - } - case 24: { - - tickNumber_ = input.readUInt32(); - break; - } - case 32: { - - timestamp_ = input.readUInt64(); - break; - } - case 42: { - String s = input.readStringRequireUtf8(); - - prevResourceTestingDigestHex_ = s; - break; - } - case 50: { - String s = input.readStringRequireUtf8(); - - prevSpectrumDigestHex_ = s; - break; - } - case 58: { - String s = input.readStringRequireUtf8(); - - prevUniverseDigestHex_ = s; - break; - } - case 66: { - String s = input.readStringRequireUtf8(); - - prevComputerDigestHex_ = s; - break; - } - case 74: { - String s = input.readStringRequireUtf8(); - - txDigestHex_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_QuorumTickStructure_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_QuorumTickStructure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - QuorumTickStructure.class, Builder.class); - } - - public static final int EPOCH_FIELD_NUMBER = 2; - private int epoch_; - /** - * uint32 epoch = 2; - * @return The epoch. - */ - @Override - public int getEpoch() { - return epoch_; - } - - public static final int TICK_NUMBER_FIELD_NUMBER = 3; - private int tickNumber_; - /** - * uint32 tick_number = 3; - * @return The tickNumber. - */ - @Override - public int getTickNumber() { - return tickNumber_; - } - - public static final int TIMESTAMP_FIELD_NUMBER = 4; - private long timestamp_; - /** - * uint64 timestamp = 4; - * @return The timestamp. - */ - @Override - public long getTimestamp() { - return timestamp_; - } - - public static final int PREV_RESOURCE_TESTING_DIGEST_HEX_FIELD_NUMBER = 5; - private volatile Object prevResourceTestingDigestHex_; - /** - * string prev_resource_testing_digest_hex = 5; - * @return The prevResourceTestingDigestHex. - */ - @Override - public String getPrevResourceTestingDigestHex() { - Object ref = prevResourceTestingDigestHex_; - if (ref instanceof String) { - return (String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - prevResourceTestingDigestHex_ = s; - return s; - } - } - /** - * string prev_resource_testing_digest_hex = 5; - * @return The bytes for prevResourceTestingDigestHex. - */ - @Override - public com.google.protobuf.ByteString - getPrevResourceTestingDigestHexBytes() { - Object ref = prevResourceTestingDigestHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - prevResourceTestingDigestHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PREV_SPECTRUM_DIGEST_HEX_FIELD_NUMBER = 6; - private volatile Object prevSpectrumDigestHex_; - /** - * string prev_spectrum_digest_hex = 6; - * @return The prevSpectrumDigestHex. - */ - @Override - public String getPrevSpectrumDigestHex() { - Object ref = prevSpectrumDigestHex_; - if (ref instanceof String) { - return (String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - prevSpectrumDigestHex_ = s; - return s; - } - } - /** - * string prev_spectrum_digest_hex = 6; - * @return The bytes for prevSpectrumDigestHex. - */ - @Override - public com.google.protobuf.ByteString - getPrevSpectrumDigestHexBytes() { - Object ref = prevSpectrumDigestHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - prevSpectrumDigestHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PREV_UNIVERSE_DIGEST_HEX_FIELD_NUMBER = 7; - private volatile Object prevUniverseDigestHex_; - /** - * string prev_universe_digest_hex = 7; - * @return The prevUniverseDigestHex. - */ - @Override - public String getPrevUniverseDigestHex() { - Object ref = prevUniverseDigestHex_; - if (ref instanceof String) { - return (String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - prevUniverseDigestHex_ = s; - return s; - } - } - /** - * string prev_universe_digest_hex = 7; - * @return The bytes for prevUniverseDigestHex. - */ - @Override - public com.google.protobuf.ByteString - getPrevUniverseDigestHexBytes() { - Object ref = prevUniverseDigestHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - prevUniverseDigestHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PREV_COMPUTER_DIGEST_HEX_FIELD_NUMBER = 8; - private volatile Object prevComputerDigestHex_; - /** - * string prev_computer_digest_hex = 8; - * @return The prevComputerDigestHex. - */ - @Override - public String getPrevComputerDigestHex() { - Object ref = prevComputerDigestHex_; - if (ref instanceof String) { - return (String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - prevComputerDigestHex_ = s; - return s; - } - } - /** - * string prev_computer_digest_hex = 8; - * @return The bytes for prevComputerDigestHex. - */ - @Override - public com.google.protobuf.ByteString - getPrevComputerDigestHexBytes() { - Object ref = prevComputerDigestHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - prevComputerDigestHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TX_DIGEST_HEX_FIELD_NUMBER = 9; - private volatile Object txDigestHex_; - /** - * string tx_digest_hex = 9; - * @return The txDigestHex. - */ - @Override - public String getTxDigestHex() { - Object ref = txDigestHex_; - if (ref instanceof String) { - return (String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - txDigestHex_ = s; - return s; - } - } - /** - * string tx_digest_hex = 9; - * @return The bytes for txDigestHex. - */ - @Override - public com.google.protobuf.ByteString - getTxDigestHexBytes() { - Object ref = txDigestHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - txDigestHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (epoch_ != 0) { - output.writeUInt32(2, epoch_); - } - if (tickNumber_ != 0) { - output.writeUInt32(3, tickNumber_); - } - if (timestamp_ != 0L) { - output.writeUInt64(4, timestamp_); - } - if (!getPrevResourceTestingDigestHexBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, prevResourceTestingDigestHex_); - } - if (!getPrevSpectrumDigestHexBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, prevSpectrumDigestHex_); - } - if (!getPrevUniverseDigestHexBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, prevUniverseDigestHex_); - } - if (!getPrevComputerDigestHexBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, prevComputerDigestHex_); - } - if (!getTxDigestHexBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, txDigestHex_); - } - unknownFields.writeTo(output); - } - - @Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (epoch_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, epoch_); - } - if (tickNumber_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, tickNumber_); - } - if (timestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, timestamp_); - } - if (!getPrevResourceTestingDigestHexBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, prevResourceTestingDigestHex_); - } - if (!getPrevSpectrumDigestHexBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, prevSpectrumDigestHex_); - } - if (!getPrevUniverseDigestHexBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, prevUniverseDigestHex_); - } - if (!getPrevComputerDigestHexBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, prevComputerDigestHex_); - } - if (!getTxDigestHexBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, txDigestHex_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @Override - public boolean equals(final Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof QuorumTickStructure)) { - return super.equals(obj); - } - QuorumTickStructure other = (QuorumTickStructure) obj; - - if (getEpoch() - != other.getEpoch()) return false; - if (getTickNumber() - != other.getTickNumber()) return false; - if (getTimestamp() - != other.getTimestamp()) return false; - if (!getPrevResourceTestingDigestHex() - .equals(other.getPrevResourceTestingDigestHex())) return false; - if (!getPrevSpectrumDigestHex() - .equals(other.getPrevSpectrumDigestHex())) return false; - if (!getPrevUniverseDigestHex() - .equals(other.getPrevUniverseDigestHex())) return false; - if (!getPrevComputerDigestHex() - .equals(other.getPrevComputerDigestHex())) return false; - if (!getTxDigestHex() - .equals(other.getTxDigestHex())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + EPOCH_FIELD_NUMBER; - hash = (53 * hash) + getEpoch(); - hash = (37 * hash) + TICK_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getTickNumber(); - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimestamp()); - hash = (37 * hash) + PREV_RESOURCE_TESTING_DIGEST_HEX_FIELD_NUMBER; - hash = (53 * hash) + getPrevResourceTestingDigestHex().hashCode(); - hash = (37 * hash) + PREV_SPECTRUM_DIGEST_HEX_FIELD_NUMBER; - hash = (53 * hash) + getPrevSpectrumDigestHex().hashCode(); - hash = (37 * hash) + PREV_UNIVERSE_DIGEST_HEX_FIELD_NUMBER; - hash = (53 * hash) + getPrevUniverseDigestHex().hashCode(); - hash = (37 * hash) + PREV_COMPUTER_DIGEST_HEX_FIELD_NUMBER; - hash = (53 * hash) + getPrevComputerDigestHex().hashCode(); - hash = (37 * hash) + TX_DIGEST_HEX_FIELD_NUMBER; - hash = (53 * hash) + getTxDigestHex().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static QuorumTickStructure parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static QuorumTickStructure parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static QuorumTickStructure parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static QuorumTickStructure parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static QuorumTickStructure parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static QuorumTickStructure parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static QuorumTickStructure parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static QuorumTickStructure 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 QuorumTickStructure parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static QuorumTickStructure 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 QuorumTickStructure parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static QuorumTickStructure parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(QuorumTickStructure prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.QuorumTickStructure} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.QuorumTickStructure) - QuorumTickStructureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_QuorumTickStructure_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_QuorumTickStructure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - QuorumTickStructure.class, Builder.class); - } - - // Construct using org.qubic.archiver.proto.QuorumTickStructure.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @Override - public Builder clear() { - super.clear(); - epoch_ = 0; - - tickNumber_ = 0; - - timestamp_ = 0L; - - prevResourceTestingDigestHex_ = ""; - - prevSpectrumDigestHex_ = ""; - - prevUniverseDigestHex_ = ""; - - prevComputerDigestHex_ = ""; - - txDigestHex_ = ""; - - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_QuorumTickStructure_descriptor; - } - - @Override - public QuorumTickStructure getDefaultInstanceForType() { - return QuorumTickStructure.getDefaultInstance(); - } - - @Override - public QuorumTickStructure build() { - QuorumTickStructure result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public QuorumTickStructure buildPartial() { - QuorumTickStructure result = new QuorumTickStructure(this); - result.epoch_ = epoch_; - result.tickNumber_ = tickNumber_; - result.timestamp_ = timestamp_; - result.prevResourceTestingDigestHex_ = prevResourceTestingDigestHex_; - result.prevSpectrumDigestHex_ = prevSpectrumDigestHex_; - result.prevUniverseDigestHex_ = prevUniverseDigestHex_; - result.prevComputerDigestHex_ = prevComputerDigestHex_; - result.txDigestHex_ = txDigestHex_; - onBuilt(); - return result; - } - - @Override - public Builder clone() { - return super.clone(); - } - @Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.setField(field, value); - } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return super.setRepeatedField(field, index, value); - } - @Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.addRepeatedField(field, value); - } - @Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof QuorumTickStructure) { - return mergeFrom((QuorumTickStructure)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(QuorumTickStructure other) { - if (other == QuorumTickStructure.getDefaultInstance()) return this; - if (other.getEpoch() != 0) { - setEpoch(other.getEpoch()); - } - if (other.getTickNumber() != 0) { - setTickNumber(other.getTickNumber()); - } - if (other.getTimestamp() != 0L) { - setTimestamp(other.getTimestamp()); - } - if (!other.getPrevResourceTestingDigestHex().isEmpty()) { - prevResourceTestingDigestHex_ = other.prevResourceTestingDigestHex_; - onChanged(); - } - if (!other.getPrevSpectrumDigestHex().isEmpty()) { - prevSpectrumDigestHex_ = other.prevSpectrumDigestHex_; - onChanged(); - } - if (!other.getPrevUniverseDigestHex().isEmpty()) { - prevUniverseDigestHex_ = other.prevUniverseDigestHex_; - onChanged(); - } - if (!other.getPrevComputerDigestHex().isEmpty()) { - prevComputerDigestHex_ = other.prevComputerDigestHex_; - onChanged(); - } - if (!other.getTxDigestHex().isEmpty()) { - txDigestHex_ = other.txDigestHex_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - QuorumTickStructure parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (QuorumTickStructure) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int epoch_ ; - /** - * uint32 epoch = 2; - * @return The epoch. - */ - @Override - public int getEpoch() { - return epoch_; - } - /** - * uint32 epoch = 2; - * @param value The epoch to set. - * @return This builder for chaining. - */ - public Builder setEpoch(int value) { - - epoch_ = value; - onChanged(); - return this; - } - /** - * uint32 epoch = 2; - * @return This builder for chaining. - */ - public Builder clearEpoch() { - - epoch_ = 0; - onChanged(); - return this; - } - - private int tickNumber_ ; - /** - * uint32 tick_number = 3; - * @return The tickNumber. - */ - @Override - public int getTickNumber() { - return tickNumber_; - } - /** - * uint32 tick_number = 3; - * @param value The tickNumber to set. - * @return This builder for chaining. - */ - public Builder setTickNumber(int value) { - - tickNumber_ = value; - onChanged(); - return this; - } - /** - * uint32 tick_number = 3; - * @return This builder for chaining. - */ - public Builder clearTickNumber() { - - tickNumber_ = 0; - onChanged(); - return this; - } - - private long timestamp_ ; - /** - * uint64 timestamp = 4; - * @return The timestamp. - */ - @Override - public long getTimestamp() { - return timestamp_; - } - /** - * uint64 timestamp = 4; - * @param value The timestamp to set. - * @return This builder for chaining. - */ - public Builder setTimestamp(long value) { - - timestamp_ = value; - onChanged(); - return this; - } - /** - * uint64 timestamp = 4; - * @return This builder for chaining. - */ - public Builder clearTimestamp() { - - timestamp_ = 0L; - onChanged(); - return this; - } - - private Object prevResourceTestingDigestHex_ = ""; - /** - * string prev_resource_testing_digest_hex = 5; - * @return The prevResourceTestingDigestHex. - */ - public String getPrevResourceTestingDigestHex() { - Object ref = prevResourceTestingDigestHex_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - prevResourceTestingDigestHex_ = s; - return s; - } else { - return (String) ref; - } - } - /** - * string prev_resource_testing_digest_hex = 5; - * @return The bytes for prevResourceTestingDigestHex. - */ - public com.google.protobuf.ByteString - getPrevResourceTestingDigestHexBytes() { - Object ref = prevResourceTestingDigestHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - prevResourceTestingDigestHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string prev_resource_testing_digest_hex = 5; - * @param value The prevResourceTestingDigestHex to set. - * @return This builder for chaining. - */ - public Builder setPrevResourceTestingDigestHex( - String value) { - if (value == null) { - throw new NullPointerException(); - } - - prevResourceTestingDigestHex_ = value; - onChanged(); - return this; - } - /** - * string prev_resource_testing_digest_hex = 5; - * @return This builder for chaining. - */ - public Builder clearPrevResourceTestingDigestHex() { - - prevResourceTestingDigestHex_ = getDefaultInstance().getPrevResourceTestingDigestHex(); - onChanged(); - return this; - } - /** - * string prev_resource_testing_digest_hex = 5; - * @param value The bytes for prevResourceTestingDigestHex to set. - * @return This builder for chaining. - */ - public Builder setPrevResourceTestingDigestHexBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - prevResourceTestingDigestHex_ = value; - onChanged(); - return this; - } - - private Object prevSpectrumDigestHex_ = ""; - /** - * string prev_spectrum_digest_hex = 6; - * @return The prevSpectrumDigestHex. - */ - public String getPrevSpectrumDigestHex() { - Object ref = prevSpectrumDigestHex_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - prevSpectrumDigestHex_ = s; - return s; - } else { - return (String) ref; - } - } - /** - * string prev_spectrum_digest_hex = 6; - * @return The bytes for prevSpectrumDigestHex. - */ - public com.google.protobuf.ByteString - getPrevSpectrumDigestHexBytes() { - Object ref = prevSpectrumDigestHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - prevSpectrumDigestHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string prev_spectrum_digest_hex = 6; - * @param value The prevSpectrumDigestHex to set. - * @return This builder for chaining. - */ - public Builder setPrevSpectrumDigestHex( - String value) { - if (value == null) { - throw new NullPointerException(); - } - - prevSpectrumDigestHex_ = value; - onChanged(); - return this; - } - /** - * string prev_spectrum_digest_hex = 6; - * @return This builder for chaining. - */ - public Builder clearPrevSpectrumDigestHex() { - - prevSpectrumDigestHex_ = getDefaultInstance().getPrevSpectrumDigestHex(); - onChanged(); - return this; - } - /** - * string prev_spectrum_digest_hex = 6; - * @param value The bytes for prevSpectrumDigestHex to set. - * @return This builder for chaining. - */ - public Builder setPrevSpectrumDigestHexBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - prevSpectrumDigestHex_ = value; - onChanged(); - return this; - } - - private Object prevUniverseDigestHex_ = ""; - /** - * string prev_universe_digest_hex = 7; - * @return The prevUniverseDigestHex. - */ - public String getPrevUniverseDigestHex() { - Object ref = prevUniverseDigestHex_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - prevUniverseDigestHex_ = s; - return s; - } else { - return (String) ref; - } - } - /** - * string prev_universe_digest_hex = 7; - * @return The bytes for prevUniverseDigestHex. - */ - public com.google.protobuf.ByteString - getPrevUniverseDigestHexBytes() { - Object ref = prevUniverseDigestHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - prevUniverseDigestHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string prev_universe_digest_hex = 7; - * @param value The prevUniverseDigestHex to set. - * @return This builder for chaining. - */ - public Builder setPrevUniverseDigestHex( - String value) { - if (value == null) { - throw new NullPointerException(); - } - - prevUniverseDigestHex_ = value; - onChanged(); - return this; - } - /** - * string prev_universe_digest_hex = 7; - * @return This builder for chaining. - */ - public Builder clearPrevUniverseDigestHex() { - - prevUniverseDigestHex_ = getDefaultInstance().getPrevUniverseDigestHex(); - onChanged(); - return this; - } - /** - * string prev_universe_digest_hex = 7; - * @param value The bytes for prevUniverseDigestHex to set. - * @return This builder for chaining. - */ - public Builder setPrevUniverseDigestHexBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - prevUniverseDigestHex_ = value; - onChanged(); - return this; - } - - private Object prevComputerDigestHex_ = ""; - /** - * string prev_computer_digest_hex = 8; - * @return The prevComputerDigestHex. - */ - public String getPrevComputerDigestHex() { - Object ref = prevComputerDigestHex_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - prevComputerDigestHex_ = s; - return s; - } else { - return (String) ref; - } - } - /** - * string prev_computer_digest_hex = 8; - * @return The bytes for prevComputerDigestHex. - */ - public com.google.protobuf.ByteString - getPrevComputerDigestHexBytes() { - Object ref = prevComputerDigestHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - prevComputerDigestHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string prev_computer_digest_hex = 8; - * @param value The prevComputerDigestHex to set. - * @return This builder for chaining. - */ - public Builder setPrevComputerDigestHex( - String value) { - if (value == null) { - throw new NullPointerException(); - } - - prevComputerDigestHex_ = value; - onChanged(); - return this; - } - /** - * string prev_computer_digest_hex = 8; - * @return This builder for chaining. - */ - public Builder clearPrevComputerDigestHex() { - - prevComputerDigestHex_ = getDefaultInstance().getPrevComputerDigestHex(); - onChanged(); - return this; - } - /** - * string prev_computer_digest_hex = 8; - * @param value The bytes for prevComputerDigestHex to set. - * @return This builder for chaining. - */ - public Builder setPrevComputerDigestHexBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - prevComputerDigestHex_ = value; - onChanged(); - return this; - } - - private Object txDigestHex_ = ""; - /** - * string tx_digest_hex = 9; - * @return The txDigestHex. - */ - public String getTxDigestHex() { - Object ref = txDigestHex_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - txDigestHex_ = s; - return s; - } else { - return (String) ref; - } - } - /** - * string tx_digest_hex = 9; - * @return The bytes for txDigestHex. - */ - public com.google.protobuf.ByteString - getTxDigestHexBytes() { - Object ref = txDigestHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - txDigestHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string tx_digest_hex = 9; - * @param value The txDigestHex to set. - * @return This builder for chaining. - */ - public Builder setTxDigestHex( - String value) { - if (value == null) { - throw new NullPointerException(); - } - - txDigestHex_ = value; - onChanged(); - return this; - } - /** - * string tx_digest_hex = 9; - * @return This builder for chaining. - */ - public Builder clearTxDigestHex() { - - txDigestHex_ = getDefaultInstance().getTxDigestHex(); - onChanged(); - return this; - } - /** - * string tx_digest_hex = 9; - * @param value The bytes for txDigestHex to set. - * @return This builder for chaining. - */ - public Builder setTxDigestHexBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - txDigestHex_ = value; - onChanged(); - return this; - } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.QuorumTickStructure) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.QuorumTickStructure) - private static final QuorumTickStructure DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new QuorumTickStructure(); - } - - public static QuorumTickStructure getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public QuorumTickStructure parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QuorumTickStructure(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public QuorumTickStructure getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/QuorumTickStructureOrBuilder.java b/src/main/java/org/qubic/archiver/proto/QuorumTickStructureOrBuilder.java deleted file mode 100644 index b33323c..0000000 --- a/src/main/java/org/qubic/archiver/proto/QuorumTickStructureOrBuilder.java +++ /dev/null @@ -1,87 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface QuorumTickStructureOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.QuorumTickStructure) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 epoch = 2; - * @return The epoch. - */ - int getEpoch(); - - /** - * uint32 tick_number = 3; - * @return The tickNumber. - */ - int getTickNumber(); - - /** - * uint64 timestamp = 4; - * @return The timestamp. - */ - long getTimestamp(); - - /** - * string prev_resource_testing_digest_hex = 5; - * @return The prevResourceTestingDigestHex. - */ - java.lang.String getPrevResourceTestingDigestHex(); - /** - * string prev_resource_testing_digest_hex = 5; - * @return The bytes for prevResourceTestingDigestHex. - */ - com.google.protobuf.ByteString - getPrevResourceTestingDigestHexBytes(); - - /** - * string prev_spectrum_digest_hex = 6; - * @return The prevSpectrumDigestHex. - */ - java.lang.String getPrevSpectrumDigestHex(); - /** - * string prev_spectrum_digest_hex = 6; - * @return The bytes for prevSpectrumDigestHex. - */ - com.google.protobuf.ByteString - getPrevSpectrumDigestHexBytes(); - - /** - * string prev_universe_digest_hex = 7; - * @return The prevUniverseDigestHex. - */ - java.lang.String getPrevUniverseDigestHex(); - /** - * string prev_universe_digest_hex = 7; - * @return The bytes for prevUniverseDigestHex. - */ - com.google.protobuf.ByteString - getPrevUniverseDigestHexBytes(); - - /** - * string prev_computer_digest_hex = 8; - * @return The prevComputerDigestHex. - */ - java.lang.String getPrevComputerDigestHex(); - /** - * string prev_computer_digest_hex = 8; - * @return The bytes for prevComputerDigestHex. - */ - com.google.protobuf.ByteString - getPrevComputerDigestHexBytes(); - - /** - * string tx_digest_hex = 9; - * @return The txDigestHex. - */ - java.lang.String getTxDigestHex(); - /** - * string tx_digest_hex = 9; - * @return The bytes for txDigestHex. - */ - com.google.protobuf.ByteString - getTxDigestHexBytes(); -} diff --git a/src/main/java/org/qubic/archiver/proto/SendManyTransaction.java b/src/main/java/org/qubic/archiver/proto/SendManyTransaction.java deleted file mode 100644 index fd6a54e..0000000 --- a/src/main/java/org/qubic/archiver/proto/SendManyTransaction.java +++ /dev/null @@ -1,1313 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.SendManyTransaction} - */ -public final class SendManyTransaction extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.SendManyTransaction) - SendManyTransactionOrBuilder { -private static final long serialVersionUID = 0L; - // Use SendManyTransaction.newBuilder() to construct. - private SendManyTransaction(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SendManyTransaction() { - sourceId_ = ""; - transfers_ = java.util.Collections.emptyList(); - signatureHex_ = ""; - txId_ = ""; - } - - @Override - @SuppressWarnings({"unused"}) - protected Object newInstance( - UnusedPrivateParameter unused) { - return new SendManyTransaction(); - } - - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SendManyTransaction( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - String s = input.readStringRequireUtf8(); - - sourceId_ = s; - break; - } - case 16: { - - tickNumber_ = input.readUInt32(); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - transfers_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - transfers_.add( - input.readMessage(SendManyTransfer.parser(), extensionRegistry)); - break; - } - case 32: { - - totalAmount_ = input.readInt64(); - break; - } - case 42: { - String s = input.readStringRequireUtf8(); - - signatureHex_ = s; - break; - } - case 50: { - String s = input.readStringRequireUtf8(); - - txId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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) != 0)) { - transfers_ = java.util.Collections.unmodifiableList(transfers_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_SendManyTransaction_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_SendManyTransaction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - SendManyTransaction.class, Builder.class); - } - - public static final int SOURCE_ID_FIELD_NUMBER = 1; - private volatile Object sourceId_; - /** - * string source_id = 1; - * @return The sourceId. - */ - @Override - public String getSourceId() { - Object ref = sourceId_; - if (ref instanceof String) { - return (String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - sourceId_ = s; - return s; - } - } - /** - * string source_id = 1; - * @return The bytes for sourceId. - */ - @Override - public com.google.protobuf.ByteString - getSourceIdBytes() { - Object ref = sourceId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - sourceId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TICK_NUMBER_FIELD_NUMBER = 2; - private int tickNumber_; - /** - * uint32 tick_number = 2; - * @return The tickNumber. - */ - @Override - public int getTickNumber() { - return tickNumber_; - } - - public static final int TRANSFERS_FIELD_NUMBER = 3; - private java.util.List transfers_; - /** - * repeated .qubic.archiver.archive.pb.SendManyTransfer transfers = 3; - */ - @Override - public java.util.List getTransfersList() { - return transfers_; - } - /** - * repeated .qubic.archiver.archive.pb.SendManyTransfer transfers = 3; - */ - @Override - public java.util.List - getTransfersOrBuilderList() { - return transfers_; - } - /** - * repeated .qubic.archiver.archive.pb.SendManyTransfer transfers = 3; - */ - @Override - public int getTransfersCount() { - return transfers_.size(); - } - /** - * repeated .qubic.archiver.archive.pb.SendManyTransfer transfers = 3; - */ - @Override - public SendManyTransfer getTransfers(int index) { - return transfers_.get(index); - } - /** - * repeated .qubic.archiver.archive.pb.SendManyTransfer transfers = 3; - */ - @Override - public SendManyTransferOrBuilder getTransfersOrBuilder( - int index) { - return transfers_.get(index); - } - - public static final int TOTAL_AMOUNT_FIELD_NUMBER = 4; - private long totalAmount_; - /** - * int64 total_amount = 4; - * @return The totalAmount. - */ - @Override - public long getTotalAmount() { - return totalAmount_; - } - - public static final int SIGNATURE_HEX_FIELD_NUMBER = 5; - private volatile Object signatureHex_; - /** - * string signature_hex = 5; - * @return The signatureHex. - */ - @Override - public String getSignatureHex() { - Object ref = signatureHex_; - if (ref instanceof String) { - return (String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - signatureHex_ = s; - return s; - } - } - /** - * string signature_hex = 5; - * @return The bytes for signatureHex. - */ - @Override - public com.google.protobuf.ByteString - getSignatureHexBytes() { - Object ref = signatureHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - signatureHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TX_ID_FIELD_NUMBER = 6; - private volatile Object txId_; - /** - * string tx_id = 6; - * @return The txId. - */ - @Override - public String getTxId() { - Object ref = txId_; - if (ref instanceof String) { - return (String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - txId_ = s; - return s; - } - } - /** - * string tx_id = 6; - * @return The bytes for txId. - */ - @Override - public com.google.protobuf.ByteString - getTxIdBytes() { - Object ref = txId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - txId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getSourceIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceId_); - } - if (tickNumber_ != 0) { - output.writeUInt32(2, tickNumber_); - } - for (int i = 0; i < transfers_.size(); i++) { - output.writeMessage(3, transfers_.get(i)); - } - if (totalAmount_ != 0L) { - output.writeInt64(4, totalAmount_); - } - if (!getSignatureHexBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, signatureHex_); - } - if (!getTxIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, txId_); - } - unknownFields.writeTo(output); - } - - @Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getSourceIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sourceId_); - } - if (tickNumber_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, tickNumber_); - } - for (int i = 0; i < transfers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, transfers_.get(i)); - } - if (totalAmount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, totalAmount_); - } - if (!getSignatureHexBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, signatureHex_); - } - if (!getTxIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, txId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @Override - public boolean equals(final Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof SendManyTransaction)) { - return super.equals(obj); - } - SendManyTransaction other = (SendManyTransaction) obj; - - if (!getSourceId() - .equals(other.getSourceId())) return false; - if (getTickNumber() - != other.getTickNumber()) return false; - if (!getTransfersList() - .equals(other.getTransfersList())) return false; - if (getTotalAmount() - != other.getTotalAmount()) return false; - if (!getSignatureHex() - .equals(other.getSignatureHex())) return false; - if (!getTxId() - .equals(other.getTxId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SOURCE_ID_FIELD_NUMBER; - hash = (53 * hash) + getSourceId().hashCode(); - hash = (37 * hash) + TICK_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getTickNumber(); - if (getTransfersCount() > 0) { - hash = (37 * hash) + TRANSFERS_FIELD_NUMBER; - hash = (53 * hash) + getTransfersList().hashCode(); - } - hash = (37 * hash) + TOTAL_AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalAmount()); - hash = (37 * hash) + SIGNATURE_HEX_FIELD_NUMBER; - hash = (53 * hash) + getSignatureHex().hashCode(); - hash = (37 * hash) + TX_ID_FIELD_NUMBER; - hash = (53 * hash) + getTxId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static SendManyTransaction parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static SendManyTransaction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static SendManyTransaction parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static SendManyTransaction parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static SendManyTransaction parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static SendManyTransaction parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static SendManyTransaction parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static SendManyTransaction 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 SendManyTransaction parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static SendManyTransaction 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 SendManyTransaction parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static SendManyTransaction parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(SendManyTransaction prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.SendManyTransaction} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.SendManyTransaction) - SendManyTransactionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_SendManyTransaction_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_SendManyTransaction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - SendManyTransaction.class, Builder.class); - } - - // Construct using org.qubic.archiver.proto.SendManyTransaction.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTransfersFieldBuilder(); - } - } - @Override - public Builder clear() { - super.clear(); - sourceId_ = ""; - - tickNumber_ = 0; - - if (transfersBuilder_ == null) { - transfers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - transfersBuilder_.clear(); - } - totalAmount_ = 0L; - - signatureHex_ = ""; - - txId_ = ""; - - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_SendManyTransaction_descriptor; - } - - @Override - public SendManyTransaction getDefaultInstanceForType() { - return SendManyTransaction.getDefaultInstance(); - } - - @Override - public SendManyTransaction build() { - SendManyTransaction result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public SendManyTransaction buildPartial() { - SendManyTransaction result = new SendManyTransaction(this); - int from_bitField0_ = bitField0_; - result.sourceId_ = sourceId_; - result.tickNumber_ = tickNumber_; - if (transfersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - transfers_ = java.util.Collections.unmodifiableList(transfers_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.transfers_ = transfers_; - } else { - result.transfers_ = transfersBuilder_.build(); - } - result.totalAmount_ = totalAmount_; - result.signatureHex_ = signatureHex_; - result.txId_ = txId_; - onBuilt(); - return result; - } - - @Override - public Builder clone() { - return super.clone(); - } - @Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.setField(field, value); - } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return super.setRepeatedField(field, index, value); - } - @Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.addRepeatedField(field, value); - } - @Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof SendManyTransaction) { - return mergeFrom((SendManyTransaction)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(SendManyTransaction other) { - if (other == SendManyTransaction.getDefaultInstance()) return this; - if (!other.getSourceId().isEmpty()) { - sourceId_ = other.sourceId_; - onChanged(); - } - if (other.getTickNumber() != 0) { - setTickNumber(other.getTickNumber()); - } - if (transfersBuilder_ == null) { - if (!other.transfers_.isEmpty()) { - if (transfers_.isEmpty()) { - transfers_ = other.transfers_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTransfersIsMutable(); - transfers_.addAll(other.transfers_); - } - onChanged(); - } - } else { - if (!other.transfers_.isEmpty()) { - if (transfersBuilder_.isEmpty()) { - transfersBuilder_.dispose(); - transfersBuilder_ = null; - transfers_ = other.transfers_; - bitField0_ = (bitField0_ & ~0x00000001); - transfersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTransfersFieldBuilder() : null; - } else { - transfersBuilder_.addAllMessages(other.transfers_); - } - } - } - if (other.getTotalAmount() != 0L) { - setTotalAmount(other.getTotalAmount()); - } - if (!other.getSignatureHex().isEmpty()) { - signatureHex_ = other.signatureHex_; - onChanged(); - } - if (!other.getTxId().isEmpty()) { - txId_ = other.txId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - SendManyTransaction parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (SendManyTransaction) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private Object sourceId_ = ""; - /** - * string source_id = 1; - * @return The sourceId. - */ - public String getSourceId() { - Object ref = sourceId_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - sourceId_ = s; - return s; - } else { - return (String) ref; - } - } - /** - * string source_id = 1; - * @return The bytes for sourceId. - */ - public com.google.protobuf.ByteString - getSourceIdBytes() { - Object ref = sourceId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - sourceId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string source_id = 1; - * @param value The sourceId to set. - * @return This builder for chaining. - */ - public Builder setSourceId( - String value) { - if (value == null) { - throw new NullPointerException(); - } - - sourceId_ = value; - onChanged(); - return this; - } - /** - * string source_id = 1; - * @return This builder for chaining. - */ - public Builder clearSourceId() { - - sourceId_ = getDefaultInstance().getSourceId(); - onChanged(); - return this; - } - /** - * string source_id = 1; - * @param value The bytes for sourceId to set. - * @return This builder for chaining. - */ - public Builder setSourceIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - sourceId_ = value; - onChanged(); - return this; - } - - private int tickNumber_ ; - /** - * uint32 tick_number = 2; - * @return The tickNumber. - */ - @Override - public int getTickNumber() { - return tickNumber_; - } - /** - * uint32 tick_number = 2; - * @param value The tickNumber to set. - * @return This builder for chaining. - */ - public Builder setTickNumber(int value) { - - tickNumber_ = value; - onChanged(); - return this; - } - /** - * uint32 tick_number = 2; - * @return This builder for chaining. - */ - public Builder clearTickNumber() { - - tickNumber_ = 0; - onChanged(); - return this; - } - - private java.util.List transfers_ = - java.util.Collections.emptyList(); - private void ensureTransfersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - transfers_ = new java.util.ArrayList(transfers_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - SendManyTransfer, SendManyTransfer.Builder, SendManyTransferOrBuilder> transfersBuilder_; - - /** - * repeated .qubic.archiver.archive.pb.SendManyTransfer transfers = 3; - */ - public java.util.List getTransfersList() { - if (transfersBuilder_ == null) { - return java.util.Collections.unmodifiableList(transfers_); - } else { - return transfersBuilder_.getMessageList(); - } - } - /** - * repeated .qubic.archiver.archive.pb.SendManyTransfer transfers = 3; - */ - public int getTransfersCount() { - if (transfersBuilder_ == null) { - return transfers_.size(); - } else { - return transfersBuilder_.getCount(); - } - } - /** - * repeated .qubic.archiver.archive.pb.SendManyTransfer transfers = 3; - */ - public SendManyTransfer getTransfers(int index) { - if (transfersBuilder_ == null) { - return transfers_.get(index); - } else { - return transfersBuilder_.getMessage(index); - } - } - /** - * repeated .qubic.archiver.archive.pb.SendManyTransfer transfers = 3; - */ - public Builder setTransfers( - int index, SendManyTransfer value) { - if (transfersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransfersIsMutable(); - transfers_.set(index, value); - onChanged(); - } else { - transfersBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.SendManyTransfer transfers = 3; - */ - public Builder setTransfers( - int index, SendManyTransfer.Builder builderForValue) { - if (transfersBuilder_ == null) { - ensureTransfersIsMutable(); - transfers_.set(index, builderForValue.build()); - onChanged(); - } else { - transfersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.SendManyTransfer transfers = 3; - */ - public Builder addTransfers(SendManyTransfer value) { - if (transfersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransfersIsMutable(); - transfers_.add(value); - onChanged(); - } else { - transfersBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.SendManyTransfer transfers = 3; - */ - public Builder addTransfers( - int index, SendManyTransfer value) { - if (transfersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransfersIsMutable(); - transfers_.add(index, value); - onChanged(); - } else { - transfersBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.SendManyTransfer transfers = 3; - */ - public Builder addTransfers( - SendManyTransfer.Builder builderForValue) { - if (transfersBuilder_ == null) { - ensureTransfersIsMutable(); - transfers_.add(builderForValue.build()); - onChanged(); - } else { - transfersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.SendManyTransfer transfers = 3; - */ - public Builder addTransfers( - int index, SendManyTransfer.Builder builderForValue) { - if (transfersBuilder_ == null) { - ensureTransfersIsMutable(); - transfers_.add(index, builderForValue.build()); - onChanged(); - } else { - transfersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.SendManyTransfer transfers = 3; - */ - public Builder addAllTransfers( - Iterable values) { - if (transfersBuilder_ == null) { - ensureTransfersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, transfers_); - onChanged(); - } else { - transfersBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.SendManyTransfer transfers = 3; - */ - public Builder clearTransfers() { - if (transfersBuilder_ == null) { - transfers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - transfersBuilder_.clear(); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.SendManyTransfer transfers = 3; - */ - public Builder removeTransfers(int index) { - if (transfersBuilder_ == null) { - ensureTransfersIsMutable(); - transfers_.remove(index); - onChanged(); - } else { - transfersBuilder_.remove(index); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.SendManyTransfer transfers = 3; - */ - public SendManyTransfer.Builder getTransfersBuilder( - int index) { - return getTransfersFieldBuilder().getBuilder(index); - } - /** - * repeated .qubic.archiver.archive.pb.SendManyTransfer transfers = 3; - */ - public SendManyTransferOrBuilder getTransfersOrBuilder( - int index) { - if (transfersBuilder_ == null) { - return transfers_.get(index); } else { - return transfersBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .qubic.archiver.archive.pb.SendManyTransfer transfers = 3; - */ - public java.util.List - getTransfersOrBuilderList() { - if (transfersBuilder_ != null) { - return transfersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(transfers_); - } - } - /** - * repeated .qubic.archiver.archive.pb.SendManyTransfer transfers = 3; - */ - public SendManyTransfer.Builder addTransfersBuilder() { - return getTransfersFieldBuilder().addBuilder( - SendManyTransfer.getDefaultInstance()); - } - /** - * repeated .qubic.archiver.archive.pb.SendManyTransfer transfers = 3; - */ - public SendManyTransfer.Builder addTransfersBuilder( - int index) { - return getTransfersFieldBuilder().addBuilder( - index, SendManyTransfer.getDefaultInstance()); - } - /** - * repeated .qubic.archiver.archive.pb.SendManyTransfer transfers = 3; - */ - public java.util.List - getTransfersBuilderList() { - return getTransfersFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - SendManyTransfer, SendManyTransfer.Builder, SendManyTransferOrBuilder> - getTransfersFieldBuilder() { - if (transfersBuilder_ == null) { - transfersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - SendManyTransfer, SendManyTransfer.Builder, SendManyTransferOrBuilder>( - transfers_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - transfers_ = null; - } - return transfersBuilder_; - } - - private long totalAmount_ ; - /** - * int64 total_amount = 4; - * @return The totalAmount. - */ - @Override - public long getTotalAmount() { - return totalAmount_; - } - /** - * int64 total_amount = 4; - * @param value The totalAmount to set. - * @return This builder for chaining. - */ - public Builder setTotalAmount(long value) { - - totalAmount_ = value; - onChanged(); - return this; - } - /** - * int64 total_amount = 4; - * @return This builder for chaining. - */ - public Builder clearTotalAmount() { - - totalAmount_ = 0L; - onChanged(); - return this; - } - - private Object signatureHex_ = ""; - /** - * string signature_hex = 5; - * @return The signatureHex. - */ - public String getSignatureHex() { - Object ref = signatureHex_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - signatureHex_ = s; - return s; - } else { - return (String) ref; - } - } - /** - * string signature_hex = 5; - * @return The bytes for signatureHex. - */ - public com.google.protobuf.ByteString - getSignatureHexBytes() { - Object ref = signatureHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - signatureHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string signature_hex = 5; - * @param value The signatureHex to set. - * @return This builder for chaining. - */ - public Builder setSignatureHex( - String value) { - if (value == null) { - throw new NullPointerException(); - } - - signatureHex_ = value; - onChanged(); - return this; - } - /** - * string signature_hex = 5; - * @return This builder for chaining. - */ - public Builder clearSignatureHex() { - - signatureHex_ = getDefaultInstance().getSignatureHex(); - onChanged(); - return this; - } - /** - * string signature_hex = 5; - * @param value The bytes for signatureHex to set. - * @return This builder for chaining. - */ - public Builder setSignatureHexBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - signatureHex_ = value; - onChanged(); - return this; - } - - private Object txId_ = ""; - /** - * string tx_id = 6; - * @return The txId. - */ - public String getTxId() { - Object ref = txId_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - txId_ = s; - return s; - } else { - return (String) ref; - } - } - /** - * string tx_id = 6; - * @return The bytes for txId. - */ - public com.google.protobuf.ByteString - getTxIdBytes() { - Object ref = txId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - txId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string tx_id = 6; - * @param value The txId to set. - * @return This builder for chaining. - */ - public Builder setTxId( - String value) { - if (value == null) { - throw new NullPointerException(); - } - - txId_ = value; - onChanged(); - return this; - } - /** - * string tx_id = 6; - * @return This builder for chaining. - */ - public Builder clearTxId() { - - txId_ = getDefaultInstance().getTxId(); - onChanged(); - return this; - } - /** - * string tx_id = 6; - * @param value The bytes for txId to set. - * @return This builder for chaining. - */ - public Builder setTxIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - txId_ = value; - onChanged(); - return this; - } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.SendManyTransaction) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.SendManyTransaction) - private static final SendManyTransaction DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new SendManyTransaction(); - } - - public static SendManyTransaction getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public SendManyTransaction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SendManyTransaction(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public SendManyTransaction getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/SendManyTransactionData.java b/src/main/java/org/qubic/archiver/proto/SendManyTransactionData.java deleted file mode 100644 index 43b061a..0000000 --- a/src/main/java/org/qubic/archiver/proto/SendManyTransactionData.java +++ /dev/null @@ -1,745 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - *
- *Wrapper around send many transaction and additional data
- * 
- * - * Protobuf type {@code qubic.archiver.archive.pb.SendManyTransactionData} - */ -public final class SendManyTransactionData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.SendManyTransactionData) - SendManyTransactionDataOrBuilder { -private static final long serialVersionUID = 0L; - // Use SendManyTransactionData.newBuilder() to construct. - private SendManyTransactionData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SendManyTransactionData() { - } - - @Override - @SuppressWarnings({"unused"}) - protected Object newInstance( - UnusedPrivateParameter unused) { - return new SendManyTransactionData(); - } - - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SendManyTransactionData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: { - SendManyTransaction.Builder subBuilder = null; - if (transaction_ != null) { - subBuilder = transaction_.toBuilder(); - } - transaction_ = input.readMessage(SendManyTransaction.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(transaction_); - transaction_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - timestamp_ = input.readUInt64(); - break; - } - case 32: { - - moneyFlew_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_SendManyTransactionData_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_SendManyTransactionData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - SendManyTransactionData.class, Builder.class); - } - - public static final int TRANSACTION_FIELD_NUMBER = 2; - private SendManyTransaction transaction_; - /** - * .qubic.archiver.archive.pb.SendManyTransaction transaction = 2; - * @return Whether the transaction field is set. - */ - @Override - public boolean hasTransaction() { - return transaction_ != null; - } - /** - * .qubic.archiver.archive.pb.SendManyTransaction transaction = 2; - * @return The transaction. - */ - @Override - public SendManyTransaction getTransaction() { - return transaction_ == null ? SendManyTransaction.getDefaultInstance() : transaction_; - } - /** - * .qubic.archiver.archive.pb.SendManyTransaction transaction = 2; - */ - @Override - public SendManyTransactionOrBuilder getTransactionOrBuilder() { - return getTransaction(); - } - - public static final int TIMESTAMP_FIELD_NUMBER = 3; - private long timestamp_; - /** - * uint64 timestamp = 3; - * @return The timestamp. - */ - @Override - public long getTimestamp() { - return timestamp_; - } - - public static final int MONEY_FLEW_FIELD_NUMBER = 4; - private boolean moneyFlew_; - /** - * bool money_flew = 4; - * @return The moneyFlew. - */ - @Override - public boolean getMoneyFlew() { - return moneyFlew_; - } - - private byte memoizedIsInitialized = -1; - @Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (transaction_ != null) { - output.writeMessage(2, getTransaction()); - } - if (timestamp_ != 0L) { - output.writeUInt64(3, timestamp_); - } - if (moneyFlew_ != false) { - output.writeBool(4, moneyFlew_); - } - unknownFields.writeTo(output); - } - - @Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (transaction_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTransaction()); - } - if (timestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, timestamp_); - } - if (moneyFlew_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, moneyFlew_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @Override - public boolean equals(final Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof SendManyTransactionData)) { - return super.equals(obj); - } - SendManyTransactionData other = (SendManyTransactionData) obj; - - if (hasTransaction() != other.hasTransaction()) return false; - if (hasTransaction()) { - if (!getTransaction() - .equals(other.getTransaction())) return false; - } - if (getTimestamp() - != other.getTimestamp()) return false; - if (getMoneyFlew() - != other.getMoneyFlew()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasTransaction()) { - hash = (37 * hash) + TRANSACTION_FIELD_NUMBER; - hash = (53 * hash) + getTransaction().hashCode(); - } - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimestamp()); - hash = (37 * hash) + MONEY_FLEW_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getMoneyFlew()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static SendManyTransactionData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static SendManyTransactionData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static SendManyTransactionData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static SendManyTransactionData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static SendManyTransactionData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static SendManyTransactionData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static SendManyTransactionData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static SendManyTransactionData 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 SendManyTransactionData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static SendManyTransactionData 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 SendManyTransactionData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static SendManyTransactionData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(SendManyTransactionData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   *Wrapper around send many transaction and additional data
-   * 
- * - * Protobuf type {@code qubic.archiver.archive.pb.SendManyTransactionData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.SendManyTransactionData) - SendManyTransactionDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_SendManyTransactionData_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_SendManyTransactionData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - SendManyTransactionData.class, Builder.class); - } - - // Construct using org.qubic.archiver.proto.SendManyTransactionData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @Override - public Builder clear() { - super.clear(); - if (transactionBuilder_ == null) { - transaction_ = null; - } else { - transaction_ = null; - transactionBuilder_ = null; - } - timestamp_ = 0L; - - moneyFlew_ = false; - - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_SendManyTransactionData_descriptor; - } - - @Override - public SendManyTransactionData getDefaultInstanceForType() { - return SendManyTransactionData.getDefaultInstance(); - } - - @Override - public SendManyTransactionData build() { - SendManyTransactionData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public SendManyTransactionData buildPartial() { - SendManyTransactionData result = new SendManyTransactionData(this); - if (transactionBuilder_ == null) { - result.transaction_ = transaction_; - } else { - result.transaction_ = transactionBuilder_.build(); - } - result.timestamp_ = timestamp_; - result.moneyFlew_ = moneyFlew_; - onBuilt(); - return result; - } - - @Override - public Builder clone() { - return super.clone(); - } - @Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.setField(field, value); - } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return super.setRepeatedField(field, index, value); - } - @Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.addRepeatedField(field, value); - } - @Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof SendManyTransactionData) { - return mergeFrom((SendManyTransactionData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(SendManyTransactionData other) { - if (other == SendManyTransactionData.getDefaultInstance()) return this; - if (other.hasTransaction()) { - mergeTransaction(other.getTransaction()); - } - if (other.getTimestamp() != 0L) { - setTimestamp(other.getTimestamp()); - } - if (other.getMoneyFlew() != false) { - setMoneyFlew(other.getMoneyFlew()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - SendManyTransactionData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (SendManyTransactionData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private SendManyTransaction transaction_; - private com.google.protobuf.SingleFieldBuilderV3< - SendManyTransaction, SendManyTransaction.Builder, SendManyTransactionOrBuilder> transactionBuilder_; - /** - * .qubic.archiver.archive.pb.SendManyTransaction transaction = 2; - * @return Whether the transaction field is set. - */ - public boolean hasTransaction() { - return transactionBuilder_ != null || transaction_ != null; - } - /** - * .qubic.archiver.archive.pb.SendManyTransaction transaction = 2; - * @return The transaction. - */ - public SendManyTransaction getTransaction() { - if (transactionBuilder_ == null) { - return transaction_ == null ? SendManyTransaction.getDefaultInstance() : transaction_; - } else { - return transactionBuilder_.getMessage(); - } - } - /** - * .qubic.archiver.archive.pb.SendManyTransaction transaction = 2; - */ - public Builder setTransaction(SendManyTransaction value) { - if (transactionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - transaction_ = value; - onChanged(); - } else { - transactionBuilder_.setMessage(value); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.SendManyTransaction transaction = 2; - */ - public Builder setTransaction( - SendManyTransaction.Builder builderForValue) { - if (transactionBuilder_ == null) { - transaction_ = builderForValue.build(); - onChanged(); - } else { - transactionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.SendManyTransaction transaction = 2; - */ - public Builder mergeTransaction(SendManyTransaction value) { - if (transactionBuilder_ == null) { - if (transaction_ != null) { - transaction_ = - SendManyTransaction.newBuilder(transaction_).mergeFrom(value).buildPartial(); - } else { - transaction_ = value; - } - onChanged(); - } else { - transactionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.SendManyTransaction transaction = 2; - */ - public Builder clearTransaction() { - if (transactionBuilder_ == null) { - transaction_ = null; - onChanged(); - } else { - transaction_ = null; - transactionBuilder_ = null; - } - - return this; - } - /** - * .qubic.archiver.archive.pb.SendManyTransaction transaction = 2; - */ - public SendManyTransaction.Builder getTransactionBuilder() { - - onChanged(); - return getTransactionFieldBuilder().getBuilder(); - } - /** - * .qubic.archiver.archive.pb.SendManyTransaction transaction = 2; - */ - public SendManyTransactionOrBuilder getTransactionOrBuilder() { - if (transactionBuilder_ != null) { - return transactionBuilder_.getMessageOrBuilder(); - } else { - return transaction_ == null ? - SendManyTransaction.getDefaultInstance() : transaction_; - } - } - /** - * .qubic.archiver.archive.pb.SendManyTransaction transaction = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - SendManyTransaction, SendManyTransaction.Builder, SendManyTransactionOrBuilder> - getTransactionFieldBuilder() { - if (transactionBuilder_ == null) { - transactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - SendManyTransaction, SendManyTransaction.Builder, SendManyTransactionOrBuilder>( - getTransaction(), - getParentForChildren(), - isClean()); - transaction_ = null; - } - return transactionBuilder_; - } - - private long timestamp_ ; - /** - * uint64 timestamp = 3; - * @return The timestamp. - */ - @Override - public long getTimestamp() { - return timestamp_; - } - /** - * uint64 timestamp = 3; - * @param value The timestamp to set. - * @return This builder for chaining. - */ - public Builder setTimestamp(long value) { - - timestamp_ = value; - onChanged(); - return this; - } - /** - * uint64 timestamp = 3; - * @return This builder for chaining. - */ - public Builder clearTimestamp() { - - timestamp_ = 0L; - onChanged(); - return this; - } - - private boolean moneyFlew_ ; - /** - * bool money_flew = 4; - * @return The moneyFlew. - */ - @Override - public boolean getMoneyFlew() { - return moneyFlew_; - } - /** - * bool money_flew = 4; - * @param value The moneyFlew to set. - * @return This builder for chaining. - */ - public Builder setMoneyFlew(boolean value) { - - moneyFlew_ = value; - onChanged(); - return this; - } - /** - * bool money_flew = 4; - * @return This builder for chaining. - */ - public Builder clearMoneyFlew() { - - moneyFlew_ = false; - onChanged(); - return this; - } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.SendManyTransactionData) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.SendManyTransactionData) - private static final SendManyTransactionData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new SendManyTransactionData(); - } - - public static SendManyTransactionData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public SendManyTransactionData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SendManyTransactionData(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public SendManyTransactionData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/SendManyTransactionDataOrBuilder.java b/src/main/java/org/qubic/archiver/proto/SendManyTransactionDataOrBuilder.java deleted file mode 100644 index 46966a4..0000000 --- a/src/main/java/org/qubic/archiver/proto/SendManyTransactionDataOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface SendManyTransactionDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.SendManyTransactionData) - com.google.protobuf.MessageOrBuilder { - - /** - * .qubic.archiver.archive.pb.SendManyTransaction transaction = 2; - * @return Whether the transaction field is set. - */ - boolean hasTransaction(); - /** - * .qubic.archiver.archive.pb.SendManyTransaction transaction = 2; - * @return The transaction. - */ - org.qubic.archiver.proto.SendManyTransaction getTransaction(); - /** - * .qubic.archiver.archive.pb.SendManyTransaction transaction = 2; - */ - org.qubic.archiver.proto.SendManyTransactionOrBuilder getTransactionOrBuilder(); - - /** - * uint64 timestamp = 3; - * @return The timestamp. - */ - long getTimestamp(); - - /** - * bool money_flew = 4; - * @return The moneyFlew. - */ - boolean getMoneyFlew(); -} diff --git a/src/main/java/org/qubic/archiver/proto/SendManyTransactionOrBuilder.java b/src/main/java/org/qubic/archiver/proto/SendManyTransactionOrBuilder.java deleted file mode 100644 index 3c3d8a0..0000000 --- a/src/main/java/org/qubic/archiver/proto/SendManyTransactionOrBuilder.java +++ /dev/null @@ -1,81 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface SendManyTransactionOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.SendManyTransaction) - com.google.protobuf.MessageOrBuilder { - - /** - * string source_id = 1; - * @return The sourceId. - */ - java.lang.String getSourceId(); - /** - * string source_id = 1; - * @return The bytes for sourceId. - */ - com.google.protobuf.ByteString - getSourceIdBytes(); - - /** - * uint32 tick_number = 2; - * @return The tickNumber. - */ - int getTickNumber(); - - /** - * repeated .qubic.archiver.archive.pb.SendManyTransfer transfers = 3; - */ - java.util.List - getTransfersList(); - /** - * repeated .qubic.archiver.archive.pb.SendManyTransfer transfers = 3; - */ - org.qubic.archiver.proto.SendManyTransfer getTransfers(int index); - /** - * repeated .qubic.archiver.archive.pb.SendManyTransfer transfers = 3; - */ - int getTransfersCount(); - /** - * repeated .qubic.archiver.archive.pb.SendManyTransfer transfers = 3; - */ - java.util.List - getTransfersOrBuilderList(); - /** - * repeated .qubic.archiver.archive.pb.SendManyTransfer transfers = 3; - */ - org.qubic.archiver.proto.SendManyTransferOrBuilder getTransfersOrBuilder( - int index); - - /** - * int64 total_amount = 4; - * @return The totalAmount. - */ - long getTotalAmount(); - - /** - * string signature_hex = 5; - * @return The signatureHex. - */ - java.lang.String getSignatureHex(); - /** - * string signature_hex = 5; - * @return The bytes for signatureHex. - */ - com.google.protobuf.ByteString - getSignatureHexBytes(); - - /** - * string tx_id = 6; - * @return The txId. - */ - java.lang.String getTxId(); - /** - * string tx_id = 6; - * @return The bytes for txId. - */ - com.google.protobuf.ByteString - getTxIdBytes(); -} diff --git a/src/main/java/org/qubic/archiver/proto/SendManyTransfer.java b/src/main/java/org/qubic/archiver/proto/SendManyTransfer.java deleted file mode 100644 index 4f6be5d..0000000 --- a/src/main/java/org/qubic/archiver/proto/SendManyTransfer.java +++ /dev/null @@ -1,630 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - *
- *SendMany Transaction
- * 
- * - * Protobuf type {@code qubic.archiver.archive.pb.SendManyTransfer} - */ -public final class SendManyTransfer extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.SendManyTransfer) - SendManyTransferOrBuilder { -private static final long serialVersionUID = 0L; - // Use SendManyTransfer.newBuilder() to construct. - private SendManyTransfer(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SendManyTransfer() { - destId_ = ""; - } - - @Override - @SuppressWarnings({"unused"}) - protected Object newInstance( - UnusedPrivateParameter unused) { - return new SendManyTransfer(); - } - - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SendManyTransfer( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - String s = input.readStringRequireUtf8(); - - destId_ = s; - break; - } - case 16: { - - amount_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_SendManyTransfer_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_SendManyTransfer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - SendManyTransfer.class, Builder.class); - } - - public static final int DEST_ID_FIELD_NUMBER = 1; - private volatile Object destId_; - /** - * string dest_id = 1; - * @return The destId. - */ - @Override - public String getDestId() { - Object ref = destId_; - if (ref instanceof String) { - return (String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - destId_ = s; - return s; - } - } - /** - * string dest_id = 1; - * @return The bytes for destId. - */ - @Override - public com.google.protobuf.ByteString - getDestIdBytes() { - Object ref = destId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - destId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AMOUNT_FIELD_NUMBER = 2; - private long amount_; - /** - * int64 amount = 2; - * @return The amount. - */ - @Override - public long getAmount() { - return amount_; - } - - private byte memoizedIsInitialized = -1; - @Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDestIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, destId_); - } - if (amount_ != 0L) { - output.writeInt64(2, amount_); - } - unknownFields.writeTo(output); - } - - @Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDestIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, destId_); - } - if (amount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, amount_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @Override - public boolean equals(final Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof SendManyTransfer)) { - return super.equals(obj); - } - SendManyTransfer other = (SendManyTransfer) obj; - - if (!getDestId() - .equals(other.getDestId())) return false; - if (getAmount() - != other.getAmount()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getDestId().hashCode(); - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAmount()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static SendManyTransfer parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static SendManyTransfer parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static SendManyTransfer parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static SendManyTransfer parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static SendManyTransfer parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static SendManyTransfer parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static SendManyTransfer parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static SendManyTransfer 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 SendManyTransfer parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static SendManyTransfer 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 SendManyTransfer parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static SendManyTransfer parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(SendManyTransfer prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   *SendMany Transaction
-   * 
- * - * Protobuf type {@code qubic.archiver.archive.pb.SendManyTransfer} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.SendManyTransfer) - SendManyTransferOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_SendManyTransfer_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_SendManyTransfer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - SendManyTransfer.class, Builder.class); - } - - // Construct using org.qubic.archiver.proto.SendManyTransfer.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @Override - public Builder clear() { - super.clear(); - destId_ = ""; - - amount_ = 0L; - - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_SendManyTransfer_descriptor; - } - - @Override - public SendManyTransfer getDefaultInstanceForType() { - return SendManyTransfer.getDefaultInstance(); - } - - @Override - public SendManyTransfer build() { - SendManyTransfer result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public SendManyTransfer buildPartial() { - SendManyTransfer result = new SendManyTransfer(this); - result.destId_ = destId_; - result.amount_ = amount_; - onBuilt(); - return result; - } - - @Override - public Builder clone() { - return super.clone(); - } - @Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.setField(field, value); - } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return super.setRepeatedField(field, index, value); - } - @Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.addRepeatedField(field, value); - } - @Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof SendManyTransfer) { - return mergeFrom((SendManyTransfer)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(SendManyTransfer other) { - if (other == SendManyTransfer.getDefaultInstance()) return this; - if (!other.getDestId().isEmpty()) { - destId_ = other.destId_; - onChanged(); - } - if (other.getAmount() != 0L) { - setAmount(other.getAmount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - SendManyTransfer parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (SendManyTransfer) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private Object destId_ = ""; - /** - * string dest_id = 1; - * @return The destId. - */ - public String getDestId() { - Object ref = destId_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - destId_ = s; - return s; - } else { - return (String) ref; - } - } - /** - * string dest_id = 1; - * @return The bytes for destId. - */ - public com.google.protobuf.ByteString - getDestIdBytes() { - Object ref = destId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - destId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string dest_id = 1; - * @param value The destId to set. - * @return This builder for chaining. - */ - public Builder setDestId( - String value) { - if (value == null) { - throw new NullPointerException(); - } - - destId_ = value; - onChanged(); - return this; - } - /** - * string dest_id = 1; - * @return This builder for chaining. - */ - public Builder clearDestId() { - - destId_ = getDefaultInstance().getDestId(); - onChanged(); - return this; - } - /** - * string dest_id = 1; - * @param value The bytes for destId to set. - * @return This builder for chaining. - */ - public Builder setDestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - destId_ = value; - onChanged(); - return this; - } - - private long amount_ ; - /** - * int64 amount = 2; - * @return The amount. - */ - @Override - public long getAmount() { - return amount_; - } - /** - * int64 amount = 2; - * @param value The amount to set. - * @return This builder for chaining. - */ - public Builder setAmount(long value) { - - amount_ = value; - onChanged(); - return this; - } - /** - * int64 amount = 2; - * @return This builder for chaining. - */ - public Builder clearAmount() { - - amount_ = 0L; - onChanged(); - return this; - } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.SendManyTransfer) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.SendManyTransfer) - private static final SendManyTransfer DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new SendManyTransfer(); - } - - public static SendManyTransfer getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public SendManyTransfer parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SendManyTransfer(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public SendManyTransfer getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/SendManyTransferOrBuilder.java b/src/main/java/org/qubic/archiver/proto/SendManyTransferOrBuilder.java deleted file mode 100644 index 48229fd..0000000 --- a/src/main/java/org/qubic/archiver/proto/SendManyTransferOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface SendManyTransferOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.SendManyTransfer) - com.google.protobuf.MessageOrBuilder { - - /** - * string dest_id = 1; - * @return The destId. - */ - java.lang.String getDestId(); - /** - * string dest_id = 1; - * @return The bytes for destId. - */ - com.google.protobuf.ByteString - getDestIdBytes(); - - /** - * int64 amount = 2; - * @return The amount. - */ - long getAmount(); -} diff --git a/src/main/java/org/qubic/archiver/proto/SkippedTicksInterval.java b/src/main/java/org/qubic/archiver/proto/SkippedTicksInterval.java deleted file mode 100644 index fb1bbf8..0000000 --- a/src/main/java/org/qubic/archiver/proto/SkippedTicksInterval.java +++ /dev/null @@ -1,547 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.SkippedTicksInterval} - */ -public final class SkippedTicksInterval extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.SkippedTicksInterval) - SkippedTicksIntervalOrBuilder { -private static final long serialVersionUID = 0L; - // Use SkippedTicksInterval.newBuilder() to construct. - private SkippedTicksInterval(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SkippedTicksInterval() { - } - - @Override - @SuppressWarnings({"unused"}) - protected Object newInstance( - UnusedPrivateParameter unused) { - return new SkippedTicksInterval(); - } - - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SkippedTicksInterval( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - startTick_ = input.readUInt32(); - break; - } - case 16: { - - endTick_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_SkippedTicksInterval_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_SkippedTicksInterval_fieldAccessorTable - .ensureFieldAccessorsInitialized( - SkippedTicksInterval.class, Builder.class); - } - - public static final int START_TICK_FIELD_NUMBER = 1; - private int startTick_; - /** - * uint32 start_tick = 1; - * @return The startTick. - */ - @Override - public int getStartTick() { - return startTick_; - } - - public static final int END_TICK_FIELD_NUMBER = 2; - private int endTick_; - /** - * uint32 end_tick = 2; - * @return The endTick. - */ - @Override - public int getEndTick() { - return endTick_; - } - - private byte memoizedIsInitialized = -1; - @Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (startTick_ != 0) { - output.writeUInt32(1, startTick_); - } - if (endTick_ != 0) { - output.writeUInt32(2, endTick_); - } - unknownFields.writeTo(output); - } - - @Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (startTick_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, startTick_); - } - if (endTick_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, endTick_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @Override - public boolean equals(final Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof SkippedTicksInterval)) { - return super.equals(obj); - } - SkippedTicksInterval other = (SkippedTicksInterval) obj; - - if (getStartTick() - != other.getStartTick()) return false; - if (getEndTick() - != other.getEndTick()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + START_TICK_FIELD_NUMBER; - hash = (53 * hash) + getStartTick(); - hash = (37 * hash) + END_TICK_FIELD_NUMBER; - hash = (53 * hash) + getEndTick(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static SkippedTicksInterval parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static SkippedTicksInterval parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static SkippedTicksInterval parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static SkippedTicksInterval parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static SkippedTicksInterval parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static SkippedTicksInterval parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static SkippedTicksInterval parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static SkippedTicksInterval 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 SkippedTicksInterval parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static SkippedTicksInterval 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 SkippedTicksInterval parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static SkippedTicksInterval parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(SkippedTicksInterval prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.SkippedTicksInterval} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.SkippedTicksInterval) - SkippedTicksIntervalOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_SkippedTicksInterval_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_SkippedTicksInterval_fieldAccessorTable - .ensureFieldAccessorsInitialized( - SkippedTicksInterval.class, Builder.class); - } - - // Construct using org.qubic.archiver.proto.SkippedTicksInterval.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @Override - public Builder clear() { - super.clear(); - startTick_ = 0; - - endTick_ = 0; - - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_SkippedTicksInterval_descriptor; - } - - @Override - public SkippedTicksInterval getDefaultInstanceForType() { - return SkippedTicksInterval.getDefaultInstance(); - } - - @Override - public SkippedTicksInterval build() { - SkippedTicksInterval result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public SkippedTicksInterval buildPartial() { - SkippedTicksInterval result = new SkippedTicksInterval(this); - result.startTick_ = startTick_; - result.endTick_ = endTick_; - onBuilt(); - return result; - } - - @Override - public Builder clone() { - return super.clone(); - } - @Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.setField(field, value); - } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return super.setRepeatedField(field, index, value); - } - @Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.addRepeatedField(field, value); - } - @Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof SkippedTicksInterval) { - return mergeFrom((SkippedTicksInterval)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(SkippedTicksInterval other) { - if (other == SkippedTicksInterval.getDefaultInstance()) return this; - if (other.getStartTick() != 0) { - setStartTick(other.getStartTick()); - } - if (other.getEndTick() != 0) { - setEndTick(other.getEndTick()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - SkippedTicksInterval parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (SkippedTicksInterval) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int startTick_ ; - /** - * uint32 start_tick = 1; - * @return The startTick. - */ - @Override - public int getStartTick() { - return startTick_; - } - /** - * uint32 start_tick = 1; - * @param value The startTick to set. - * @return This builder for chaining. - */ - public Builder setStartTick(int value) { - - startTick_ = value; - onChanged(); - return this; - } - /** - * uint32 start_tick = 1; - * @return This builder for chaining. - */ - public Builder clearStartTick() { - - startTick_ = 0; - onChanged(); - return this; - } - - private int endTick_ ; - /** - * uint32 end_tick = 2; - * @return The endTick. - */ - @Override - public int getEndTick() { - return endTick_; - } - /** - * uint32 end_tick = 2; - * @param value The endTick to set. - * @return This builder for chaining. - */ - public Builder setEndTick(int value) { - - endTick_ = value; - onChanged(); - return this; - } - /** - * uint32 end_tick = 2; - * @return This builder for chaining. - */ - public Builder clearEndTick() { - - endTick_ = 0; - onChanged(); - return this; - } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.SkippedTicksInterval) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.SkippedTicksInterval) - private static final SkippedTicksInterval DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new SkippedTicksInterval(); - } - - public static SkippedTicksInterval getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public SkippedTicksInterval parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SkippedTicksInterval(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public SkippedTicksInterval getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/SkippedTicksIntervalList.java b/src/main/java/org/qubic/archiver/proto/SkippedTicksIntervalList.java deleted file mode 100644 index 211735b..0000000 --- a/src/main/java/org/qubic/archiver/proto/SkippedTicksIntervalList.java +++ /dev/null @@ -1,770 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.SkippedTicksIntervalList} - */ -public final class SkippedTicksIntervalList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.SkippedTicksIntervalList) - SkippedTicksIntervalListOrBuilder { -private static final long serialVersionUID = 0L; - // Use SkippedTicksIntervalList.newBuilder() to construct. - private SkippedTicksIntervalList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SkippedTicksIntervalList() { - skippedTicks_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SkippedTicksIntervalList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SkippedTicksIntervalList( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - skippedTicks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - skippedTicks_.add( - input.readMessage(org.qubic.archiver.proto.SkippedTicksInterval.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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) != 0)) { - skippedTicks_ = java.util.Collections.unmodifiableList(skippedTicks_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_SkippedTicksIntervalList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_SkippedTicksIntervalList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.qubic.archiver.proto.SkippedTicksIntervalList.class, org.qubic.archiver.proto.SkippedTicksIntervalList.Builder.class); - } - - public static final int SKIPPED_TICKS_FIELD_NUMBER = 1; - private java.util.List skippedTicks_; - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 1; - */ - @java.lang.Override - public java.util.List getSkippedTicksList() { - return skippedTicks_; - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 1; - */ - @java.lang.Override - public java.util.List - getSkippedTicksOrBuilderList() { - return skippedTicks_; - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 1; - */ - @java.lang.Override - public int getSkippedTicksCount() { - return skippedTicks_.size(); - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 1; - */ - @java.lang.Override - public org.qubic.archiver.proto.SkippedTicksInterval getSkippedTicks(int index) { - return skippedTicks_.get(index); - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 1; - */ - @java.lang.Override - public org.qubic.archiver.proto.SkippedTicksIntervalOrBuilder getSkippedTicksOrBuilder( - int index) { - return skippedTicks_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < skippedTicks_.size(); i++) { - output.writeMessage(1, skippedTicks_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < skippedTicks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, skippedTicks_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.qubic.archiver.proto.SkippedTicksIntervalList)) { - return super.equals(obj); - } - org.qubic.archiver.proto.SkippedTicksIntervalList other = (org.qubic.archiver.proto.SkippedTicksIntervalList) obj; - - if (!getSkippedTicksList() - .equals(other.getSkippedTicksList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getSkippedTicksCount() > 0) { - hash = (37 * hash) + SKIPPED_TICKS_FIELD_NUMBER; - hash = (53 * hash) + getSkippedTicksList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.qubic.archiver.proto.SkippedTicksIntervalList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.SkippedTicksIntervalList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.SkippedTicksIntervalList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.SkippedTicksIntervalList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.SkippedTicksIntervalList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.SkippedTicksIntervalList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.SkippedTicksIntervalList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.SkippedTicksIntervalList 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 org.qubic.archiver.proto.SkippedTicksIntervalList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.SkippedTicksIntervalList 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 org.qubic.archiver.proto.SkippedTicksIntervalList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.SkippedTicksIntervalList parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.qubic.archiver.proto.SkippedTicksIntervalList prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.SkippedTicksIntervalList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.SkippedTicksIntervalList) - org.qubic.archiver.proto.SkippedTicksIntervalListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_SkippedTicksIntervalList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_SkippedTicksIntervalList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.qubic.archiver.proto.SkippedTicksIntervalList.class, org.qubic.archiver.proto.SkippedTicksIntervalList.Builder.class); - } - - // Construct using org.qubic.archiver.proto.SkippedTicksIntervalList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getSkippedTicksFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (skippedTicksBuilder_ == null) { - skippedTicks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - skippedTicksBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_SkippedTicksIntervalList_descriptor; - } - - @java.lang.Override - public org.qubic.archiver.proto.SkippedTicksIntervalList getDefaultInstanceForType() { - return org.qubic.archiver.proto.SkippedTicksIntervalList.getDefaultInstance(); - } - - @java.lang.Override - public org.qubic.archiver.proto.SkippedTicksIntervalList build() { - org.qubic.archiver.proto.SkippedTicksIntervalList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.qubic.archiver.proto.SkippedTicksIntervalList buildPartial() { - org.qubic.archiver.proto.SkippedTicksIntervalList result = new org.qubic.archiver.proto.SkippedTicksIntervalList(this); - int from_bitField0_ = bitField0_; - if (skippedTicksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - skippedTicks_ = java.util.Collections.unmodifiableList(skippedTicks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.skippedTicks_ = skippedTicks_; - } else { - result.skippedTicks_ = skippedTicksBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.qubic.archiver.proto.SkippedTicksIntervalList) { - return mergeFrom((org.qubic.archiver.proto.SkippedTicksIntervalList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.qubic.archiver.proto.SkippedTicksIntervalList other) { - if (other == org.qubic.archiver.proto.SkippedTicksIntervalList.getDefaultInstance()) return this; - if (skippedTicksBuilder_ == null) { - if (!other.skippedTicks_.isEmpty()) { - if (skippedTicks_.isEmpty()) { - skippedTicks_ = other.skippedTicks_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSkippedTicksIsMutable(); - skippedTicks_.addAll(other.skippedTicks_); - } - onChanged(); - } - } else { - if (!other.skippedTicks_.isEmpty()) { - if (skippedTicksBuilder_.isEmpty()) { - skippedTicksBuilder_.dispose(); - skippedTicksBuilder_ = null; - skippedTicks_ = other.skippedTicks_; - bitField0_ = (bitField0_ & ~0x00000001); - skippedTicksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSkippedTicksFieldBuilder() : null; - } else { - skippedTicksBuilder_.addAllMessages(other.skippedTicks_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.qubic.archiver.proto.SkippedTicksIntervalList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.qubic.archiver.proto.SkippedTicksIntervalList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List skippedTicks_ = - java.util.Collections.emptyList(); - private void ensureSkippedTicksIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - skippedTicks_ = new java.util.ArrayList(skippedTicks_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.qubic.archiver.proto.SkippedTicksInterval, org.qubic.archiver.proto.SkippedTicksInterval.Builder, org.qubic.archiver.proto.SkippedTicksIntervalOrBuilder> skippedTicksBuilder_; - - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 1; - */ - public java.util.List getSkippedTicksList() { - if (skippedTicksBuilder_ == null) { - return java.util.Collections.unmodifiableList(skippedTicks_); - } else { - return skippedTicksBuilder_.getMessageList(); - } - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 1; - */ - public int getSkippedTicksCount() { - if (skippedTicksBuilder_ == null) { - return skippedTicks_.size(); - } else { - return skippedTicksBuilder_.getCount(); - } - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 1; - */ - public org.qubic.archiver.proto.SkippedTicksInterval getSkippedTicks(int index) { - if (skippedTicksBuilder_ == null) { - return skippedTicks_.get(index); - } else { - return skippedTicksBuilder_.getMessage(index); - } - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 1; - */ - public Builder setSkippedTicks( - int index, org.qubic.archiver.proto.SkippedTicksInterval value) { - if (skippedTicksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSkippedTicksIsMutable(); - skippedTicks_.set(index, value); - onChanged(); - } else { - skippedTicksBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 1; - */ - public Builder setSkippedTicks( - int index, org.qubic.archiver.proto.SkippedTicksInterval.Builder builderForValue) { - if (skippedTicksBuilder_ == null) { - ensureSkippedTicksIsMutable(); - skippedTicks_.set(index, builderForValue.build()); - onChanged(); - } else { - skippedTicksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 1; - */ - public Builder addSkippedTicks(org.qubic.archiver.proto.SkippedTicksInterval value) { - if (skippedTicksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSkippedTicksIsMutable(); - skippedTicks_.add(value); - onChanged(); - } else { - skippedTicksBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 1; - */ - public Builder addSkippedTicks( - int index, org.qubic.archiver.proto.SkippedTicksInterval value) { - if (skippedTicksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSkippedTicksIsMutable(); - skippedTicks_.add(index, value); - onChanged(); - } else { - skippedTicksBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 1; - */ - public Builder addSkippedTicks( - org.qubic.archiver.proto.SkippedTicksInterval.Builder builderForValue) { - if (skippedTicksBuilder_ == null) { - ensureSkippedTicksIsMutable(); - skippedTicks_.add(builderForValue.build()); - onChanged(); - } else { - skippedTicksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 1; - */ - public Builder addSkippedTicks( - int index, org.qubic.archiver.proto.SkippedTicksInterval.Builder builderForValue) { - if (skippedTicksBuilder_ == null) { - ensureSkippedTicksIsMutable(); - skippedTicks_.add(index, builderForValue.build()); - onChanged(); - } else { - skippedTicksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 1; - */ - public Builder addAllSkippedTicks( - java.lang.Iterable values) { - if (skippedTicksBuilder_ == null) { - ensureSkippedTicksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, skippedTicks_); - onChanged(); - } else { - skippedTicksBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 1; - */ - public Builder clearSkippedTicks() { - if (skippedTicksBuilder_ == null) { - skippedTicks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - skippedTicksBuilder_.clear(); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 1; - */ - public Builder removeSkippedTicks(int index) { - if (skippedTicksBuilder_ == null) { - ensureSkippedTicksIsMutable(); - skippedTicks_.remove(index); - onChanged(); - } else { - skippedTicksBuilder_.remove(index); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 1; - */ - public org.qubic.archiver.proto.SkippedTicksInterval.Builder getSkippedTicksBuilder( - int index) { - return getSkippedTicksFieldBuilder().getBuilder(index); - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 1; - */ - public org.qubic.archiver.proto.SkippedTicksIntervalOrBuilder getSkippedTicksOrBuilder( - int index) { - if (skippedTicksBuilder_ == null) { - return skippedTicks_.get(index); } else { - return skippedTicksBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 1; - */ - public java.util.List - getSkippedTicksOrBuilderList() { - if (skippedTicksBuilder_ != null) { - return skippedTicksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(skippedTicks_); - } - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 1; - */ - public org.qubic.archiver.proto.SkippedTicksInterval.Builder addSkippedTicksBuilder() { - return getSkippedTicksFieldBuilder().addBuilder( - org.qubic.archiver.proto.SkippedTicksInterval.getDefaultInstance()); - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 1; - */ - public org.qubic.archiver.proto.SkippedTicksInterval.Builder addSkippedTicksBuilder( - int index) { - return getSkippedTicksFieldBuilder().addBuilder( - index, org.qubic.archiver.proto.SkippedTicksInterval.getDefaultInstance()); - } - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 1; - */ - public java.util.List - getSkippedTicksBuilderList() { - return getSkippedTicksFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.qubic.archiver.proto.SkippedTicksInterval, org.qubic.archiver.proto.SkippedTicksInterval.Builder, org.qubic.archiver.proto.SkippedTicksIntervalOrBuilder> - getSkippedTicksFieldBuilder() { - if (skippedTicksBuilder_ == null) { - skippedTicksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.qubic.archiver.proto.SkippedTicksInterval, org.qubic.archiver.proto.SkippedTicksInterval.Builder, org.qubic.archiver.proto.SkippedTicksIntervalOrBuilder>( - skippedTicks_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - skippedTicks_ = null; - } - return skippedTicksBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.SkippedTicksIntervalList) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.SkippedTicksIntervalList) - private static final org.qubic.archiver.proto.SkippedTicksIntervalList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.qubic.archiver.proto.SkippedTicksIntervalList(); - } - - public static org.qubic.archiver.proto.SkippedTicksIntervalList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SkippedTicksIntervalList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SkippedTicksIntervalList(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.qubic.archiver.proto.SkippedTicksIntervalList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/SkippedTicksIntervalListOrBuilder.java b/src/main/java/org/qubic/archiver/proto/SkippedTicksIntervalListOrBuilder.java deleted file mode 100644 index 480202f..0000000 --- a/src/main/java/org/qubic/archiver/proto/SkippedTicksIntervalListOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface SkippedTicksIntervalListOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.SkippedTicksIntervalList) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 1; - */ - java.util.List - getSkippedTicksList(); - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 1; - */ - org.qubic.archiver.proto.SkippedTicksInterval getSkippedTicks(int index); - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 1; - */ - int getSkippedTicksCount(); - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 1; - */ - java.util.List - getSkippedTicksOrBuilderList(); - /** - * repeated .qubic.archiver.archive.pb.SkippedTicksInterval skipped_ticks = 1; - */ - org.qubic.archiver.proto.SkippedTicksIntervalOrBuilder getSkippedTicksOrBuilder( - int index); -} diff --git a/src/main/java/org/qubic/archiver/proto/SkippedTicksIntervalOrBuilder.java b/src/main/java/org/qubic/archiver/proto/SkippedTicksIntervalOrBuilder.java deleted file mode 100644 index 669f459..0000000 --- a/src/main/java/org/qubic/archiver/proto/SkippedTicksIntervalOrBuilder.java +++ /dev/null @@ -1,21 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface SkippedTicksIntervalOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.SkippedTicksInterval) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 start_tick = 1; - * @return The startTick. - */ - int getStartTick(); - - /** - * uint32 end_tick = 2; - * @return The endTick. - */ - int getEndTick(); -} diff --git a/src/main/java/org/qubic/archiver/proto/Tick.java b/src/main/java/org/qubic/archiver/proto/Tick.java deleted file mode 100644 index f2f4417..0000000 --- a/src/main/java/org/qubic/archiver/proto/Tick.java +++ /dev/null @@ -1,1338 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.Tick} - */ -public final class Tick extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.Tick) - TickOrBuilder { -private static final long serialVersionUID = 0L; - // Use Tick.newBuilder() to construct. - private Tick(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Tick() { - varStruct_ = com.google.protobuf.ByteString.EMPTY; - timeLock_ = com.google.protobuf.ByteString.EMPTY; - transactionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - contractFees_ = emptyLongList(); - signatureHex_ = ""; - } - - @Override - @SuppressWarnings({"unused"}) - protected Object newInstance( - UnusedPrivateParameter unused) { - return new Tick(); - } - - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Tick( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - computorIndex_ = input.readUInt32(); - break; - } - case 16: { - - epoch_ = input.readUInt32(); - break; - } - case 24: { - - tickNumber_ = input.readUInt32(); - break; - } - case 32: { - - timestamp_ = input.readUInt64(); - break; - } - case 42: { - - varStruct_ = input.readBytes(); - break; - } - case 50: { - - timeLock_ = input.readBytes(); - break; - } - case 58: { - String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - transactionIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - transactionIds_.add(s); - break; - } - case 64: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - contractFees_ = newLongList(); - mutable_bitField0_ |= 0x00000002; - } - contractFees_.addLong(input.readInt64()); - break; - } - case 66: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { - contractFees_ = newLongList(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - contractFees_.addLong(input.readInt64()); - } - input.popLimit(limit); - break; - } - case 74: { - String s = input.readStringRequireUtf8(); - - signatureHex_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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) != 0)) { - transactionIds_ = transactionIds_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - contractFees_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_Tick_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_Tick_fieldAccessorTable - .ensureFieldAccessorsInitialized( - Tick.class, Builder.class); - } - - public static final int COMPUTOR_INDEX_FIELD_NUMBER = 1; - private int computorIndex_; - /** - * uint32 computor_index = 1; - * @return The computorIndex. - */ - @Override - public int getComputorIndex() { - return computorIndex_; - } - - public static final int EPOCH_FIELD_NUMBER = 2; - private int epoch_; - /** - * uint32 epoch = 2; - * @return The epoch. - */ - @Override - public int getEpoch() { - return epoch_; - } - - public static final int TICK_NUMBER_FIELD_NUMBER = 3; - private int tickNumber_; - /** - * uint32 tick_number = 3; - * @return The tickNumber. - */ - @Override - public int getTickNumber() { - return tickNumber_; - } - - public static final int TIMESTAMP_FIELD_NUMBER = 4; - private long timestamp_; - /** - * uint64 timestamp = 4; - * @return The timestamp. - */ - @Override - public long getTimestamp() { - return timestamp_; - } - - public static final int VAR_STRUCT_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString varStruct_; - /** - *
-   *Will change to return with unmarshalled info
-   * 
- * - * bytes var_struct = 5; - * @return The varStruct. - */ - @Override - public com.google.protobuf.ByteString getVarStruct() { - return varStruct_; - } - - public static final int TIME_LOCK_FIELD_NUMBER = 6; - private com.google.protobuf.ByteString timeLock_; - /** - * bytes time_lock = 6; - * @return The timeLock. - */ - @Override - public com.google.protobuf.ByteString getTimeLock() { - return timeLock_; - } - - public static final int TRANSACTION_IDS_FIELD_NUMBER = 7; - private com.google.protobuf.LazyStringList transactionIds_; - /** - * repeated string transaction_ids = 7; - * @return A list containing the transactionIds. - */ - public com.google.protobuf.ProtocolStringList - getTransactionIdsList() { - return transactionIds_; - } - /** - * repeated string transaction_ids = 7; - * @return The count of transactionIds. - */ - public int getTransactionIdsCount() { - return transactionIds_.size(); - } - /** - * repeated string transaction_ids = 7; - * @param index The index of the element to return. - * @return The transactionIds at the given index. - */ - public String getTransactionIds(int index) { - return transactionIds_.get(index); - } - /** - * repeated string transaction_ids = 7; - * @param index The index of the value to return. - * @return The bytes of the transactionIds at the given index. - */ - public com.google.protobuf.ByteString - getTransactionIdsBytes(int index) { - return transactionIds_.getByteString(index); - } - - public static final int CONTRACT_FEES_FIELD_NUMBER = 8; - private com.google.protobuf.Internal.LongList contractFees_; - /** - * repeated int64 contract_fees = 8; - * @return A list containing the contractFees. - */ - @Override - public java.util.List - getContractFeesList() { - return contractFees_; - } - /** - * repeated int64 contract_fees = 8; - * @return The count of contractFees. - */ - public int getContractFeesCount() { - return contractFees_.size(); - } - /** - * repeated int64 contract_fees = 8; - * @param index The index of the element to return. - * @return The contractFees at the given index. - */ - public long getContractFees(int index) { - return contractFees_.getLong(index); - } - private int contractFeesMemoizedSerializedSize = -1; - - public static final int SIGNATURE_HEX_FIELD_NUMBER = 9; - private volatile Object signatureHex_; - /** - * string signature_hex = 9; - * @return The signatureHex. - */ - @Override - public String getSignatureHex() { - Object ref = signatureHex_; - if (ref instanceof String) { - return (String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - signatureHex_ = s; - return s; - } - } - /** - * string signature_hex = 9; - * @return The bytes for signatureHex. - */ - @Override - public com.google.protobuf.ByteString - getSignatureHexBytes() { - Object ref = signatureHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - signatureHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (computorIndex_ != 0) { - output.writeUInt32(1, computorIndex_); - } - if (epoch_ != 0) { - output.writeUInt32(2, epoch_); - } - if (tickNumber_ != 0) { - output.writeUInt32(3, tickNumber_); - } - if (timestamp_ != 0L) { - output.writeUInt64(4, timestamp_); - } - if (!varStruct_.isEmpty()) { - output.writeBytes(5, varStruct_); - } - if (!timeLock_.isEmpty()) { - output.writeBytes(6, timeLock_); - } - for (int i = 0; i < transactionIds_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, transactionIds_.getRaw(i)); - } - if (getContractFeesList().size() > 0) { - output.writeUInt32NoTag(66); - output.writeUInt32NoTag(contractFeesMemoizedSerializedSize); - } - for (int i = 0; i < contractFees_.size(); i++) { - output.writeInt64NoTag(contractFees_.getLong(i)); - } - if (!getSignatureHexBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, signatureHex_); - } - unknownFields.writeTo(output); - } - - @Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (computorIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, computorIndex_); - } - if (epoch_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, epoch_); - } - if (tickNumber_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, tickNumber_); - } - if (timestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, timestamp_); - } - if (!varStruct_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, varStruct_); - } - if (!timeLock_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, timeLock_); - } - { - int dataSize = 0; - for (int i = 0; i < transactionIds_.size(); i++) { - dataSize += computeStringSizeNoTag(transactionIds_.getRaw(i)); - } - size += dataSize; - size += 1 * getTransactionIdsList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < contractFees_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt64SizeNoTag(contractFees_.getLong(i)); - } - size += dataSize; - if (!getContractFeesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - contractFeesMemoizedSerializedSize = dataSize; - } - if (!getSignatureHexBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, signatureHex_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @Override - public boolean equals(final Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof Tick)) { - return super.equals(obj); - } - Tick other = (Tick) obj; - - if (getComputorIndex() - != other.getComputorIndex()) return false; - if (getEpoch() - != other.getEpoch()) return false; - if (getTickNumber() - != other.getTickNumber()) return false; - if (getTimestamp() - != other.getTimestamp()) return false; - if (!getVarStruct() - .equals(other.getVarStruct())) return false; - if (!getTimeLock() - .equals(other.getTimeLock())) return false; - if (!getTransactionIdsList() - .equals(other.getTransactionIdsList())) return false; - if (!getContractFeesList() - .equals(other.getContractFeesList())) return false; - if (!getSignatureHex() - .equals(other.getSignatureHex())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + COMPUTOR_INDEX_FIELD_NUMBER; - hash = (53 * hash) + getComputorIndex(); - hash = (37 * hash) + EPOCH_FIELD_NUMBER; - hash = (53 * hash) + getEpoch(); - hash = (37 * hash) + TICK_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getTickNumber(); - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimestamp()); - hash = (37 * hash) + VAR_STRUCT_FIELD_NUMBER; - hash = (53 * hash) + getVarStruct().hashCode(); - hash = (37 * hash) + TIME_LOCK_FIELD_NUMBER; - hash = (53 * hash) + getTimeLock().hashCode(); - if (getTransactionIdsCount() > 0) { - hash = (37 * hash) + TRANSACTION_IDS_FIELD_NUMBER; - hash = (53 * hash) + getTransactionIdsList().hashCode(); - } - if (getContractFeesCount() > 0) { - hash = (37 * hash) + CONTRACT_FEES_FIELD_NUMBER; - hash = (53 * hash) + getContractFeesList().hashCode(); - } - hash = (37 * hash) + SIGNATURE_HEX_FIELD_NUMBER; - hash = (53 * hash) + getSignatureHex().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static Tick parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Tick parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static Tick parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Tick parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static Tick parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Tick parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static Tick parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static Tick 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 Tick parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static Tick 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 Tick parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static Tick parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(Tick prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.Tick} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.Tick) - TickOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_Tick_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_Tick_fieldAccessorTable - .ensureFieldAccessorsInitialized( - Tick.class, Builder.class); - } - - // Construct using org.qubic.archiver.proto.Tick.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @Override - public Builder clear() { - super.clear(); - computorIndex_ = 0; - - epoch_ = 0; - - tickNumber_ = 0; - - timestamp_ = 0L; - - varStruct_ = com.google.protobuf.ByteString.EMPTY; - - timeLock_ = com.google.protobuf.ByteString.EMPTY; - - transactionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - contractFees_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000002); - signatureHex_ = ""; - - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_Tick_descriptor; - } - - @Override - public Tick getDefaultInstanceForType() { - return Tick.getDefaultInstance(); - } - - @Override - public Tick build() { - Tick result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public Tick buildPartial() { - Tick result = new Tick(this); - int from_bitField0_ = bitField0_; - result.computorIndex_ = computorIndex_; - result.epoch_ = epoch_; - result.tickNumber_ = tickNumber_; - result.timestamp_ = timestamp_; - result.varStruct_ = varStruct_; - result.timeLock_ = timeLock_; - if (((bitField0_ & 0x00000001) != 0)) { - transactionIds_ = transactionIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.transactionIds_ = transactionIds_; - if (((bitField0_ & 0x00000002) != 0)) { - contractFees_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.contractFees_ = contractFees_; - result.signatureHex_ = signatureHex_; - onBuilt(); - return result; - } - - @Override - public Builder clone() { - return super.clone(); - } - @Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.setField(field, value); - } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return super.setRepeatedField(field, index, value); - } - @Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.addRepeatedField(field, value); - } - @Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof Tick) { - return mergeFrom((Tick)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(Tick other) { - if (other == Tick.getDefaultInstance()) return this; - if (other.getComputorIndex() != 0) { - setComputorIndex(other.getComputorIndex()); - } - if (other.getEpoch() != 0) { - setEpoch(other.getEpoch()); - } - if (other.getTickNumber() != 0) { - setTickNumber(other.getTickNumber()); - } - if (other.getTimestamp() != 0L) { - setTimestamp(other.getTimestamp()); - } - if (other.getVarStruct() != com.google.protobuf.ByteString.EMPTY) { - setVarStruct(other.getVarStruct()); - } - if (other.getTimeLock() != com.google.protobuf.ByteString.EMPTY) { - setTimeLock(other.getTimeLock()); - } - if (!other.transactionIds_.isEmpty()) { - if (transactionIds_.isEmpty()) { - transactionIds_ = other.transactionIds_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTransactionIdsIsMutable(); - transactionIds_.addAll(other.transactionIds_); - } - onChanged(); - } - if (!other.contractFees_.isEmpty()) { - if (contractFees_.isEmpty()) { - contractFees_ = other.contractFees_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureContractFeesIsMutable(); - contractFees_.addAll(other.contractFees_); - } - onChanged(); - } - if (!other.getSignatureHex().isEmpty()) { - signatureHex_ = other.signatureHex_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - Tick parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Tick) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int computorIndex_ ; - /** - * uint32 computor_index = 1; - * @return The computorIndex. - */ - @Override - public int getComputorIndex() { - return computorIndex_; - } - /** - * uint32 computor_index = 1; - * @param value The computorIndex to set. - * @return This builder for chaining. - */ - public Builder setComputorIndex(int value) { - - computorIndex_ = value; - onChanged(); - return this; - } - /** - * uint32 computor_index = 1; - * @return This builder for chaining. - */ - public Builder clearComputorIndex() { - - computorIndex_ = 0; - onChanged(); - return this; - } - - private int epoch_ ; - /** - * uint32 epoch = 2; - * @return The epoch. - */ - @Override - public int getEpoch() { - return epoch_; - } - /** - * uint32 epoch = 2; - * @param value The epoch to set. - * @return This builder for chaining. - */ - public Builder setEpoch(int value) { - - epoch_ = value; - onChanged(); - return this; - } - /** - * uint32 epoch = 2; - * @return This builder for chaining. - */ - public Builder clearEpoch() { - - epoch_ = 0; - onChanged(); - return this; - } - - private int tickNumber_ ; - /** - * uint32 tick_number = 3; - * @return The tickNumber. - */ - @Override - public int getTickNumber() { - return tickNumber_; - } - /** - * uint32 tick_number = 3; - * @param value The tickNumber to set. - * @return This builder for chaining. - */ - public Builder setTickNumber(int value) { - - tickNumber_ = value; - onChanged(); - return this; - } - /** - * uint32 tick_number = 3; - * @return This builder for chaining. - */ - public Builder clearTickNumber() { - - tickNumber_ = 0; - onChanged(); - return this; - } - - private long timestamp_ ; - /** - * uint64 timestamp = 4; - * @return The timestamp. - */ - @Override - public long getTimestamp() { - return timestamp_; - } - /** - * uint64 timestamp = 4; - * @param value The timestamp to set. - * @return This builder for chaining. - */ - public Builder setTimestamp(long value) { - - timestamp_ = value; - onChanged(); - return this; - } - /** - * uint64 timestamp = 4; - * @return This builder for chaining. - */ - public Builder clearTimestamp() { - - timestamp_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString varStruct_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     *Will change to return with unmarshalled info
-     * 
- * - * bytes var_struct = 5; - * @return The varStruct. - */ - @Override - public com.google.protobuf.ByteString getVarStruct() { - return varStruct_; - } - /** - *
-     *Will change to return with unmarshalled info
-     * 
- * - * bytes var_struct = 5; - * @param value The varStruct to set. - * @return This builder for chaining. - */ - public Builder setVarStruct(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - varStruct_ = value; - onChanged(); - return this; - } - /** - *
-     *Will change to return with unmarshalled info
-     * 
- * - * bytes var_struct = 5; - * @return This builder for chaining. - */ - public Builder clearVarStruct() { - - varStruct_ = getDefaultInstance().getVarStruct(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString timeLock_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes time_lock = 6; - * @return The timeLock. - */ - @Override - public com.google.protobuf.ByteString getTimeLock() { - return timeLock_; - } - /** - * bytes time_lock = 6; - * @param value The timeLock to set. - * @return This builder for chaining. - */ - public Builder setTimeLock(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - timeLock_ = value; - onChanged(); - return this; - } - /** - * bytes time_lock = 6; - * @return This builder for chaining. - */ - public Builder clearTimeLock() { - - timeLock_ = getDefaultInstance().getTimeLock(); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList transactionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureTransactionIdsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - transactionIds_ = new com.google.protobuf.LazyStringArrayList(transactionIds_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string transaction_ids = 7; - * @return A list containing the transactionIds. - */ - public com.google.protobuf.ProtocolStringList - getTransactionIdsList() { - return transactionIds_.getUnmodifiableView(); - } - /** - * repeated string transaction_ids = 7; - * @return The count of transactionIds. - */ - public int getTransactionIdsCount() { - return transactionIds_.size(); - } - /** - * repeated string transaction_ids = 7; - * @param index The index of the element to return. - * @return The transactionIds at the given index. - */ - public String getTransactionIds(int index) { - return transactionIds_.get(index); - } - /** - * repeated string transaction_ids = 7; - * @param index The index of the value to return. - * @return The bytes of the transactionIds at the given index. - */ - public com.google.protobuf.ByteString - getTransactionIdsBytes(int index) { - return transactionIds_.getByteString(index); - } - /** - * repeated string transaction_ids = 7; - * @param index The index to set the value at. - * @param value The transactionIds to set. - * @return This builder for chaining. - */ - public Builder setTransactionIds( - int index, String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransactionIdsIsMutable(); - transactionIds_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string transaction_ids = 7; - * @param value The transactionIds to add. - * @return This builder for chaining. - */ - public Builder addTransactionIds( - String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransactionIdsIsMutable(); - transactionIds_.add(value); - onChanged(); - return this; - } - /** - * repeated string transaction_ids = 7; - * @param values The transactionIds to add. - * @return This builder for chaining. - */ - public Builder addAllTransactionIds( - Iterable values) { - ensureTransactionIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, transactionIds_); - onChanged(); - return this; - } - /** - * repeated string transaction_ids = 7; - * @return This builder for chaining. - */ - public Builder clearTransactionIds() { - transactionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string transaction_ids = 7; - * @param value The bytes of the transactionIds to add. - * @return This builder for chaining. - */ - public Builder addTransactionIdsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTransactionIdsIsMutable(); - transactionIds_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.LongList contractFees_ = emptyLongList(); - private void ensureContractFeesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - contractFees_ = mutableCopy(contractFees_); - bitField0_ |= 0x00000002; - } - } - /** - * repeated int64 contract_fees = 8; - * @return A list containing the contractFees. - */ - public java.util.List - getContractFeesList() { - return ((bitField0_ & 0x00000002) != 0) ? - java.util.Collections.unmodifiableList(contractFees_) : contractFees_; - } - /** - * repeated int64 contract_fees = 8; - * @return The count of contractFees. - */ - public int getContractFeesCount() { - return contractFees_.size(); - } - /** - * repeated int64 contract_fees = 8; - * @param index The index of the element to return. - * @return The contractFees at the given index. - */ - public long getContractFees(int index) { - return contractFees_.getLong(index); - } - /** - * repeated int64 contract_fees = 8; - * @param index The index to set the value at. - * @param value The contractFees to set. - * @return This builder for chaining. - */ - public Builder setContractFees( - int index, long value) { - ensureContractFeesIsMutable(); - contractFees_.setLong(index, value); - onChanged(); - return this; - } - /** - * repeated int64 contract_fees = 8; - * @param value The contractFees to add. - * @return This builder for chaining. - */ - public Builder addContractFees(long value) { - ensureContractFeesIsMutable(); - contractFees_.addLong(value); - onChanged(); - return this; - } - /** - * repeated int64 contract_fees = 8; - * @param values The contractFees to add. - * @return This builder for chaining. - */ - public Builder addAllContractFees( - Iterable values) { - ensureContractFeesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, contractFees_); - onChanged(); - return this; - } - /** - * repeated int64 contract_fees = 8; - * @return This builder for chaining. - */ - public Builder clearContractFees() { - contractFees_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - private Object signatureHex_ = ""; - /** - * string signature_hex = 9; - * @return The signatureHex. - */ - public String getSignatureHex() { - Object ref = signatureHex_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - signatureHex_ = s; - return s; - } else { - return (String) ref; - } - } - /** - * string signature_hex = 9; - * @return The bytes for signatureHex. - */ - public com.google.protobuf.ByteString - getSignatureHexBytes() { - Object ref = signatureHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - signatureHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string signature_hex = 9; - * @param value The signatureHex to set. - * @return This builder for chaining. - */ - public Builder setSignatureHex( - String value) { - if (value == null) { - throw new NullPointerException(); - } - - signatureHex_ = value; - onChanged(); - return this; - } - /** - * string signature_hex = 9; - * @return This builder for chaining. - */ - public Builder clearSignatureHex() { - - signatureHex_ = getDefaultInstance().getSignatureHex(); - onChanged(); - return this; - } - /** - * string signature_hex = 9; - * @param value The bytes for signatureHex to set. - * @return This builder for chaining. - */ - public Builder setSignatureHexBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - signatureHex_ = value; - onChanged(); - return this; - } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.Tick) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.Tick) - private static final Tick DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new Tick(); - } - - public static Tick getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public Tick parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Tick(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public Tick getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/TickData.java b/src/main/java/org/qubic/archiver/proto/TickData.java deleted file mode 100644 index c852689..0000000 --- a/src/main/java/org/qubic/archiver/proto/TickData.java +++ /dev/null @@ -1,1322 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.TickData} - */ -public final class TickData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.TickData) - TickDataOrBuilder { -private static final long serialVersionUID = 0L; - // Use TickData.newBuilder() to construct. - private TickData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TickData() { - varStruct_ = com.google.protobuf.ByteString.EMPTY; - timeLock_ = com.google.protobuf.ByteString.EMPTY; - transactionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - contractFees_ = emptyLongList(); - signatureHex_ = ""; - } - - @Override - @SuppressWarnings({"unused"}) - protected Object newInstance( - UnusedPrivateParameter unused) { - return new TickData(); - } - - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TickData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - computorIndex_ = input.readUInt32(); - break; - } - case 16: { - - epoch_ = input.readUInt32(); - break; - } - case 24: { - - tickNumber_ = input.readUInt32(); - break; - } - case 32: { - - timestamp_ = input.readUInt64(); - break; - } - case 42: { - - varStruct_ = input.readBytes(); - break; - } - case 50: { - - timeLock_ = input.readBytes(); - break; - } - case 58: { - String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - transactionIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - transactionIds_.add(s); - break; - } - case 64: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - contractFees_ = newLongList(); - mutable_bitField0_ |= 0x00000002; - } - contractFees_.addLong(input.readInt64()); - break; - } - case 66: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { - contractFees_ = newLongList(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - contractFees_.addLong(input.readInt64()); - } - input.popLimit(limit); - break; - } - case 74: { - String s = input.readStringRequireUtf8(); - - signatureHex_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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) != 0)) { - transactionIds_ = transactionIds_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - contractFees_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_TickData_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_TickData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - TickData.class, Builder.class); - } - - public static final int COMPUTOR_INDEX_FIELD_NUMBER = 1; - private int computorIndex_; - /** - * uint32 computor_index = 1; - * @return The computorIndex. - */ - @Override - public int getComputorIndex() { - return computorIndex_; - } - - public static final int EPOCH_FIELD_NUMBER = 2; - private int epoch_; - /** - * uint32 epoch = 2; - * @return The epoch. - */ - @Override - public int getEpoch() { - return epoch_; - } - - public static final int TICK_NUMBER_FIELD_NUMBER = 3; - private int tickNumber_; - /** - * uint32 tick_number = 3; - * @return The tickNumber. - */ - @Override - public int getTickNumber() { - return tickNumber_; - } - - public static final int TIMESTAMP_FIELD_NUMBER = 4; - private long timestamp_; - /** - * uint64 timestamp = 4; - * @return The timestamp. - */ - @Override - public long getTimestamp() { - return timestamp_; - } - - public static final int VAR_STRUCT_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString varStruct_; - /** - * bytes var_struct = 5; - * @return The varStruct. - */ - @Override - public com.google.protobuf.ByteString getVarStruct() { - return varStruct_; - } - - public static final int TIME_LOCK_FIELD_NUMBER = 6; - private com.google.protobuf.ByteString timeLock_; - /** - * bytes time_lock = 6; - * @return The timeLock. - */ - @Override - public com.google.protobuf.ByteString getTimeLock() { - return timeLock_; - } - - public static final int TRANSACTION_IDS_FIELD_NUMBER = 7; - private com.google.protobuf.LazyStringList transactionIds_; - /** - * repeated string transaction_ids = 7; - * @return A list containing the transactionIds. - */ - public com.google.protobuf.ProtocolStringList - getTransactionIdsList() { - return transactionIds_; - } - /** - * repeated string transaction_ids = 7; - * @return The count of transactionIds. - */ - public int getTransactionIdsCount() { - return transactionIds_.size(); - } - /** - * repeated string transaction_ids = 7; - * @param index The index of the element to return. - * @return The transactionIds at the given index. - */ - public String getTransactionIds(int index) { - return transactionIds_.get(index); - } - /** - * repeated string transaction_ids = 7; - * @param index The index of the value to return. - * @return The bytes of the transactionIds at the given index. - */ - public com.google.protobuf.ByteString - getTransactionIdsBytes(int index) { - return transactionIds_.getByteString(index); - } - - public static final int CONTRACT_FEES_FIELD_NUMBER = 8; - private com.google.protobuf.Internal.LongList contractFees_; - /** - * repeated int64 contract_fees = 8; - * @return A list containing the contractFees. - */ - @Override - public java.util.List - getContractFeesList() { - return contractFees_; - } - /** - * repeated int64 contract_fees = 8; - * @return The count of contractFees. - */ - public int getContractFeesCount() { - return contractFees_.size(); - } - /** - * repeated int64 contract_fees = 8; - * @param index The index of the element to return. - * @return The contractFees at the given index. - */ - public long getContractFees(int index) { - return contractFees_.getLong(index); - } - private int contractFeesMemoizedSerializedSize = -1; - - public static final int SIGNATURE_HEX_FIELD_NUMBER = 9; - private volatile Object signatureHex_; - /** - * string signature_hex = 9; - * @return The signatureHex. - */ - @Override - public String getSignatureHex() { - Object ref = signatureHex_; - if (ref instanceof String) { - return (String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - signatureHex_ = s; - return s; - } - } - /** - * string signature_hex = 9; - * @return The bytes for signatureHex. - */ - @Override - public com.google.protobuf.ByteString - getSignatureHexBytes() { - Object ref = signatureHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - signatureHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (computorIndex_ != 0) { - output.writeUInt32(1, computorIndex_); - } - if (epoch_ != 0) { - output.writeUInt32(2, epoch_); - } - if (tickNumber_ != 0) { - output.writeUInt32(3, tickNumber_); - } - if (timestamp_ != 0L) { - output.writeUInt64(4, timestamp_); - } - if (!varStruct_.isEmpty()) { - output.writeBytes(5, varStruct_); - } - if (!timeLock_.isEmpty()) { - output.writeBytes(6, timeLock_); - } - for (int i = 0; i < transactionIds_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, transactionIds_.getRaw(i)); - } - if (getContractFeesList().size() > 0) { - output.writeUInt32NoTag(66); - output.writeUInt32NoTag(contractFeesMemoizedSerializedSize); - } - for (int i = 0; i < contractFees_.size(); i++) { - output.writeInt64NoTag(contractFees_.getLong(i)); - } - if (!getSignatureHexBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, signatureHex_); - } - unknownFields.writeTo(output); - } - - @Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (computorIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, computorIndex_); - } - if (epoch_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, epoch_); - } - if (tickNumber_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, tickNumber_); - } - if (timestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, timestamp_); - } - if (!varStruct_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, varStruct_); - } - if (!timeLock_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, timeLock_); - } - { - int dataSize = 0; - for (int i = 0; i < transactionIds_.size(); i++) { - dataSize += computeStringSizeNoTag(transactionIds_.getRaw(i)); - } - size += dataSize; - size += 1 * getTransactionIdsList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < contractFees_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt64SizeNoTag(contractFees_.getLong(i)); - } - size += dataSize; - if (!getContractFeesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - contractFeesMemoizedSerializedSize = dataSize; - } - if (!getSignatureHexBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, signatureHex_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @Override - public boolean equals(final Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof TickData)) { - return super.equals(obj); - } - TickData other = (TickData) obj; - - if (getComputorIndex() - != other.getComputorIndex()) return false; - if (getEpoch() - != other.getEpoch()) return false; - if (getTickNumber() - != other.getTickNumber()) return false; - if (getTimestamp() - != other.getTimestamp()) return false; - if (!getVarStruct() - .equals(other.getVarStruct())) return false; - if (!getTimeLock() - .equals(other.getTimeLock())) return false; - if (!getTransactionIdsList() - .equals(other.getTransactionIdsList())) return false; - if (!getContractFeesList() - .equals(other.getContractFeesList())) return false; - if (!getSignatureHex() - .equals(other.getSignatureHex())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + COMPUTOR_INDEX_FIELD_NUMBER; - hash = (53 * hash) + getComputorIndex(); - hash = (37 * hash) + EPOCH_FIELD_NUMBER; - hash = (53 * hash) + getEpoch(); - hash = (37 * hash) + TICK_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getTickNumber(); - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimestamp()); - hash = (37 * hash) + VAR_STRUCT_FIELD_NUMBER; - hash = (53 * hash) + getVarStruct().hashCode(); - hash = (37 * hash) + TIME_LOCK_FIELD_NUMBER; - hash = (53 * hash) + getTimeLock().hashCode(); - if (getTransactionIdsCount() > 0) { - hash = (37 * hash) + TRANSACTION_IDS_FIELD_NUMBER; - hash = (53 * hash) + getTransactionIdsList().hashCode(); - } - if (getContractFeesCount() > 0) { - hash = (37 * hash) + CONTRACT_FEES_FIELD_NUMBER; - hash = (53 * hash) + getContractFeesList().hashCode(); - } - hash = (37 * hash) + SIGNATURE_HEX_FIELD_NUMBER; - hash = (53 * hash) + getSignatureHex().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static TickData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static TickData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static TickData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static TickData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static TickData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static TickData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static TickData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static TickData 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 TickData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static TickData 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 TickData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static TickData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(TickData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.TickData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.TickData) - TickDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_TickData_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_TickData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - TickData.class, Builder.class); - } - - // Construct using org.qubic.archiver.proto.TickData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @Override - public Builder clear() { - super.clear(); - computorIndex_ = 0; - - epoch_ = 0; - - tickNumber_ = 0; - - timestamp_ = 0L; - - varStruct_ = com.google.protobuf.ByteString.EMPTY; - - timeLock_ = com.google.protobuf.ByteString.EMPTY; - - transactionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - contractFees_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000002); - signatureHex_ = ""; - - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_TickData_descriptor; - } - - @Override - public TickData getDefaultInstanceForType() { - return TickData.getDefaultInstance(); - } - - @Override - public TickData build() { - TickData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public TickData buildPartial() { - TickData result = new TickData(this); - int from_bitField0_ = bitField0_; - result.computorIndex_ = computorIndex_; - result.epoch_ = epoch_; - result.tickNumber_ = tickNumber_; - result.timestamp_ = timestamp_; - result.varStruct_ = varStruct_; - result.timeLock_ = timeLock_; - if (((bitField0_ & 0x00000001) != 0)) { - transactionIds_ = transactionIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.transactionIds_ = transactionIds_; - if (((bitField0_ & 0x00000002) != 0)) { - contractFees_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.contractFees_ = contractFees_; - result.signatureHex_ = signatureHex_; - onBuilt(); - return result; - } - - @Override - public Builder clone() { - return super.clone(); - } - @Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.setField(field, value); - } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return super.setRepeatedField(field, index, value); - } - @Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.addRepeatedField(field, value); - } - @Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof TickData) { - return mergeFrom((TickData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(TickData other) { - if (other == TickData.getDefaultInstance()) return this; - if (other.getComputorIndex() != 0) { - setComputorIndex(other.getComputorIndex()); - } - if (other.getEpoch() != 0) { - setEpoch(other.getEpoch()); - } - if (other.getTickNumber() != 0) { - setTickNumber(other.getTickNumber()); - } - if (other.getTimestamp() != 0L) { - setTimestamp(other.getTimestamp()); - } - if (other.getVarStruct() != com.google.protobuf.ByteString.EMPTY) { - setVarStruct(other.getVarStruct()); - } - if (other.getTimeLock() != com.google.protobuf.ByteString.EMPTY) { - setTimeLock(other.getTimeLock()); - } - if (!other.transactionIds_.isEmpty()) { - if (transactionIds_.isEmpty()) { - transactionIds_ = other.transactionIds_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTransactionIdsIsMutable(); - transactionIds_.addAll(other.transactionIds_); - } - onChanged(); - } - if (!other.contractFees_.isEmpty()) { - if (contractFees_.isEmpty()) { - contractFees_ = other.contractFees_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureContractFeesIsMutable(); - contractFees_.addAll(other.contractFees_); - } - onChanged(); - } - if (!other.getSignatureHex().isEmpty()) { - signatureHex_ = other.signatureHex_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - TickData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (TickData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int computorIndex_ ; - /** - * uint32 computor_index = 1; - * @return The computorIndex. - */ - @Override - public int getComputorIndex() { - return computorIndex_; - } - /** - * uint32 computor_index = 1; - * @param value The computorIndex to set. - * @return This builder for chaining. - */ - public Builder setComputorIndex(int value) { - - computorIndex_ = value; - onChanged(); - return this; - } - /** - * uint32 computor_index = 1; - * @return This builder for chaining. - */ - public Builder clearComputorIndex() { - - computorIndex_ = 0; - onChanged(); - return this; - } - - private int epoch_ ; - /** - * uint32 epoch = 2; - * @return The epoch. - */ - @Override - public int getEpoch() { - return epoch_; - } - /** - * uint32 epoch = 2; - * @param value The epoch to set. - * @return This builder for chaining. - */ - public Builder setEpoch(int value) { - - epoch_ = value; - onChanged(); - return this; - } - /** - * uint32 epoch = 2; - * @return This builder for chaining. - */ - public Builder clearEpoch() { - - epoch_ = 0; - onChanged(); - return this; - } - - private int tickNumber_ ; - /** - * uint32 tick_number = 3; - * @return The tickNumber. - */ - @Override - public int getTickNumber() { - return tickNumber_; - } - /** - * uint32 tick_number = 3; - * @param value The tickNumber to set. - * @return This builder for chaining. - */ - public Builder setTickNumber(int value) { - - tickNumber_ = value; - onChanged(); - return this; - } - /** - * uint32 tick_number = 3; - * @return This builder for chaining. - */ - public Builder clearTickNumber() { - - tickNumber_ = 0; - onChanged(); - return this; - } - - private long timestamp_ ; - /** - * uint64 timestamp = 4; - * @return The timestamp. - */ - @Override - public long getTimestamp() { - return timestamp_; - } - /** - * uint64 timestamp = 4; - * @param value The timestamp to set. - * @return This builder for chaining. - */ - public Builder setTimestamp(long value) { - - timestamp_ = value; - onChanged(); - return this; - } - /** - * uint64 timestamp = 4; - * @return This builder for chaining. - */ - public Builder clearTimestamp() { - - timestamp_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString varStruct_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes var_struct = 5; - * @return The varStruct. - */ - @Override - public com.google.protobuf.ByteString getVarStruct() { - return varStruct_; - } - /** - * bytes var_struct = 5; - * @param value The varStruct to set. - * @return This builder for chaining. - */ - public Builder setVarStruct(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - varStruct_ = value; - onChanged(); - return this; - } - /** - * bytes var_struct = 5; - * @return This builder for chaining. - */ - public Builder clearVarStruct() { - - varStruct_ = getDefaultInstance().getVarStruct(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString timeLock_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes time_lock = 6; - * @return The timeLock. - */ - @Override - public com.google.protobuf.ByteString getTimeLock() { - return timeLock_; - } - /** - * bytes time_lock = 6; - * @param value The timeLock to set. - * @return This builder for chaining. - */ - public Builder setTimeLock(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - timeLock_ = value; - onChanged(); - return this; - } - /** - * bytes time_lock = 6; - * @return This builder for chaining. - */ - public Builder clearTimeLock() { - - timeLock_ = getDefaultInstance().getTimeLock(); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList transactionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureTransactionIdsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - transactionIds_ = new com.google.protobuf.LazyStringArrayList(transactionIds_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string transaction_ids = 7; - * @return A list containing the transactionIds. - */ - public com.google.protobuf.ProtocolStringList - getTransactionIdsList() { - return transactionIds_.getUnmodifiableView(); - } - /** - * repeated string transaction_ids = 7; - * @return The count of transactionIds. - */ - public int getTransactionIdsCount() { - return transactionIds_.size(); - } - /** - * repeated string transaction_ids = 7; - * @param index The index of the element to return. - * @return The transactionIds at the given index. - */ - public String getTransactionIds(int index) { - return transactionIds_.get(index); - } - /** - * repeated string transaction_ids = 7; - * @param index The index of the value to return. - * @return The bytes of the transactionIds at the given index. - */ - public com.google.protobuf.ByteString - getTransactionIdsBytes(int index) { - return transactionIds_.getByteString(index); - } - /** - * repeated string transaction_ids = 7; - * @param index The index to set the value at. - * @param value The transactionIds to set. - * @return This builder for chaining. - */ - public Builder setTransactionIds( - int index, String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransactionIdsIsMutable(); - transactionIds_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string transaction_ids = 7; - * @param value The transactionIds to add. - * @return This builder for chaining. - */ - public Builder addTransactionIds( - String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransactionIdsIsMutable(); - transactionIds_.add(value); - onChanged(); - return this; - } - /** - * repeated string transaction_ids = 7; - * @param values The transactionIds to add. - * @return This builder for chaining. - */ - public Builder addAllTransactionIds( - Iterable values) { - ensureTransactionIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, transactionIds_); - onChanged(); - return this; - } - /** - * repeated string transaction_ids = 7; - * @return This builder for chaining. - */ - public Builder clearTransactionIds() { - transactionIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string transaction_ids = 7; - * @param value The bytes of the transactionIds to add. - * @return This builder for chaining. - */ - public Builder addTransactionIdsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTransactionIdsIsMutable(); - transactionIds_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.LongList contractFees_ = emptyLongList(); - private void ensureContractFeesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - contractFees_ = mutableCopy(contractFees_); - bitField0_ |= 0x00000002; - } - } - /** - * repeated int64 contract_fees = 8; - * @return A list containing the contractFees. - */ - public java.util.List - getContractFeesList() { - return ((bitField0_ & 0x00000002) != 0) ? - java.util.Collections.unmodifiableList(contractFees_) : contractFees_; - } - /** - * repeated int64 contract_fees = 8; - * @return The count of contractFees. - */ - public int getContractFeesCount() { - return contractFees_.size(); - } - /** - * repeated int64 contract_fees = 8; - * @param index The index of the element to return. - * @return The contractFees at the given index. - */ - public long getContractFees(int index) { - return contractFees_.getLong(index); - } - /** - * repeated int64 contract_fees = 8; - * @param index The index to set the value at. - * @param value The contractFees to set. - * @return This builder for chaining. - */ - public Builder setContractFees( - int index, long value) { - ensureContractFeesIsMutable(); - contractFees_.setLong(index, value); - onChanged(); - return this; - } - /** - * repeated int64 contract_fees = 8; - * @param value The contractFees to add. - * @return This builder for chaining. - */ - public Builder addContractFees(long value) { - ensureContractFeesIsMutable(); - contractFees_.addLong(value); - onChanged(); - return this; - } - /** - * repeated int64 contract_fees = 8; - * @param values The contractFees to add. - * @return This builder for chaining. - */ - public Builder addAllContractFees( - Iterable values) { - ensureContractFeesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, contractFees_); - onChanged(); - return this; - } - /** - * repeated int64 contract_fees = 8; - * @return This builder for chaining. - */ - public Builder clearContractFees() { - contractFees_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - private Object signatureHex_ = ""; - /** - * string signature_hex = 9; - * @return The signatureHex. - */ - public String getSignatureHex() { - Object ref = signatureHex_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - signatureHex_ = s; - return s; - } else { - return (String) ref; - } - } - /** - * string signature_hex = 9; - * @return The bytes for signatureHex. - */ - public com.google.protobuf.ByteString - getSignatureHexBytes() { - Object ref = signatureHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - signatureHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string signature_hex = 9; - * @param value The signatureHex to set. - * @return This builder for chaining. - */ - public Builder setSignatureHex( - String value) { - if (value == null) { - throw new NullPointerException(); - } - - signatureHex_ = value; - onChanged(); - return this; - } - /** - * string signature_hex = 9; - * @return This builder for chaining. - */ - public Builder clearSignatureHex() { - - signatureHex_ = getDefaultInstance().getSignatureHex(); - onChanged(); - return this; - } - /** - * string signature_hex = 9; - * @param value The bytes for signatureHex to set. - * @return This builder for chaining. - */ - public Builder setSignatureHexBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - signatureHex_ = value; - onChanged(); - return this; - } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.TickData) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.TickData) - private static final TickData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new TickData(); - } - - public static TickData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public TickData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TickData(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public TickData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/TickDataOrBuilder.java b/src/main/java/org/qubic/archiver/proto/TickDataOrBuilder.java deleted file mode 100644 index 71350df..0000000 --- a/src/main/java/org/qubic/archiver/proto/TickDataOrBuilder.java +++ /dev/null @@ -1,99 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface TickDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.TickData) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 computor_index = 1; - * @return The computorIndex. - */ - int getComputorIndex(); - - /** - * uint32 epoch = 2; - * @return The epoch. - */ - int getEpoch(); - - /** - * uint32 tick_number = 3; - * @return The tickNumber. - */ - int getTickNumber(); - - /** - * uint64 timestamp = 4; - * @return The timestamp. - */ - long getTimestamp(); - - /** - * bytes var_struct = 5; - * @return The varStruct. - */ - com.google.protobuf.ByteString getVarStruct(); - - /** - * bytes time_lock = 6; - * @return The timeLock. - */ - com.google.protobuf.ByteString getTimeLock(); - - /** - * repeated string transaction_ids = 7; - * @return A list containing the transactionIds. - */ - java.util.List - getTransactionIdsList(); - /** - * repeated string transaction_ids = 7; - * @return The count of transactionIds. - */ - int getTransactionIdsCount(); - /** - * repeated string transaction_ids = 7; - * @param index The index of the element to return. - * @return The transactionIds at the given index. - */ - String getTransactionIds(int index); - /** - * repeated string transaction_ids = 7; - * @param index The index of the value to return. - * @return The bytes of the transactionIds at the given index. - */ - com.google.protobuf.ByteString - getTransactionIdsBytes(int index); - - /** - * repeated int64 contract_fees = 8; - * @return A list containing the contractFees. - */ - java.util.List getContractFeesList(); - /** - * repeated int64 contract_fees = 8; - * @return The count of contractFees. - */ - int getContractFeesCount(); - /** - * repeated int64 contract_fees = 8; - * @param index The index of the element to return. - * @return The contractFees at the given index. - */ - long getContractFees(int index); - - /** - * string signature_hex = 9; - * @return The signatureHex. - */ - String getSignatureHex(); - /** - * string signature_hex = 9; - * @return The bytes for signatureHex. - */ - com.google.protobuf.ByteString - getSignatureHexBytes(); -} diff --git a/src/main/java/org/qubic/archiver/proto/TickOrBuilder.java b/src/main/java/org/qubic/archiver/proto/TickOrBuilder.java deleted file mode 100644 index 19c49f2..0000000 --- a/src/main/java/org/qubic/archiver/proto/TickOrBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface TickOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.Tick) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 computor_index = 1; - * @return The computorIndex. - */ - int getComputorIndex(); - - /** - * uint32 epoch = 2; - * @return The epoch. - */ - int getEpoch(); - - /** - * uint32 tick_number = 3; - * @return The tickNumber. - */ - int getTickNumber(); - - /** - * uint64 timestamp = 4; - * @return The timestamp. - */ - long getTimestamp(); - - /** - *
-   *Will change to return with unmarshalled info
-   * 
- * - * bytes var_struct = 5; - * @return The varStruct. - */ - com.google.protobuf.ByteString getVarStruct(); - - /** - * bytes time_lock = 6; - * @return The timeLock. - */ - com.google.protobuf.ByteString getTimeLock(); - - /** - * repeated string transaction_ids = 7; - * @return A list containing the transactionIds. - */ - java.util.List - getTransactionIdsList(); - /** - * repeated string transaction_ids = 7; - * @return The count of transactionIds. - */ - int getTransactionIdsCount(); - /** - * repeated string transaction_ids = 7; - * @param index The index of the element to return. - * @return The transactionIds at the given index. - */ - String getTransactionIds(int index); - /** - * repeated string transaction_ids = 7; - * @param index The index of the value to return. - * @return The bytes of the transactionIds at the given index. - */ - com.google.protobuf.ByteString - getTransactionIdsBytes(int index); - - /** - * repeated int64 contract_fees = 8; - * @return A list containing the contractFees. - */ - java.util.List getContractFeesList(); - /** - * repeated int64 contract_fees = 8; - * @return The count of contractFees. - */ - int getContractFeesCount(); - /** - * repeated int64 contract_fees = 8; - * @param index The index of the element to return. - * @return The contractFees at the given index. - */ - long getContractFees(int index); - - /** - * string signature_hex = 9; - * @return The signatureHex. - */ - String getSignatureHex(); - /** - * string signature_hex = 9; - * @return The bytes for signatureHex. - */ - com.google.protobuf.ByteString - getSignatureHexBytes(); -} diff --git a/src/main/java/org/qubic/archiver/proto/TickTransactionsStatus.java b/src/main/java/org/qubic/archiver/proto/TickTransactionsStatus.java deleted file mode 100644 index 47c5250..0000000 --- a/src/main/java/org/qubic/archiver/proto/TickTransactionsStatus.java +++ /dev/null @@ -1,770 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.TickTransactionsStatus} - */ -public final class TickTransactionsStatus extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.TickTransactionsStatus) - TickTransactionsStatusOrBuilder { -private static final long serialVersionUID = 0L; - // Use TickTransactionsStatus.newBuilder() to construct. - private TickTransactionsStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TickTransactionsStatus() { - transactions_ = java.util.Collections.emptyList(); - } - - @Override - @SuppressWarnings({"unused"}) - protected Object newInstance( - UnusedPrivateParameter unused) { - return new TickTransactionsStatus(); - } - - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TickTransactionsStatus( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - transactions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - transactions_.add( - input.readMessage(TransactionStatus.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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) != 0)) { - transactions_ = java.util.Collections.unmodifiableList(transactions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_TickTransactionsStatus_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_TickTransactionsStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - TickTransactionsStatus.class, Builder.class); - } - - public static final int TRANSACTIONS_FIELD_NUMBER = 1; - private java.util.List transactions_; - /** - * repeated .qubic.archiver.archive.pb.TransactionStatus transactions = 1; - */ - @Override - public java.util.List getTransactionsList() { - return transactions_; - } - /** - * repeated .qubic.archiver.archive.pb.TransactionStatus transactions = 1; - */ - @Override - public java.util.List - getTransactionsOrBuilderList() { - return transactions_; - } - /** - * repeated .qubic.archiver.archive.pb.TransactionStatus transactions = 1; - */ - @Override - public int getTransactionsCount() { - return transactions_.size(); - } - /** - * repeated .qubic.archiver.archive.pb.TransactionStatus transactions = 1; - */ - @Override - public TransactionStatus getTransactions(int index) { - return transactions_.get(index); - } - /** - * repeated .qubic.archiver.archive.pb.TransactionStatus transactions = 1; - */ - @Override - public TransactionStatusOrBuilder getTransactionsOrBuilder( - int index) { - return transactions_.get(index); - } - - private byte memoizedIsInitialized = -1; - @Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < transactions_.size(); i++) { - output.writeMessage(1, transactions_.get(i)); - } - unknownFields.writeTo(output); - } - - @Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < transactions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, transactions_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @Override - public boolean equals(final Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof TickTransactionsStatus)) { - return super.equals(obj); - } - TickTransactionsStatus other = (TickTransactionsStatus) obj; - - if (!getTransactionsList() - .equals(other.getTransactionsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTransactionsCount() > 0) { - hash = (37 * hash) + TRANSACTIONS_FIELD_NUMBER; - hash = (53 * hash) + getTransactionsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static TickTransactionsStatus parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static TickTransactionsStatus parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static TickTransactionsStatus parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static TickTransactionsStatus parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static TickTransactionsStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static TickTransactionsStatus parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static TickTransactionsStatus parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static TickTransactionsStatus 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 TickTransactionsStatus parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static TickTransactionsStatus 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 TickTransactionsStatus parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static TickTransactionsStatus parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(TickTransactionsStatus prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.TickTransactionsStatus} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.TickTransactionsStatus) - TickTransactionsStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_TickTransactionsStatus_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_TickTransactionsStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - TickTransactionsStatus.class, Builder.class); - } - - // Construct using org.qubic.archiver.proto.TickTransactionsStatus.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTransactionsFieldBuilder(); - } - } - @Override - public Builder clear() { - super.clear(); - if (transactionsBuilder_ == null) { - transactions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - transactionsBuilder_.clear(); - } - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_TickTransactionsStatus_descriptor; - } - - @Override - public TickTransactionsStatus getDefaultInstanceForType() { - return TickTransactionsStatus.getDefaultInstance(); - } - - @Override - public TickTransactionsStatus build() { - TickTransactionsStatus result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public TickTransactionsStatus buildPartial() { - TickTransactionsStatus result = new TickTransactionsStatus(this); - int from_bitField0_ = bitField0_; - if (transactionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - transactions_ = java.util.Collections.unmodifiableList(transactions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.transactions_ = transactions_; - } else { - result.transactions_ = transactionsBuilder_.build(); - } - onBuilt(); - return result; - } - - @Override - public Builder clone() { - return super.clone(); - } - @Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.setField(field, value); - } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return super.setRepeatedField(field, index, value); - } - @Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.addRepeatedField(field, value); - } - @Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof TickTransactionsStatus) { - return mergeFrom((TickTransactionsStatus)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(TickTransactionsStatus other) { - if (other == TickTransactionsStatus.getDefaultInstance()) return this; - if (transactionsBuilder_ == null) { - if (!other.transactions_.isEmpty()) { - if (transactions_.isEmpty()) { - transactions_ = other.transactions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTransactionsIsMutable(); - transactions_.addAll(other.transactions_); - } - onChanged(); - } - } else { - if (!other.transactions_.isEmpty()) { - if (transactionsBuilder_.isEmpty()) { - transactionsBuilder_.dispose(); - transactionsBuilder_ = null; - transactions_ = other.transactions_; - bitField0_ = (bitField0_ & ~0x00000001); - transactionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTransactionsFieldBuilder() : null; - } else { - transactionsBuilder_.addAllMessages(other.transactions_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - TickTransactionsStatus parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (TickTransactionsStatus) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List transactions_ = - java.util.Collections.emptyList(); - private void ensureTransactionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - transactions_ = new java.util.ArrayList(transactions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - TransactionStatus, TransactionStatus.Builder, TransactionStatusOrBuilder> transactionsBuilder_; - - /** - * repeated .qubic.archiver.archive.pb.TransactionStatus transactions = 1; - */ - public java.util.List getTransactionsList() { - if (transactionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(transactions_); - } else { - return transactionsBuilder_.getMessageList(); - } - } - /** - * repeated .qubic.archiver.archive.pb.TransactionStatus transactions = 1; - */ - public int getTransactionsCount() { - if (transactionsBuilder_ == null) { - return transactions_.size(); - } else { - return transactionsBuilder_.getCount(); - } - } - /** - * repeated .qubic.archiver.archive.pb.TransactionStatus transactions = 1; - */ - public TransactionStatus getTransactions(int index) { - if (transactionsBuilder_ == null) { - return transactions_.get(index); - } else { - return transactionsBuilder_.getMessage(index); - } - } - /** - * repeated .qubic.archiver.archive.pb.TransactionStatus transactions = 1; - */ - public Builder setTransactions( - int index, TransactionStatus value) { - if (transactionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransactionsIsMutable(); - transactions_.set(index, value); - onChanged(); - } else { - transactionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.TransactionStatus transactions = 1; - */ - public Builder setTransactions( - int index, TransactionStatus.Builder builderForValue) { - if (transactionsBuilder_ == null) { - ensureTransactionsIsMutable(); - transactions_.set(index, builderForValue.build()); - onChanged(); - } else { - transactionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.TransactionStatus transactions = 1; - */ - public Builder addTransactions(TransactionStatus value) { - if (transactionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransactionsIsMutable(); - transactions_.add(value); - onChanged(); - } else { - transactionsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.TransactionStatus transactions = 1; - */ - public Builder addTransactions( - int index, TransactionStatus value) { - if (transactionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransactionsIsMutable(); - transactions_.add(index, value); - onChanged(); - } else { - transactionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.TransactionStatus transactions = 1; - */ - public Builder addTransactions( - TransactionStatus.Builder builderForValue) { - if (transactionsBuilder_ == null) { - ensureTransactionsIsMutable(); - transactions_.add(builderForValue.build()); - onChanged(); - } else { - transactionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.TransactionStatus transactions = 1; - */ - public Builder addTransactions( - int index, TransactionStatus.Builder builderForValue) { - if (transactionsBuilder_ == null) { - ensureTransactionsIsMutable(); - transactions_.add(index, builderForValue.build()); - onChanged(); - } else { - transactionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.TransactionStatus transactions = 1; - */ - public Builder addAllTransactions( - Iterable values) { - if (transactionsBuilder_ == null) { - ensureTransactionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, transactions_); - onChanged(); - } else { - transactionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.TransactionStatus transactions = 1; - */ - public Builder clearTransactions() { - if (transactionsBuilder_ == null) { - transactions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - transactionsBuilder_.clear(); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.TransactionStatus transactions = 1; - */ - public Builder removeTransactions(int index) { - if (transactionsBuilder_ == null) { - ensureTransactionsIsMutable(); - transactions_.remove(index); - onChanged(); - } else { - transactionsBuilder_.remove(index); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.TransactionStatus transactions = 1; - */ - public TransactionStatus.Builder getTransactionsBuilder( - int index) { - return getTransactionsFieldBuilder().getBuilder(index); - } - /** - * repeated .qubic.archiver.archive.pb.TransactionStatus transactions = 1; - */ - public TransactionStatusOrBuilder getTransactionsOrBuilder( - int index) { - if (transactionsBuilder_ == null) { - return transactions_.get(index); } else { - return transactionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .qubic.archiver.archive.pb.TransactionStatus transactions = 1; - */ - public java.util.List - getTransactionsOrBuilderList() { - if (transactionsBuilder_ != null) { - return transactionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(transactions_); - } - } - /** - * repeated .qubic.archiver.archive.pb.TransactionStatus transactions = 1; - */ - public TransactionStatus.Builder addTransactionsBuilder() { - return getTransactionsFieldBuilder().addBuilder( - TransactionStatus.getDefaultInstance()); - } - /** - * repeated .qubic.archiver.archive.pb.TransactionStatus transactions = 1; - */ - public TransactionStatus.Builder addTransactionsBuilder( - int index) { - return getTransactionsFieldBuilder().addBuilder( - index, TransactionStatus.getDefaultInstance()); - } - /** - * repeated .qubic.archiver.archive.pb.TransactionStatus transactions = 1; - */ - public java.util.List - getTransactionsBuilderList() { - return getTransactionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - TransactionStatus, TransactionStatus.Builder, TransactionStatusOrBuilder> - getTransactionsFieldBuilder() { - if (transactionsBuilder_ == null) { - transactionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - TransactionStatus, TransactionStatus.Builder, TransactionStatusOrBuilder>( - transactions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - transactions_ = null; - } - return transactionsBuilder_; - } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.TickTransactionsStatus) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.TickTransactionsStatus) - private static final TickTransactionsStatus DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new TickTransactionsStatus(); - } - - public static TickTransactionsStatus getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public TickTransactionsStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TickTransactionsStatus(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public TickTransactionsStatus getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/TickTransactionsStatusOrBuilder.java b/src/main/java/org/qubic/archiver/proto/TickTransactionsStatusOrBuilder.java deleted file mode 100644 index 8de970d..0000000 --- a/src/main/java/org/qubic/archiver/proto/TickTransactionsStatusOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface TickTransactionsStatusOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.TickTransactionsStatus) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .qubic.archiver.archive.pb.TransactionStatus transactions = 1; - */ - java.util.List - getTransactionsList(); - /** - * repeated .qubic.archiver.archive.pb.TransactionStatus transactions = 1; - */ - org.qubic.archiver.proto.TransactionStatus getTransactions(int index); - /** - * repeated .qubic.archiver.archive.pb.TransactionStatus transactions = 1; - */ - int getTransactionsCount(); - /** - * repeated .qubic.archiver.archive.pb.TransactionStatus transactions = 1; - */ - java.util.List - getTransactionsOrBuilderList(); - /** - * repeated .qubic.archiver.archive.pb.TransactionStatus transactions = 1; - */ - org.qubic.archiver.proto.TransactionStatusOrBuilder getTransactionsOrBuilder( - int index); -} diff --git a/src/main/java/org/qubic/archiver/proto/Transaction.java b/src/main/java/org/qubic/archiver/proto/Transaction.java deleted file mode 100644 index e09f421..0000000 --- a/src/main/java/org/qubic/archiver/proto/Transaction.java +++ /dev/null @@ -1,1366 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.Transaction} - */ -public final class Transaction extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.Transaction) - TransactionOrBuilder { -private static final long serialVersionUID = 0L; - // Use Transaction.newBuilder() to construct. - private Transaction(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Transaction() { - sourceId_ = ""; - destId_ = ""; - inputHex_ = ""; - signatureHex_ = ""; - txId_ = ""; - } - - @Override - @SuppressWarnings({"unused"}) - protected Object newInstance( - UnusedPrivateParameter unused) { - return new Transaction(); - } - - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Transaction( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - String s = input.readStringRequireUtf8(); - - sourceId_ = s; - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - destId_ = s; - break; - } - case 24: { - - amount_ = input.readInt64(); - break; - } - case 32: { - - tickNumber_ = input.readUInt32(); - break; - } - case 40: { - - inputType_ = input.readUInt32(); - break; - } - case 48: { - - inputSize_ = input.readUInt32(); - break; - } - case 58: { - String s = input.readStringRequireUtf8(); - - inputHex_ = s; - break; - } - case 66: { - String s = input.readStringRequireUtf8(); - - signatureHex_ = s; - break; - } - case 74: { - String s = input.readStringRequireUtf8(); - - txId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_Transaction_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_Transaction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - Transaction.class, Builder.class); - } - - public static final int SOURCE_ID_FIELD_NUMBER = 1; - private volatile Object sourceId_; - /** - * string source_id = 1; - * @return The sourceId. - */ - @Override - public String getSourceId() { - Object ref = sourceId_; - if (ref instanceof String) { - return (String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - sourceId_ = s; - return s; - } - } - /** - * string source_id = 1; - * @return The bytes for sourceId. - */ - @Override - public com.google.protobuf.ByteString - getSourceIdBytes() { - Object ref = sourceId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - sourceId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEST_ID_FIELD_NUMBER = 2; - private volatile Object destId_; - /** - * string dest_id = 2; - * @return The destId. - */ - @Override - public String getDestId() { - Object ref = destId_; - if (ref instanceof String) { - return (String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - destId_ = s; - return s; - } - } - /** - * string dest_id = 2; - * @return The bytes for destId. - */ - @Override - public com.google.protobuf.ByteString - getDestIdBytes() { - Object ref = destId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - destId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AMOUNT_FIELD_NUMBER = 3; - private long amount_; - /** - * int64 amount = 3; - * @return The amount. - */ - @Override - public long getAmount() { - return amount_; - } - - public static final int TICK_NUMBER_FIELD_NUMBER = 4; - private int tickNumber_; - /** - * uint32 tick_number = 4; - * @return The tickNumber. - */ - @Override - public int getTickNumber() { - return tickNumber_; - } - - public static final int INPUT_TYPE_FIELD_NUMBER = 5; - private int inputType_; - /** - * uint32 input_type = 5; - * @return The inputType. - */ - @Override - public int getInputType() { - return inputType_; - } - - public static final int INPUT_SIZE_FIELD_NUMBER = 6; - private int inputSize_; - /** - * uint32 input_size = 6; - * @return The inputSize. - */ - @Override - public int getInputSize() { - return inputSize_; - } - - public static final int INPUT_HEX_FIELD_NUMBER = 7; - private volatile Object inputHex_; - /** - * string input_hex = 7; - * @return The inputHex. - */ - @Override - public String getInputHex() { - Object ref = inputHex_; - if (ref instanceof String) { - return (String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - inputHex_ = s; - return s; - } - } - /** - * string input_hex = 7; - * @return The bytes for inputHex. - */ - @Override - public com.google.protobuf.ByteString - getInputHexBytes() { - Object ref = inputHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - inputHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SIGNATURE_HEX_FIELD_NUMBER = 8; - private volatile Object signatureHex_; - /** - * string signature_hex = 8; - * @return The signatureHex. - */ - @Override - public String getSignatureHex() { - Object ref = signatureHex_; - if (ref instanceof String) { - return (String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - signatureHex_ = s; - return s; - } - } - /** - * string signature_hex = 8; - * @return The bytes for signatureHex. - */ - @Override - public com.google.protobuf.ByteString - getSignatureHexBytes() { - Object ref = signatureHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - signatureHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TX_ID_FIELD_NUMBER = 9; - private volatile Object txId_; - /** - * string tx_id = 9; - * @return The txId. - */ - @Override - public String getTxId() { - Object ref = txId_; - if (ref instanceof String) { - return (String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - txId_ = s; - return s; - } - } - /** - * string tx_id = 9; - * @return The bytes for txId. - */ - @Override - public com.google.protobuf.ByteString - getTxIdBytes() { - Object ref = txId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - txId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getSourceIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceId_); - } - if (!getDestIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, destId_); - } - if (amount_ != 0L) { - output.writeInt64(3, amount_); - } - if (tickNumber_ != 0) { - output.writeUInt32(4, tickNumber_); - } - if (inputType_ != 0) { - output.writeUInt32(5, inputType_); - } - if (inputSize_ != 0) { - output.writeUInt32(6, inputSize_); - } - if (!getInputHexBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, inputHex_); - } - if (!getSignatureHexBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, signatureHex_); - } - if (!getTxIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, txId_); - } - unknownFields.writeTo(output); - } - - @Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getSourceIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sourceId_); - } - if (!getDestIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, destId_); - } - if (amount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, amount_); - } - if (tickNumber_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, tickNumber_); - } - if (inputType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, inputType_); - } - if (inputSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(6, inputSize_); - } - if (!getInputHexBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, inputHex_); - } - if (!getSignatureHexBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, signatureHex_); - } - if (!getTxIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, txId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @Override - public boolean equals(final Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof Transaction)) { - return super.equals(obj); - } - Transaction other = (Transaction) obj; - - if (!getSourceId() - .equals(other.getSourceId())) return false; - if (!getDestId() - .equals(other.getDestId())) return false; - if (getAmount() - != other.getAmount()) return false; - if (getTickNumber() - != other.getTickNumber()) return false; - if (getInputType() - != other.getInputType()) return false; - if (getInputSize() - != other.getInputSize()) return false; - if (!getInputHex() - .equals(other.getInputHex())) return false; - if (!getSignatureHex() - .equals(other.getSignatureHex())) return false; - if (!getTxId() - .equals(other.getTxId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SOURCE_ID_FIELD_NUMBER; - hash = (53 * hash) + getSourceId().hashCode(); - hash = (37 * hash) + DEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getDestId().hashCode(); - hash = (37 * hash) + AMOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAmount()); - hash = (37 * hash) + TICK_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getTickNumber(); - hash = (37 * hash) + INPUT_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getInputType(); - hash = (37 * hash) + INPUT_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getInputSize(); - hash = (37 * hash) + INPUT_HEX_FIELD_NUMBER; - hash = (53 * hash) + getInputHex().hashCode(); - hash = (37 * hash) + SIGNATURE_HEX_FIELD_NUMBER; - hash = (53 * hash) + getSignatureHex().hashCode(); - hash = (37 * hash) + TX_ID_FIELD_NUMBER; - hash = (53 * hash) + getTxId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static Transaction parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Transaction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static Transaction parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Transaction parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static Transaction parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Transaction parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static Transaction parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static Transaction 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 Transaction parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static Transaction 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 Transaction parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static Transaction parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(Transaction prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.Transaction} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.Transaction) - TransactionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_Transaction_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_Transaction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - Transaction.class, Builder.class); - } - - // Construct using org.qubic.archiver.proto.Transaction.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @Override - public Builder clear() { - super.clear(); - sourceId_ = ""; - - destId_ = ""; - - amount_ = 0L; - - tickNumber_ = 0; - - inputType_ = 0; - - inputSize_ = 0; - - inputHex_ = ""; - - signatureHex_ = ""; - - txId_ = ""; - - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_Transaction_descriptor; - } - - @Override - public Transaction getDefaultInstanceForType() { - return Transaction.getDefaultInstance(); - } - - @Override - public Transaction build() { - Transaction result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public Transaction buildPartial() { - Transaction result = new Transaction(this); - result.sourceId_ = sourceId_; - result.destId_ = destId_; - result.amount_ = amount_; - result.tickNumber_ = tickNumber_; - result.inputType_ = inputType_; - result.inputSize_ = inputSize_; - result.inputHex_ = inputHex_; - result.signatureHex_ = signatureHex_; - result.txId_ = txId_; - onBuilt(); - return result; - } - - @Override - public Builder clone() { - return super.clone(); - } - @Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.setField(field, value); - } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return super.setRepeatedField(field, index, value); - } - @Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.addRepeatedField(field, value); - } - @Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof Transaction) { - return mergeFrom((Transaction)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(Transaction other) { - if (other == Transaction.getDefaultInstance()) return this; - if (!other.getSourceId().isEmpty()) { - sourceId_ = other.sourceId_; - onChanged(); - } - if (!other.getDestId().isEmpty()) { - destId_ = other.destId_; - onChanged(); - } - if (other.getAmount() != 0L) { - setAmount(other.getAmount()); - } - if (other.getTickNumber() != 0) { - setTickNumber(other.getTickNumber()); - } - if (other.getInputType() != 0) { - setInputType(other.getInputType()); - } - if (other.getInputSize() != 0) { - setInputSize(other.getInputSize()); - } - if (!other.getInputHex().isEmpty()) { - inputHex_ = other.inputHex_; - onChanged(); - } - if (!other.getSignatureHex().isEmpty()) { - signatureHex_ = other.signatureHex_; - onChanged(); - } - if (!other.getTxId().isEmpty()) { - txId_ = other.txId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - Transaction parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Transaction) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private Object sourceId_ = ""; - /** - * string source_id = 1; - * @return The sourceId. - */ - public String getSourceId() { - Object ref = sourceId_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - sourceId_ = s; - return s; - } else { - return (String) ref; - } - } - /** - * string source_id = 1; - * @return The bytes for sourceId. - */ - public com.google.protobuf.ByteString - getSourceIdBytes() { - Object ref = sourceId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - sourceId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string source_id = 1; - * @param value The sourceId to set. - * @return This builder for chaining. - */ - public Builder setSourceId( - String value) { - if (value == null) { - throw new NullPointerException(); - } - - sourceId_ = value; - onChanged(); - return this; - } - /** - * string source_id = 1; - * @return This builder for chaining. - */ - public Builder clearSourceId() { - - sourceId_ = getDefaultInstance().getSourceId(); - onChanged(); - return this; - } - /** - * string source_id = 1; - * @param value The bytes for sourceId to set. - * @return This builder for chaining. - */ - public Builder setSourceIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - sourceId_ = value; - onChanged(); - return this; - } - - private Object destId_ = ""; - /** - * string dest_id = 2; - * @return The destId. - */ - public String getDestId() { - Object ref = destId_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - destId_ = s; - return s; - } else { - return (String) ref; - } - } - /** - * string dest_id = 2; - * @return The bytes for destId. - */ - public com.google.protobuf.ByteString - getDestIdBytes() { - Object ref = destId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - destId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string dest_id = 2; - * @param value The destId to set. - * @return This builder for chaining. - */ - public Builder setDestId( - String value) { - if (value == null) { - throw new NullPointerException(); - } - - destId_ = value; - onChanged(); - return this; - } - /** - * string dest_id = 2; - * @return This builder for chaining. - */ - public Builder clearDestId() { - - destId_ = getDefaultInstance().getDestId(); - onChanged(); - return this; - } - /** - * string dest_id = 2; - * @param value The bytes for destId to set. - * @return This builder for chaining. - */ - public Builder setDestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - destId_ = value; - onChanged(); - return this; - } - - private long amount_ ; - /** - * int64 amount = 3; - * @return The amount. - */ - @Override - public long getAmount() { - return amount_; - } - /** - * int64 amount = 3; - * @param value The amount to set. - * @return This builder for chaining. - */ - public Builder setAmount(long value) { - - amount_ = value; - onChanged(); - return this; - } - /** - * int64 amount = 3; - * @return This builder for chaining. - */ - public Builder clearAmount() { - - amount_ = 0L; - onChanged(); - return this; - } - - private int tickNumber_ ; - /** - * uint32 tick_number = 4; - * @return The tickNumber. - */ - @Override - public int getTickNumber() { - return tickNumber_; - } - /** - * uint32 tick_number = 4; - * @param value The tickNumber to set. - * @return This builder for chaining. - */ - public Builder setTickNumber(int value) { - - tickNumber_ = value; - onChanged(); - return this; - } - /** - * uint32 tick_number = 4; - * @return This builder for chaining. - */ - public Builder clearTickNumber() { - - tickNumber_ = 0; - onChanged(); - return this; - } - - private int inputType_ ; - /** - * uint32 input_type = 5; - * @return The inputType. - */ - @Override - public int getInputType() { - return inputType_; - } - /** - * uint32 input_type = 5; - * @param value The inputType to set. - * @return This builder for chaining. - */ - public Builder setInputType(int value) { - - inputType_ = value; - onChanged(); - return this; - } - /** - * uint32 input_type = 5; - * @return This builder for chaining. - */ - public Builder clearInputType() { - - inputType_ = 0; - onChanged(); - return this; - } - - private int inputSize_ ; - /** - * uint32 input_size = 6; - * @return The inputSize. - */ - @Override - public int getInputSize() { - return inputSize_; - } - /** - * uint32 input_size = 6; - * @param value The inputSize to set. - * @return This builder for chaining. - */ - public Builder setInputSize(int value) { - - inputSize_ = value; - onChanged(); - return this; - } - /** - * uint32 input_size = 6; - * @return This builder for chaining. - */ - public Builder clearInputSize() { - - inputSize_ = 0; - onChanged(); - return this; - } - - private Object inputHex_ = ""; - /** - * string input_hex = 7; - * @return The inputHex. - */ - public String getInputHex() { - Object ref = inputHex_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - inputHex_ = s; - return s; - } else { - return (String) ref; - } - } - /** - * string input_hex = 7; - * @return The bytes for inputHex. - */ - public com.google.protobuf.ByteString - getInputHexBytes() { - Object ref = inputHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - inputHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string input_hex = 7; - * @param value The inputHex to set. - * @return This builder for chaining. - */ - public Builder setInputHex( - String value) { - if (value == null) { - throw new NullPointerException(); - } - - inputHex_ = value; - onChanged(); - return this; - } - /** - * string input_hex = 7; - * @return This builder for chaining. - */ - public Builder clearInputHex() { - - inputHex_ = getDefaultInstance().getInputHex(); - onChanged(); - return this; - } - /** - * string input_hex = 7; - * @param value The bytes for inputHex to set. - * @return This builder for chaining. - */ - public Builder setInputHexBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - inputHex_ = value; - onChanged(); - return this; - } - - private Object signatureHex_ = ""; - /** - * string signature_hex = 8; - * @return The signatureHex. - */ - public String getSignatureHex() { - Object ref = signatureHex_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - signatureHex_ = s; - return s; - } else { - return (String) ref; - } - } - /** - * string signature_hex = 8; - * @return The bytes for signatureHex. - */ - public com.google.protobuf.ByteString - getSignatureHexBytes() { - Object ref = signatureHex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - signatureHex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string signature_hex = 8; - * @param value The signatureHex to set. - * @return This builder for chaining. - */ - public Builder setSignatureHex( - String value) { - if (value == null) { - throw new NullPointerException(); - } - - signatureHex_ = value; - onChanged(); - return this; - } - /** - * string signature_hex = 8; - * @return This builder for chaining. - */ - public Builder clearSignatureHex() { - - signatureHex_ = getDefaultInstance().getSignatureHex(); - onChanged(); - return this; - } - /** - * string signature_hex = 8; - * @param value The bytes for signatureHex to set. - * @return This builder for chaining. - */ - public Builder setSignatureHexBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - signatureHex_ = value; - onChanged(); - return this; - } - - private Object txId_ = ""; - /** - * string tx_id = 9; - * @return The txId. - */ - public String getTxId() { - Object ref = txId_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - txId_ = s; - return s; - } else { - return (String) ref; - } - } - /** - * string tx_id = 9; - * @return The bytes for txId. - */ - public com.google.protobuf.ByteString - getTxIdBytes() { - Object ref = txId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - txId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string tx_id = 9; - * @param value The txId to set. - * @return This builder for chaining. - */ - public Builder setTxId( - String value) { - if (value == null) { - throw new NullPointerException(); - } - - txId_ = value; - onChanged(); - return this; - } - /** - * string tx_id = 9; - * @return This builder for chaining. - */ - public Builder clearTxId() { - - txId_ = getDefaultInstance().getTxId(); - onChanged(); - return this; - } - /** - * string tx_id = 9; - * @param value The bytes for txId to set. - * @return This builder for chaining. - */ - public Builder setTxIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - txId_ = value; - onChanged(); - return this; - } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.Transaction) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.Transaction) - private static final Transaction DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new Transaction(); - } - - public static Transaction getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public Transaction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Transaction(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public Transaction getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/TransactionData.java b/src/main/java/org/qubic/archiver/proto/TransactionData.java deleted file mode 100644 index 98055cb..0000000 --- a/src/main/java/org/qubic/archiver/proto/TransactionData.java +++ /dev/null @@ -1,745 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - *
- * Wrapper around transaction and additional data
- * 
- * - * Protobuf type {@code qubic.archiver.archive.pb.TransactionData} - */ -public final class TransactionData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.TransactionData) - TransactionDataOrBuilder { -private static final long serialVersionUID = 0L; - // Use TransactionData.newBuilder() to construct. - private TransactionData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TransactionData() { - } - - @Override - @SuppressWarnings({"unused"}) - protected Object newInstance( - UnusedPrivateParameter unused) { - return new TransactionData(); - } - - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TransactionData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - Transaction.Builder subBuilder = null; - if (transaction_ != null) { - subBuilder = transaction_.toBuilder(); - } - transaction_ = input.readMessage(Transaction.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(transaction_); - transaction_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - timestamp_ = input.readUInt64(); - break; - } - case 24: { - - moneyFlew_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_TransactionData_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_TransactionData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - TransactionData.class, Builder.class); - } - - public static final int TRANSACTION_FIELD_NUMBER = 1; - private Transaction transaction_; - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - * @return Whether the transaction field is set. - */ - @Override - public boolean hasTransaction() { - return transaction_ != null; - } - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - * @return The transaction. - */ - @Override - public Transaction getTransaction() { - return transaction_ == null ? Transaction.getDefaultInstance() : transaction_; - } - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - */ - @Override - public TransactionOrBuilder getTransactionOrBuilder() { - return getTransaction(); - } - - public static final int TIMESTAMP_FIELD_NUMBER = 2; - private long timestamp_; - /** - * uint64 timestamp = 2; - * @return The timestamp. - */ - @Override - public long getTimestamp() { - return timestamp_; - } - - public static final int MONEY_FLEW_FIELD_NUMBER = 3; - private boolean moneyFlew_; - /** - * bool money_flew = 3; - * @return The moneyFlew. - */ - @Override - public boolean getMoneyFlew() { - return moneyFlew_; - } - - private byte memoizedIsInitialized = -1; - @Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (transaction_ != null) { - output.writeMessage(1, getTransaction()); - } - if (timestamp_ != 0L) { - output.writeUInt64(2, timestamp_); - } - if (moneyFlew_ != false) { - output.writeBool(3, moneyFlew_); - } - unknownFields.writeTo(output); - } - - @Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (transaction_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTransaction()); - } - if (timestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, timestamp_); - } - if (moneyFlew_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, moneyFlew_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @Override - public boolean equals(final Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof TransactionData)) { - return super.equals(obj); - } - TransactionData other = (TransactionData) obj; - - if (hasTransaction() != other.hasTransaction()) return false; - if (hasTransaction()) { - if (!getTransaction() - .equals(other.getTransaction())) return false; - } - if (getTimestamp() - != other.getTimestamp()) return false; - if (getMoneyFlew() - != other.getMoneyFlew()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasTransaction()) { - hash = (37 * hash) + TRANSACTION_FIELD_NUMBER; - hash = (53 * hash) + getTransaction().hashCode(); - } - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimestamp()); - hash = (37 * hash) + MONEY_FLEW_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getMoneyFlew()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static TransactionData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static TransactionData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static TransactionData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static TransactionData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static TransactionData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static TransactionData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static TransactionData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static TransactionData 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 TransactionData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static TransactionData 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 TransactionData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static TransactionData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(TransactionData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Wrapper around transaction and additional data
-   * 
- * - * Protobuf type {@code qubic.archiver.archive.pb.TransactionData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.TransactionData) - TransactionDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_TransactionData_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_TransactionData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - TransactionData.class, Builder.class); - } - - // Construct using org.qubic.archiver.proto.TransactionData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @Override - public Builder clear() { - super.clear(); - if (transactionBuilder_ == null) { - transaction_ = null; - } else { - transaction_ = null; - transactionBuilder_ = null; - } - timestamp_ = 0L; - - moneyFlew_ = false; - - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_TransactionData_descriptor; - } - - @Override - public TransactionData getDefaultInstanceForType() { - return TransactionData.getDefaultInstance(); - } - - @Override - public TransactionData build() { - TransactionData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public TransactionData buildPartial() { - TransactionData result = new TransactionData(this); - if (transactionBuilder_ == null) { - result.transaction_ = transaction_; - } else { - result.transaction_ = transactionBuilder_.build(); - } - result.timestamp_ = timestamp_; - result.moneyFlew_ = moneyFlew_; - onBuilt(); - return result; - } - - @Override - public Builder clone() { - return super.clone(); - } - @Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.setField(field, value); - } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return super.setRepeatedField(field, index, value); - } - @Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.addRepeatedField(field, value); - } - @Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof TransactionData) { - return mergeFrom((TransactionData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(TransactionData other) { - if (other == TransactionData.getDefaultInstance()) return this; - if (other.hasTransaction()) { - mergeTransaction(other.getTransaction()); - } - if (other.getTimestamp() != 0L) { - setTimestamp(other.getTimestamp()); - } - if (other.getMoneyFlew() != false) { - setMoneyFlew(other.getMoneyFlew()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - TransactionData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (TransactionData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private Transaction transaction_; - private com.google.protobuf.SingleFieldBuilderV3< - Transaction, Transaction.Builder, TransactionOrBuilder> transactionBuilder_; - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - * @return Whether the transaction field is set. - */ - public boolean hasTransaction() { - return transactionBuilder_ != null || transaction_ != null; - } - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - * @return The transaction. - */ - public Transaction getTransaction() { - if (transactionBuilder_ == null) { - return transaction_ == null ? Transaction.getDefaultInstance() : transaction_; - } else { - return transactionBuilder_.getMessage(); - } - } - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - */ - public Builder setTransaction(Transaction value) { - if (transactionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - transaction_ = value; - onChanged(); - } else { - transactionBuilder_.setMessage(value); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - */ - public Builder setTransaction( - Transaction.Builder builderForValue) { - if (transactionBuilder_ == null) { - transaction_ = builderForValue.build(); - onChanged(); - } else { - transactionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - */ - public Builder mergeTransaction(Transaction value) { - if (transactionBuilder_ == null) { - if (transaction_ != null) { - transaction_ = - Transaction.newBuilder(transaction_).mergeFrom(value).buildPartial(); - } else { - transaction_ = value; - } - onChanged(); - } else { - transactionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - */ - public Builder clearTransaction() { - if (transactionBuilder_ == null) { - transaction_ = null; - onChanged(); - } else { - transaction_ = null; - transactionBuilder_ = null; - } - - return this; - } - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - */ - public Transaction.Builder getTransactionBuilder() { - - onChanged(); - return getTransactionFieldBuilder().getBuilder(); - } - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - */ - public TransactionOrBuilder getTransactionOrBuilder() { - if (transactionBuilder_ != null) { - return transactionBuilder_.getMessageOrBuilder(); - } else { - return transaction_ == null ? - Transaction.getDefaultInstance() : transaction_; - } - } - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - Transaction, Transaction.Builder, TransactionOrBuilder> - getTransactionFieldBuilder() { - if (transactionBuilder_ == null) { - transactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - Transaction, Transaction.Builder, TransactionOrBuilder>( - getTransaction(), - getParentForChildren(), - isClean()); - transaction_ = null; - } - return transactionBuilder_; - } - - private long timestamp_ ; - /** - * uint64 timestamp = 2; - * @return The timestamp. - */ - @Override - public long getTimestamp() { - return timestamp_; - } - /** - * uint64 timestamp = 2; - * @param value The timestamp to set. - * @return This builder for chaining. - */ - public Builder setTimestamp(long value) { - - timestamp_ = value; - onChanged(); - return this; - } - /** - * uint64 timestamp = 2; - * @return This builder for chaining. - */ - public Builder clearTimestamp() { - - timestamp_ = 0L; - onChanged(); - return this; - } - - private boolean moneyFlew_ ; - /** - * bool money_flew = 3; - * @return The moneyFlew. - */ - @Override - public boolean getMoneyFlew() { - return moneyFlew_; - } - /** - * bool money_flew = 3; - * @param value The moneyFlew to set. - * @return This builder for chaining. - */ - public Builder setMoneyFlew(boolean value) { - - moneyFlew_ = value; - onChanged(); - return this; - } - /** - * bool money_flew = 3; - * @return This builder for chaining. - */ - public Builder clearMoneyFlew() { - - moneyFlew_ = false; - onChanged(); - return this; - } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.TransactionData) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.TransactionData) - private static final TransactionData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new TransactionData(); - } - - public static TransactionData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public TransactionData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TransactionData(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public TransactionData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/TransactionDataOrBuilder.java b/src/main/java/org/qubic/archiver/proto/TransactionDataOrBuilder.java deleted file mode 100644 index aed4c10..0000000 --- a/src/main/java/org/qubic/archiver/proto/TransactionDataOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface TransactionDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.TransactionData) - com.google.protobuf.MessageOrBuilder { - - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - * @return Whether the transaction field is set. - */ - boolean hasTransaction(); - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - * @return The transaction. - */ - org.qubic.archiver.proto.Transaction getTransaction(); - /** - * .qubic.archiver.archive.pb.Transaction transaction = 1; - */ - org.qubic.archiver.proto.TransactionOrBuilder getTransactionOrBuilder(); - - /** - * uint64 timestamp = 2; - * @return The timestamp. - */ - long getTimestamp(); - - /** - * bool money_flew = 3; - * @return The moneyFlew. - */ - boolean getMoneyFlew(); -} diff --git a/src/main/java/org/qubic/archiver/proto/TransactionOrBuilder.java b/src/main/java/org/qubic/archiver/proto/TransactionOrBuilder.java deleted file mode 100644 index 521b739..0000000 --- a/src/main/java/org/qubic/archiver/proto/TransactionOrBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface TransactionOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.Transaction) - com.google.protobuf.MessageOrBuilder { - - /** - * string source_id = 1; - * @return The sourceId. - */ - String getSourceId(); - /** - * string source_id = 1; - * @return The bytes for sourceId. - */ - com.google.protobuf.ByteString - getSourceIdBytes(); - - /** - * string dest_id = 2; - * @return The destId. - */ - String getDestId(); - /** - * string dest_id = 2; - * @return The bytes for destId. - */ - com.google.protobuf.ByteString - getDestIdBytes(); - - /** - * int64 amount = 3; - * @return The amount. - */ - long getAmount(); - - /** - * uint32 tick_number = 4; - * @return The tickNumber. - */ - int getTickNumber(); - - /** - * uint32 input_type = 5; - * @return The inputType. - */ - int getInputType(); - - /** - * uint32 input_size = 6; - * @return The inputSize. - */ - int getInputSize(); - - /** - * string input_hex = 7; - * @return The inputHex. - */ - String getInputHex(); - /** - * string input_hex = 7; - * @return The bytes for inputHex. - */ - com.google.protobuf.ByteString - getInputHexBytes(); - - /** - * string signature_hex = 8; - * @return The signatureHex. - */ - String getSignatureHex(); - /** - * string signature_hex = 8; - * @return The bytes for signatureHex. - */ - com.google.protobuf.ByteString - getSignatureHexBytes(); - - /** - * string tx_id = 9; - * @return The txId. - */ - String getTxId(); - /** - * string tx_id = 9; - * @return The bytes for txId. - */ - com.google.protobuf.ByteString - getTxIdBytes(); -} diff --git a/src/main/java/org/qubic/archiver/proto/TransactionStatus.java b/src/main/java/org/qubic/archiver/proto/TransactionStatus.java deleted file mode 100644 index 39afe8c..0000000 --- a/src/main/java/org/qubic/archiver/proto/TransactionStatus.java +++ /dev/null @@ -1,622 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.TransactionStatus} - */ -public final class TransactionStatus extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.TransactionStatus) - TransactionStatusOrBuilder { -private static final long serialVersionUID = 0L; - // Use TransactionStatus.newBuilder() to construct. - private TransactionStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TransactionStatus() { - txId_ = ""; - } - - @Override - @SuppressWarnings({"unused"}) - protected Object newInstance( - UnusedPrivateParameter unused) { - return new TransactionStatus(); - } - - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TransactionStatus( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - String s = input.readStringRequireUtf8(); - - txId_ = s; - break; - } - case 16: { - - moneyFlew_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_TransactionStatus_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_TransactionStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - TransactionStatus.class, Builder.class); - } - - public static final int TX_ID_FIELD_NUMBER = 1; - private volatile Object txId_; - /** - * string tx_id = 1; - * @return The txId. - */ - @Override - public String getTxId() { - Object ref = txId_; - if (ref instanceof String) { - return (String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - txId_ = s; - return s; - } - } - /** - * string tx_id = 1; - * @return The bytes for txId. - */ - @Override - public com.google.protobuf.ByteString - getTxIdBytes() { - Object ref = txId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - txId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MONEYFLEW_FIELD_NUMBER = 2; - private boolean moneyFlew_; - /** - * bool moneyFlew = 2; - * @return The moneyFlew. - */ - @Override - public boolean getMoneyFlew() { - return moneyFlew_; - } - - private byte memoizedIsInitialized = -1; - @Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getTxIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, txId_); - } - if (moneyFlew_ != false) { - output.writeBool(2, moneyFlew_); - } - unknownFields.writeTo(output); - } - - @Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTxIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, txId_); - } - if (moneyFlew_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, moneyFlew_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @Override - public boolean equals(final Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof TransactionStatus)) { - return super.equals(obj); - } - TransactionStatus other = (TransactionStatus) obj; - - if (!getTxId() - .equals(other.getTxId())) return false; - if (getMoneyFlew() - != other.getMoneyFlew()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TX_ID_FIELD_NUMBER; - hash = (53 * hash) + getTxId().hashCode(); - hash = (37 * hash) + MONEYFLEW_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getMoneyFlew()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static TransactionStatus parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static TransactionStatus parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static TransactionStatus parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static TransactionStatus parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static TransactionStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static TransactionStatus parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static TransactionStatus parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static TransactionStatus 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 TransactionStatus parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static TransactionStatus 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 TransactionStatus parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static TransactionStatus parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(TransactionStatus prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.TransactionStatus} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.TransactionStatus) - TransactionStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_TransactionStatus_descriptor; - } - - @Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_TransactionStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - TransactionStatus.class, Builder.class); - } - - // Construct using org.qubic.archiver.proto.TransactionStatus.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @Override - public Builder clear() { - super.clear(); - txId_ = ""; - - moneyFlew_ = false; - - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_TransactionStatus_descriptor; - } - - @Override - public TransactionStatus getDefaultInstanceForType() { - return TransactionStatus.getDefaultInstance(); - } - - @Override - public TransactionStatus build() { - TransactionStatus result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public TransactionStatus buildPartial() { - TransactionStatus result = new TransactionStatus(this); - result.txId_ = txId_; - result.moneyFlew_ = moneyFlew_; - onBuilt(); - return result; - } - - @Override - public Builder clone() { - return super.clone(); - } - @Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.setField(field, value); - } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return super.setRepeatedField(field, index, value); - } - @Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.addRepeatedField(field, value); - } - @Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof TransactionStatus) { - return mergeFrom((TransactionStatus)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(TransactionStatus other) { - if (other == TransactionStatus.getDefaultInstance()) return this; - if (!other.getTxId().isEmpty()) { - txId_ = other.txId_; - onChanged(); - } - if (other.getMoneyFlew() != false) { - setMoneyFlew(other.getMoneyFlew()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - TransactionStatus parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (TransactionStatus) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private Object txId_ = ""; - /** - * string tx_id = 1; - * @return The txId. - */ - public String getTxId() { - Object ref = txId_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - txId_ = s; - return s; - } else { - return (String) ref; - } - } - /** - * string tx_id = 1; - * @return The bytes for txId. - */ - public com.google.protobuf.ByteString - getTxIdBytes() { - Object ref = txId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - txId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string tx_id = 1; - * @param value The txId to set. - * @return This builder for chaining. - */ - public Builder setTxId( - String value) { - if (value == null) { - throw new NullPointerException(); - } - - txId_ = value; - onChanged(); - return this; - } - /** - * string tx_id = 1; - * @return This builder for chaining. - */ - public Builder clearTxId() { - - txId_ = getDefaultInstance().getTxId(); - onChanged(); - return this; - } - /** - * string tx_id = 1; - * @param value The bytes for txId to set. - * @return This builder for chaining. - */ - public Builder setTxIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - txId_ = value; - onChanged(); - return this; - } - - private boolean moneyFlew_ ; - /** - * bool moneyFlew = 2; - * @return The moneyFlew. - */ - @Override - public boolean getMoneyFlew() { - return moneyFlew_; - } - /** - * bool moneyFlew = 2; - * @param value The moneyFlew to set. - * @return This builder for chaining. - */ - public Builder setMoneyFlew(boolean value) { - - moneyFlew_ = value; - onChanged(); - return this; - } - /** - * bool moneyFlew = 2; - * @return This builder for chaining. - */ - public Builder clearMoneyFlew() { - - moneyFlew_ = false; - onChanged(); - return this; - } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.TransactionStatus) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.TransactionStatus) - private static final TransactionStatus DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new TransactionStatus(); - } - - public static TransactionStatus getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public TransactionStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TransactionStatus(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public TransactionStatus getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/TransactionStatusOrBuilder.java b/src/main/java/org/qubic/archiver/proto/TransactionStatusOrBuilder.java deleted file mode 100644 index 0069811..0000000 --- a/src/main/java/org/qubic/archiver/proto/TransactionStatusOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface TransactionStatusOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.TransactionStatus) - com.google.protobuf.MessageOrBuilder { - - /** - * string tx_id = 1; - * @return The txId. - */ - java.lang.String getTxId(); - /** - * string tx_id = 1; - * @return The bytes for txId. - */ - com.google.protobuf.ByteString - getTxIdBytes(); - - /** - * bool moneyFlew = 2; - * @return The moneyFlew. - */ - boolean getMoneyFlew(); -} diff --git a/src/main/java/org/qubic/archiver/proto/TransferTransactionsPerTick.java b/src/main/java/org/qubic/archiver/proto/TransferTransactionsPerTick.java deleted file mode 100644 index 79a91b7..0000000 --- a/src/main/java/org/qubic/archiver/proto/TransferTransactionsPerTick.java +++ /dev/null @@ -1,972 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -/** - * Protobuf type {@code qubic.archiver.archive.pb.TransferTransactionsPerTick} - */ -public final class TransferTransactionsPerTick extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:qubic.archiver.archive.pb.TransferTransactionsPerTick) - TransferTransactionsPerTickOrBuilder { -private static final long serialVersionUID = 0L; - // Use TransferTransactionsPerTick.newBuilder() to construct. - private TransferTransactionsPerTick(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TransferTransactionsPerTick() { - identity_ = ""; - transactions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TransferTransactionsPerTick(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TransferTransactionsPerTick( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - tickNumber_ = input.readUInt32(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - identity_ = s; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - transactions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - transactions_.add( - input.readMessage(org.qubic.archiver.proto.Transaction.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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) != 0)) { - transactions_ = java.util.Collections.unmodifiableList(transactions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_TransferTransactionsPerTick_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_TransferTransactionsPerTick_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.qubic.archiver.proto.TransferTransactionsPerTick.class, org.qubic.archiver.proto.TransferTransactionsPerTick.Builder.class); - } - - public static final int TICK_NUMBER_FIELD_NUMBER = 1; - private int tickNumber_; - /** - * uint32 tick_number = 1; - * @return The tickNumber. - */ - @java.lang.Override - public int getTickNumber() { - return tickNumber_; - } - - public static final int IDENTITY_FIELD_NUMBER = 2; - private volatile java.lang.Object identity_; - /** - * string identity = 2; - * @return The identity. - */ - @java.lang.Override - public java.lang.String getIdentity() { - java.lang.Object ref = identity_; - 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(); - identity_ = s; - return s; - } - } - /** - * string identity = 2; - * @return The bytes for identity. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdentityBytes() { - java.lang.Object ref = identity_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - identity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TRANSACTIONS_FIELD_NUMBER = 3; - private java.util.List transactions_; - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 3; - */ - @java.lang.Override - public java.util.List getTransactionsList() { - return transactions_; - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 3; - */ - @java.lang.Override - public java.util.List - getTransactionsOrBuilderList() { - return transactions_; - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 3; - */ - @java.lang.Override - public int getTransactionsCount() { - return transactions_.size(); - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 3; - */ - @java.lang.Override - public org.qubic.archiver.proto.Transaction getTransactions(int index) { - return transactions_.get(index); - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 3; - */ - @java.lang.Override - public org.qubic.archiver.proto.TransactionOrBuilder getTransactionsOrBuilder( - int index) { - return transactions_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (tickNumber_ != 0) { - output.writeUInt32(1, tickNumber_); - } - if (!getIdentityBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, identity_); - } - for (int i = 0; i < transactions_.size(); i++) { - output.writeMessage(3, transactions_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (tickNumber_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, tickNumber_); - } - if (!getIdentityBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, identity_); - } - for (int i = 0; i < transactions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, transactions_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.qubic.archiver.proto.TransferTransactionsPerTick)) { - return super.equals(obj); - } - org.qubic.archiver.proto.TransferTransactionsPerTick other = (org.qubic.archiver.proto.TransferTransactionsPerTick) obj; - - if (getTickNumber() - != other.getTickNumber()) return false; - if (!getIdentity() - .equals(other.getIdentity())) return false; - if (!getTransactionsList() - .equals(other.getTransactionsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TICK_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getTickNumber(); - hash = (37 * hash) + IDENTITY_FIELD_NUMBER; - hash = (53 * hash) + getIdentity().hashCode(); - if (getTransactionsCount() > 0) { - hash = (37 * hash) + TRANSACTIONS_FIELD_NUMBER; - hash = (53 * hash) + getTransactionsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.qubic.archiver.proto.TransferTransactionsPerTick parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.TransferTransactionsPerTick parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.TransferTransactionsPerTick parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.TransferTransactionsPerTick parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.TransferTransactionsPerTick parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.qubic.archiver.proto.TransferTransactionsPerTick parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.qubic.archiver.proto.TransferTransactionsPerTick parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.TransferTransactionsPerTick 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 org.qubic.archiver.proto.TransferTransactionsPerTick parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.TransferTransactionsPerTick 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 org.qubic.archiver.proto.TransferTransactionsPerTick parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.qubic.archiver.proto.TransferTransactionsPerTick parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.qubic.archiver.proto.TransferTransactionsPerTick prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code qubic.archiver.archive.pb.TransferTransactionsPerTick} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:qubic.archiver.archive.pb.TransferTransactionsPerTick) - org.qubic.archiver.proto.TransferTransactionsPerTickOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_TransferTransactionsPerTick_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_TransferTransactionsPerTick_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.qubic.archiver.proto.TransferTransactionsPerTick.class, org.qubic.archiver.proto.TransferTransactionsPerTick.Builder.class); - } - - // Construct using org.qubic.archiver.proto.TransferTransactionsPerTick.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTransactionsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - tickNumber_ = 0; - - identity_ = ""; - - if (transactionsBuilder_ == null) { - transactions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - transactionsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.qubic.archiver.proto.QubicArchiverProtos.internal_static_qubic_archiver_archive_pb_TransferTransactionsPerTick_descriptor; - } - - @java.lang.Override - public org.qubic.archiver.proto.TransferTransactionsPerTick getDefaultInstanceForType() { - return org.qubic.archiver.proto.TransferTransactionsPerTick.getDefaultInstance(); - } - - @java.lang.Override - public org.qubic.archiver.proto.TransferTransactionsPerTick build() { - org.qubic.archiver.proto.TransferTransactionsPerTick result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.qubic.archiver.proto.TransferTransactionsPerTick buildPartial() { - org.qubic.archiver.proto.TransferTransactionsPerTick result = new org.qubic.archiver.proto.TransferTransactionsPerTick(this); - int from_bitField0_ = bitField0_; - result.tickNumber_ = tickNumber_; - result.identity_ = identity_; - if (transactionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - transactions_ = java.util.Collections.unmodifiableList(transactions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.transactions_ = transactions_; - } else { - result.transactions_ = transactionsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.qubic.archiver.proto.TransferTransactionsPerTick) { - return mergeFrom((org.qubic.archiver.proto.TransferTransactionsPerTick)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.qubic.archiver.proto.TransferTransactionsPerTick other) { - if (other == org.qubic.archiver.proto.TransferTransactionsPerTick.getDefaultInstance()) return this; - if (other.getTickNumber() != 0) { - setTickNumber(other.getTickNumber()); - } - if (!other.getIdentity().isEmpty()) { - identity_ = other.identity_; - onChanged(); - } - if (transactionsBuilder_ == null) { - if (!other.transactions_.isEmpty()) { - if (transactions_.isEmpty()) { - transactions_ = other.transactions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTransactionsIsMutable(); - transactions_.addAll(other.transactions_); - } - onChanged(); - } - } else { - if (!other.transactions_.isEmpty()) { - if (transactionsBuilder_.isEmpty()) { - transactionsBuilder_.dispose(); - transactionsBuilder_ = null; - transactions_ = other.transactions_; - bitField0_ = (bitField0_ & ~0x00000001); - transactionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTransactionsFieldBuilder() : null; - } else { - transactionsBuilder_.addAllMessages(other.transactions_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.qubic.archiver.proto.TransferTransactionsPerTick parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.qubic.archiver.proto.TransferTransactionsPerTick) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int tickNumber_ ; - /** - * uint32 tick_number = 1; - * @return The tickNumber. - */ - @java.lang.Override - public int getTickNumber() { - return tickNumber_; - } - /** - * uint32 tick_number = 1; - * @param value The tickNumber to set. - * @return This builder for chaining. - */ - public Builder setTickNumber(int value) { - - tickNumber_ = value; - onChanged(); - return this; - } - /** - * uint32 tick_number = 1; - * @return This builder for chaining. - */ - public Builder clearTickNumber() { - - tickNumber_ = 0; - onChanged(); - return this; - } - - private java.lang.Object identity_ = ""; - /** - * string identity = 2; - * @return The identity. - */ - public java.lang.String getIdentity() { - java.lang.Object ref = identity_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - identity_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string identity = 2; - * @return The bytes for identity. - */ - public com.google.protobuf.ByteString - getIdentityBytes() { - java.lang.Object ref = identity_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - identity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string identity = 2; - * @param value The identity to set. - * @return This builder for chaining. - */ - public Builder setIdentity( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - identity_ = value; - onChanged(); - return this; - } - /** - * string identity = 2; - * @return This builder for chaining. - */ - public Builder clearIdentity() { - - identity_ = getDefaultInstance().getIdentity(); - onChanged(); - return this; - } - /** - * string identity = 2; - * @param value The bytes for identity to set. - * @return This builder for chaining. - */ - public Builder setIdentityBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - identity_ = value; - onChanged(); - return this; - } - - private java.util.List transactions_ = - java.util.Collections.emptyList(); - private void ensureTransactionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - transactions_ = new java.util.ArrayList(transactions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.qubic.archiver.proto.Transaction, org.qubic.archiver.proto.Transaction.Builder, org.qubic.archiver.proto.TransactionOrBuilder> transactionsBuilder_; - - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 3; - */ - public java.util.List getTransactionsList() { - if (transactionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(transactions_); - } else { - return transactionsBuilder_.getMessageList(); - } - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 3; - */ - public int getTransactionsCount() { - if (transactionsBuilder_ == null) { - return transactions_.size(); - } else { - return transactionsBuilder_.getCount(); - } - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 3; - */ - public org.qubic.archiver.proto.Transaction getTransactions(int index) { - if (transactionsBuilder_ == null) { - return transactions_.get(index); - } else { - return transactionsBuilder_.getMessage(index); - } - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 3; - */ - public Builder setTransactions( - int index, org.qubic.archiver.proto.Transaction value) { - if (transactionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransactionsIsMutable(); - transactions_.set(index, value); - onChanged(); - } else { - transactionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 3; - */ - public Builder setTransactions( - int index, org.qubic.archiver.proto.Transaction.Builder builderForValue) { - if (transactionsBuilder_ == null) { - ensureTransactionsIsMutable(); - transactions_.set(index, builderForValue.build()); - onChanged(); - } else { - transactionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 3; - */ - public Builder addTransactions(org.qubic.archiver.proto.Transaction value) { - if (transactionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransactionsIsMutable(); - transactions_.add(value); - onChanged(); - } else { - transactionsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 3; - */ - public Builder addTransactions( - int index, org.qubic.archiver.proto.Transaction value) { - if (transactionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransactionsIsMutable(); - transactions_.add(index, value); - onChanged(); - } else { - transactionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 3; - */ - public Builder addTransactions( - org.qubic.archiver.proto.Transaction.Builder builderForValue) { - if (transactionsBuilder_ == null) { - ensureTransactionsIsMutable(); - transactions_.add(builderForValue.build()); - onChanged(); - } else { - transactionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 3; - */ - public Builder addTransactions( - int index, org.qubic.archiver.proto.Transaction.Builder builderForValue) { - if (transactionsBuilder_ == null) { - ensureTransactionsIsMutable(); - transactions_.add(index, builderForValue.build()); - onChanged(); - } else { - transactionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 3; - */ - public Builder addAllTransactions( - java.lang.Iterable values) { - if (transactionsBuilder_ == null) { - ensureTransactionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, transactions_); - onChanged(); - } else { - transactionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 3; - */ - public Builder clearTransactions() { - if (transactionsBuilder_ == null) { - transactions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - transactionsBuilder_.clear(); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 3; - */ - public Builder removeTransactions(int index) { - if (transactionsBuilder_ == null) { - ensureTransactionsIsMutable(); - transactions_.remove(index); - onChanged(); - } else { - transactionsBuilder_.remove(index); - } - return this; - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 3; - */ - public org.qubic.archiver.proto.Transaction.Builder getTransactionsBuilder( - int index) { - return getTransactionsFieldBuilder().getBuilder(index); - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 3; - */ - public org.qubic.archiver.proto.TransactionOrBuilder getTransactionsOrBuilder( - int index) { - if (transactionsBuilder_ == null) { - return transactions_.get(index); } else { - return transactionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 3; - */ - public java.util.List - getTransactionsOrBuilderList() { - if (transactionsBuilder_ != null) { - return transactionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(transactions_); - } - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 3; - */ - public org.qubic.archiver.proto.Transaction.Builder addTransactionsBuilder() { - return getTransactionsFieldBuilder().addBuilder( - org.qubic.archiver.proto.Transaction.getDefaultInstance()); - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 3; - */ - public org.qubic.archiver.proto.Transaction.Builder addTransactionsBuilder( - int index) { - return getTransactionsFieldBuilder().addBuilder( - index, org.qubic.archiver.proto.Transaction.getDefaultInstance()); - } - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 3; - */ - public java.util.List - getTransactionsBuilderList() { - return getTransactionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.qubic.archiver.proto.Transaction, org.qubic.archiver.proto.Transaction.Builder, org.qubic.archiver.proto.TransactionOrBuilder> - getTransactionsFieldBuilder() { - if (transactionsBuilder_ == null) { - transactionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.qubic.archiver.proto.Transaction, org.qubic.archiver.proto.Transaction.Builder, org.qubic.archiver.proto.TransactionOrBuilder>( - transactions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - transactions_ = null; - } - return transactionsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:qubic.archiver.archive.pb.TransferTransactionsPerTick) - } - - // @@protoc_insertion_point(class_scope:qubic.archiver.archive.pb.TransferTransactionsPerTick) - private static final org.qubic.archiver.proto.TransferTransactionsPerTick DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.qubic.archiver.proto.TransferTransactionsPerTick(); - } - - public static org.qubic.archiver.proto.TransferTransactionsPerTick getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TransferTransactionsPerTick parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TransferTransactionsPerTick(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.qubic.archiver.proto.TransferTransactionsPerTick getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/org/qubic/archiver/proto/TransferTransactionsPerTickOrBuilder.java b/src/main/java/org/qubic/archiver/proto/TransferTransactionsPerTickOrBuilder.java deleted file mode 100644 index 0cefe30..0000000 --- a/src/main/java/org/qubic/archiver/proto/TransferTransactionsPerTickOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: archive.proto - -package org.qubic.archiver.proto; - -public interface TransferTransactionsPerTickOrBuilder extends - // @@protoc_insertion_point(interface_extends:qubic.archiver.archive.pb.TransferTransactionsPerTick) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 tick_number = 1; - * @return The tickNumber. - */ - int getTickNumber(); - - /** - * string identity = 2; - * @return The identity. - */ - java.lang.String getIdentity(); - /** - * string identity = 2; - * @return The bytes for identity. - */ - com.google.protobuf.ByteString - getIdentityBytes(); - - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 3; - */ - java.util.List - getTransactionsList(); - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 3; - */ - org.qubic.archiver.proto.Transaction getTransactions(int index); - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 3; - */ - int getTransactionsCount(); - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 3; - */ - java.util.List - getTransactionsOrBuilderList(); - /** - * repeated .qubic.archiver.archive.pb.Transaction transactions = 3; - */ - org.qubic.archiver.proto.TransactionOrBuilder getTransactionsOrBuilder( - int index); -} diff --git a/src/main/proto/archive.proto b/src/main/proto/archive.proto new file mode 100644 index 0000000..911630a --- /dev/null +++ b/src/main/proto/archive.proto @@ -0,0 +1,457 @@ +syntax = "proto3"; + +package org.qubic.archiver.proto; + +option go_package = "github.com/qubic/go-archiver/protobuff/"; +import "google/api/annotations.proto"; +import "google/protobuf/empty.proto"; + +message TickData { + uint32 computor_index = 1; + uint32 epoch = 2; + uint32 tick_number = 3; + uint64 timestamp = 4; + bytes var_struct = 5; + bytes time_lock = 6; + repeated string transaction_ids = 7; + repeated int64 contract_fees = 8; + string signature_hex = 9; +} + +message GetTickDataRequest { + uint32 tick_number = 1; +} + +message GetTickDataResponse { + TickData tick_data = 1; +} + +message Transaction { + string source_id = 1; + string dest_id = 2; + int64 amount = 3; + uint32 tick_number = 4; + uint32 input_type = 5; + uint32 input_size = 6; + string input_hex = 7; + string signature_hex = 8; + string tx_id = 9; +} + +message TransactionStatus { + string tx_id = 1; + bool moneyFlew = 2; +} + +message TickTransactionsStatus { + repeated TransactionStatus transactions = 1; +} + +message NextAvailableTick { + uint32 next_tick_number = 1; +} + +message LastProcessedTick { + uint32 last_processed_tick = 1; +} + +message GetTransactionRequest { + string tx_id = 1; +} + +message GetTransactionResponse{ + Transaction transaction = 1; +} + +message GetTransactionStatusRequest { + string tx_id = 1; +} + +message GetTransactionStatusResponse { + TransactionStatus transaction_status = 1; +} + +message GetTickTransactionsRequest { + uint32 tick_number = 1; +} + +message GetTickTransactionsResponse { + repeated Transaction transactions = 1; +} + +message GetTickApprovedTransactionsRequest { + uint32 tick_number = 1; +} + +message GetTickApprovedTransactionsResponse { + repeated Transaction approved_transactions = 1; +} + +message QuorumTickData { + QuorumTickStructure quorum_tick_structure = 1; + map quorum_diff_per_computor = 2; +} + +message QuorumTickStructure { + uint32 epoch = 2; + uint32 tick_number = 3; + uint64 timestamp = 4; + string prev_resource_testing_digest_hex = 5; + string prev_spectrum_digest_hex = 6; + string prev_universe_digest_hex = 7; + string prev_computer_digest_hex = 8; + string tx_digest_hex = 9; +} + +message QuorumDiff { + string salted_resource_testing_digest_hex = 1; + string salted_spectrum_digest_hex = 2; + string salted_universe_digest_hex = 3; + string salted_computer_digest_hex = 4; + string expected_next_tick_tx_digest_hex = 5; + string signature_hex = 6; +} + +message SkippedTicksInterval { + uint32 start_tick = 1; + uint32 end_tick = 2; +} + +message SkippedTicksIntervalList { + repeated SkippedTicksInterval skipped_ticks = 1; +} + +message QuorumTickDataStored { + QuorumTickStructure quorum_tick_structure = 1; + map quorum_diff_per_computor = 2; +} + +message QuorumDiffStored { + string expected_next_tick_tx_digest_hex = 5; + string signature_hex = 6; +} + +message GetQuorumTickDataRequest { + uint32 tick_number = 1; +} + +message GetQuorumTickDataResponse { + QuorumTickData quorum_tick_data = 1; +} + +message GetQuorumTickDataResponseStored { + QuorumTickDataStored quorum_tick_data = 1; +} + +message Computors { + uint32 epoch = 1; + repeated string identities = 2; + string signature_hex = 3; +} + +message GetComputorsRequest { + uint32 epoch = 1; +} + +message GetComputorsResponse { + Computors computors = 1; +} + +message TransferTransactionsPerTick { + uint32 tick_number = 1; + string identity = 2; + repeated Transaction transactions = 3; +} + +message ProcessedTick { + uint32 tick_number = 1; + uint32 epoch = 2; +} + +message GetStatusResponse { + ProcessedTick last_processed_tick = 1; + map last_processed_ticks_per_epoch = 2; + repeated SkippedTicksInterval skipped_ticks = 3; + repeated ProcessedTickIntervalsPerEpoch processed_tick_intervals_per_epoch = 4; + map empty_ticks_per_epoch = 5; +} + +message GetHealthCheckResponse { + bool status = 1; +} + +message GetTransferTransactionsPerTickRequest { + string identity = 1; + uint32 start_tick = 2; + uint32 end_tick = 3; +} + +message GetTransferTransactionsPerTickResponse { + repeated TransferTransactionsPerTick transfer_transactions_per_tick = 1; +} + +message GetChainHashRequest { + uint32 tick_number = 1; +} + +message GetChainHashResponse { + string hex_digest = 1; +} + +message ProcessedTickInterval { + uint32 initial_processed_tick = 1; + uint32 last_processed_tick = 2; +} + +message ProcessedTickIntervalsPerEpoch { + uint32 epoch = 1; + repeated ProcessedTickInterval intervals = 2; +} + +message Tick { + uint32 computor_index = 1; + uint32 epoch = 2; + uint32 tick_number = 3; + uint64 timestamp = 4; + bytes var_struct = 5; //Will change to return with unmarshalled info + bytes time_lock = 6; + repeated string transaction_ids = 7; + repeated int64 contract_fees = 8; + string signature_hex = 9; +} + +message GetTickResponseV2 { + Tick tick_Data = 1; +} + +message PerTickIdentityTransfers { + uint32 tick_number = 1; + string identity = 2; + repeated TransactionData transactions = 3; +} + +message GetIdentityTransfersInTickRangeResponseV2 { + repeated PerTickIdentityTransfers transactions = 1; +} + +//SendMany Transaction +message SendManyTransfer { + string dest_id = 1; + int64 amount = 2; +} + +message SendManyTransaction { + string source_id = 1; + uint32 tick_number = 2; + repeated SendManyTransfer transfers = 3; + int64 total_amount = 4; + string signature_hex = 5; + string tx_id = 6; +} + +//Wrapper around send many transaction and additional data +message SendManyTransactionData { + SendManyTransaction transaction = 2; + uint64 timestamp = 3; + bool money_flew = 4; +} + +message GetSendManyTransactionRequestV2 { + string tx_id = 1; +} + +message GetSendManyTransactionResponseV2 { + SendManyTransaction transaction = 2; + uint64 timestamp = 3; + bool money_flew = 4; +} + + +//Normal Transaction + +// Wrapper around transaction and additional data +message TransactionData { + Transaction transaction = 1; + uint64 timestamp = 2; + bool money_flew = 3; +} + +//Ticks + +// Latest Tick + +message GetLatestTickResponse { + uint32 latest_tick = 1; +} + +// Tick Transactions +message GetTickRequestV2 { + uint32 tick_number = 1; +} +message GetTickTransactionsResponseV2 { + repeated TransactionData transactions = 1; +} + + +// Get Transaction +message GetTransactionRequestV2 { + string tx_id = 1; +} +message GetTransactionResponseV2 { + Transaction transaction = 1; + uint64 timestamp = 2; + bool money_flew = 3; +} + +message GetTickTransactionsRequestV2 { + uint32 tick_number = 1; + bool transfers = 2; + bool approved = 3; +} + +message GetTransferTransactionsPerTickRequestV2 { + string identity = 1; + uint32 start_tick = 2; + uint32 end_tick = 3; + bool sc_only = 4; + bool desc = 5; +} + + +service ArchiveService { + + + // Quorum data + rpc GetTickQuorumDataV2(GetTickRequestV2) returns (GetQuorumTickDataResponse) { // Uses V1 response + option (google.api.http) = { + get: "/v2/ticks/{tick_number}/quorum-data" + }; + }; + + // Chain hash + rpc GetTickChainHashV2(GetTickRequestV2) returns (GetChainHashResponse) { // Uses V1 response + option (google.api.http) = { + get: "/v2/ticks/{tick_number}/hash" + }; + } + + // Store hash + rpc GetTickStoreHashV2(GetTickRequestV2) returns (GetChainHashResponse) { // Uses V1 response + option (google.api.http) = { + get: "/v2/ticks/{tick_number}/store-hash" + }; + } + + + // Tick transactions + rpc GetTickTransactionsV2(GetTickTransactionsRequestV2) returns (GetTickTransactionsResponseV2){ + option (google.api.http) = { + get: "/v2/ticks/{tick_number}/transactions" + }; + }; + + //Transaction + + //Normal + rpc GetTransactionV2(GetTransactionRequestV2) returns (GetTransactionResponseV2) { + option (google.api.http) = { + get: "/v2/transactions/{tx_id}" + }; + }; + + //SendMany + rpc GetSendManyTransactionV2(GetSendManyTransactionRequestV2) returns (GetSendManyTransactionResponseV2) { + option (google.api.http) = { + get: "/v2/transactions/{tx_id}/sendmany" + }; + }; + + //Identity + rpc GetIdentityTransfersInTickRangeV2(GetTransferTransactionsPerTickRequestV2) returns (GetIdentityTransfersInTickRangeResponseV2) { // Uses V1 request + option (google.api.http) = { + get: "/v2/identities/{identity}/transfers" + }; + }; + + + //V1 Endpoints + rpc GetTickData(GetTickDataRequest) returns (GetTickDataResponse){ + option (google.api.http) = { + get: "/v1/ticks/{tick_number}/tick-data" + }; + }; + rpc GetQuorumTickData(GetQuorumTickDataRequest) returns (GetQuorumTickDataResponse) { + option (google.api.http) = { + get: "/v1/ticks/{tick_number}/quorum-tick-data" + }; + }; + rpc GetTickTransactions(GetTickTransactionsRequest) returns (GetTickTransactionsResponse) { + option (google.api.http) = { + get: "/v1/ticks/{tick_number}/transactions" + }; + }; + rpc GetTickTransferTransactions(GetTickTransactionsRequest) returns (GetTickTransactionsResponse) { + option (google.api.http) = { + get: "/v1/ticks/{tick_number}/transfer-transactions" + }; + }; + rpc GetTickApprovedTransactions (GetTickApprovedTransactionsRequest) returns (GetTickApprovedTransactionsResponse) { + option (google.api.http) = { + get: "/v1/ticks/{tick_number}/approved-transactions" + }; + } + rpc GetChainHash(GetChainHashRequest) returns (GetChainHashResponse) { + option (google.api.http) = { + get: "/v1/ticks/{tick_number}/chain-hash" + }; + }; + + rpc GetStoreHash(GetChainHashRequest) returns (GetChainHashResponse) { + option (google.api.http) = { + get: "/v1/ticks/{tick_number}/store-hash" + }; + }; + + rpc GetTransaction(GetTransactionRequest) returns (GetTransactionResponse) { + option (google.api.http) = { + get: "/v1/transactions/{tx_id}" + }; + }; + + rpc GetTransactionStatus (GetTransactionStatusRequest) returns (GetTransactionStatusResponse) { + option (google.api.http) = { + get: "/v1/tx-status/{tx_id}" + }; + } + + rpc GetTransferTransactionsPerTick(GetTransferTransactionsPerTickRequest) returns (GetTransferTransactionsPerTickResponse) { + option (google.api.http) = { + get: "/v1/identities/{identity}/transfer-transactions" + }; + }; + + rpc GetComputors(GetComputorsRequest) returns (GetComputorsResponse) { + option (google.api.http) = { + get: "/v1/epochs/{epoch}/computors" + }; + }; + + rpc GetStatus(google.protobuf.Empty) returns (GetStatusResponse) { + option (google.api.http) = { + get: "/v1/status" + }; + }; + + rpc GetLatestTick(google.protobuf.Empty) returns (GetLatestTickResponse) { + option (google.api.http) = { + get: "/v1/latestTick" + }; + }; + + + rpc GetHealthCheck(google.protobuf.Empty) returns (GetHealthCheckResponse){ + option (google.api.http) = { + get: "/v1/healthcheck" + }; + }; +} \ No newline at end of file