com.wavesplatform.protobuf.block.BlockOuterClass Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of protobuf-schemas Show documentation
Show all versions of protobuf-schemas Show documentation
Waves Node protobuf java classes
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: waves/block.proto
package com.wavesplatform.protobuf.block;
public final class BlockOuterClass {
private BlockOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface BlockOrBuilder extends
// @@protoc_insertion_point(interface_extends:waves.Block)
com.google.protobuf.MessageOrBuilder {
/**
* .waves.Block.Header header = 1;
* @return Whether the header field is set.
*/
boolean hasHeader();
/**
* .waves.Block.Header header = 1;
* @return The header.
*/
com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header getHeader();
/**
* .waves.Block.Header header = 1;
*/
com.wavesplatform.protobuf.block.BlockOuterClass.Block.HeaderOrBuilder getHeaderOrBuilder();
/**
* bytes signature = 2;
* @return The signature.
*/
com.google.protobuf.ByteString getSignature();
/**
* repeated .waves.SignedTransaction transactions = 3;
*/
java.util.List
getTransactionsList();
/**
* repeated .waves.SignedTransaction transactions = 3;
*/
com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction getTransactions(int index);
/**
* repeated .waves.SignedTransaction transactions = 3;
*/
int getTransactionsCount();
/**
* repeated .waves.SignedTransaction transactions = 3;
*/
java.util.List extends com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransactionOrBuilder>
getTransactionsOrBuilderList();
/**
* repeated .waves.SignedTransaction transactions = 3;
*/
com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransactionOrBuilder getTransactionsOrBuilder(
int index);
}
/**
* Protobuf type {@code waves.Block}
*/
public static final class Block extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:waves.Block)
BlockOrBuilder {
private static final long serialVersionUID = 0L;
// Use Block.newBuilder() to construct.
private Block(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Block() {
signature_ = com.google.protobuf.ByteString.EMPTY;
transactions_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Block();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Block(
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: {
com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.Builder subBuilder = null;
if (header_ != null) {
subBuilder = header_.toBuilder();
}
header_ = input.readMessage(com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(header_);
header_ = subBuilder.buildPartial();
}
break;
}
case 18: {
signature_ = input.readBytes();
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
transactions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
transactions_.add(
input.readMessage(com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.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 com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_Block_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_Block_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.protobuf.block.BlockOuterClass.Block.class, com.wavesplatform.protobuf.block.BlockOuterClass.Block.Builder.class);
}
public interface HeaderOrBuilder extends
// @@protoc_insertion_point(interface_extends:waves.Block.Header)
com.google.protobuf.MessageOrBuilder {
/**
* int32 chain_id = 1;
* @return The chainId.
*/
int getChainId();
/**
* bytes reference = 2;
* @return The reference.
*/
com.google.protobuf.ByteString getReference();
/**
* int64 base_target = 3;
* @return The baseTarget.
*/
long getBaseTarget();
/**
* bytes generation_signature = 4;
* @return The generationSignature.
*/
com.google.protobuf.ByteString getGenerationSignature();
/**
* repeated uint32 feature_votes = 5;
* @return A list containing the featureVotes.
*/
java.util.List getFeatureVotesList();
/**
* repeated uint32 feature_votes = 5;
* @return The count of featureVotes.
*/
int getFeatureVotesCount();
/**
* repeated uint32 feature_votes = 5;
* @param index The index of the element to return.
* @return The featureVotes at the given index.
*/
int getFeatureVotes(int index);
/**
* int64 timestamp = 6;
* @return The timestamp.
*/
long getTimestamp();
/**
* int32 version = 7;
* @return The version.
*/
int getVersion();
/**
* bytes generator = 8;
* @return The generator.
*/
com.google.protobuf.ByteString getGenerator();
/**
* int64 reward_vote = 9;
* @return The rewardVote.
*/
long getRewardVote();
/**
* bytes transactions_root = 10;
* @return The transactionsRoot.
*/
com.google.protobuf.ByteString getTransactionsRoot();
}
/**
* Protobuf type {@code waves.Block.Header}
*/
public static final class Header extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:waves.Block.Header)
HeaderOrBuilder {
private static final long serialVersionUID = 0L;
// Use Header.newBuilder() to construct.
private Header(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Header() {
reference_ = com.google.protobuf.ByteString.EMPTY;
generationSignature_ = com.google.protobuf.ByteString.EMPTY;
featureVotes_ = emptyIntList();
generator_ = com.google.protobuf.ByteString.EMPTY;
transactionsRoot_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Header();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Header(
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: {
chainId_ = input.readInt32();
break;
}
case 18: {
reference_ = input.readBytes();
break;
}
case 24: {
baseTarget_ = input.readInt64();
break;
}
case 34: {
generationSignature_ = input.readBytes();
break;
}
case 40: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
featureVotes_ = newIntList();
mutable_bitField0_ |= 0x00000001;
}
featureVotes_.addInt(input.readUInt32());
break;
}
case 42: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
featureVotes_ = newIntList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
featureVotes_.addInt(input.readUInt32());
}
input.popLimit(limit);
break;
}
case 48: {
timestamp_ = input.readInt64();
break;
}
case 56: {
version_ = input.readInt32();
break;
}
case 66: {
generator_ = input.readBytes();
break;
}
case 72: {
rewardVote_ = input.readInt64();
break;
}
case 82: {
transactionsRoot_ = input.readBytes();
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)) {
featureVotes_.makeImmutable(); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_Block_Header_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_Block_Header_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.class, com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.Builder.class);
}
public static final int CHAIN_ID_FIELD_NUMBER = 1;
private int chainId_;
/**
* int32 chain_id = 1;
* @return The chainId.
*/
public int getChainId() {
return chainId_;
}
public static final int REFERENCE_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString reference_;
/**
* bytes reference = 2;
* @return The reference.
*/
public com.google.protobuf.ByteString getReference() {
return reference_;
}
public static final int BASE_TARGET_FIELD_NUMBER = 3;
private long baseTarget_;
/**
* int64 base_target = 3;
* @return The baseTarget.
*/
public long getBaseTarget() {
return baseTarget_;
}
public static final int GENERATION_SIGNATURE_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString generationSignature_;
/**
* bytes generation_signature = 4;
* @return The generationSignature.
*/
public com.google.protobuf.ByteString getGenerationSignature() {
return generationSignature_;
}
public static final int FEATURE_VOTES_FIELD_NUMBER = 5;
private com.google.protobuf.Internal.IntList featureVotes_;
/**
* repeated uint32 feature_votes = 5;
* @return A list containing the featureVotes.
*/
public java.util.List
getFeatureVotesList() {
return featureVotes_;
}
/**
* repeated uint32 feature_votes = 5;
* @return The count of featureVotes.
*/
public int getFeatureVotesCount() {
return featureVotes_.size();
}
/**
* repeated uint32 feature_votes = 5;
* @param index The index of the element to return.
* @return The featureVotes at the given index.
*/
public int getFeatureVotes(int index) {
return featureVotes_.getInt(index);
}
private int featureVotesMemoizedSerializedSize = -1;
public static final int TIMESTAMP_FIELD_NUMBER = 6;
private long timestamp_;
/**
* int64 timestamp = 6;
* @return The timestamp.
*/
public long getTimestamp() {
return timestamp_;
}
public static final int VERSION_FIELD_NUMBER = 7;
private int version_;
/**
* int32 version = 7;
* @return The version.
*/
public int getVersion() {
return version_;
}
public static final int GENERATOR_FIELD_NUMBER = 8;
private com.google.protobuf.ByteString generator_;
/**
* bytes generator = 8;
* @return The generator.
*/
public com.google.protobuf.ByteString getGenerator() {
return generator_;
}
public static final int REWARD_VOTE_FIELD_NUMBER = 9;
private long rewardVote_;
/**
* int64 reward_vote = 9;
* @return The rewardVote.
*/
public long getRewardVote() {
return rewardVote_;
}
public static final int TRANSACTIONS_ROOT_FIELD_NUMBER = 10;
private com.google.protobuf.ByteString transactionsRoot_;
/**
* bytes transactions_root = 10;
* @return The transactionsRoot.
*/
public com.google.protobuf.ByteString getTransactionsRoot() {
return transactionsRoot_;
}
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 {
getSerializedSize();
if (chainId_ != 0) {
output.writeInt32(1, chainId_);
}
if (!reference_.isEmpty()) {
output.writeBytes(2, reference_);
}
if (baseTarget_ != 0L) {
output.writeInt64(3, baseTarget_);
}
if (!generationSignature_.isEmpty()) {
output.writeBytes(4, generationSignature_);
}
if (getFeatureVotesList().size() > 0) {
output.writeUInt32NoTag(42);
output.writeUInt32NoTag(featureVotesMemoizedSerializedSize);
}
for (int i = 0; i < featureVotes_.size(); i++) {
output.writeUInt32NoTag(featureVotes_.getInt(i));
}
if (timestamp_ != 0L) {
output.writeInt64(6, timestamp_);
}
if (version_ != 0) {
output.writeInt32(7, version_);
}
if (!generator_.isEmpty()) {
output.writeBytes(8, generator_);
}
if (rewardVote_ != 0L) {
output.writeInt64(9, rewardVote_);
}
if (!transactionsRoot_.isEmpty()) {
output.writeBytes(10, transactionsRoot_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (chainId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, chainId_);
}
if (!reference_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, reference_);
}
if (baseTarget_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, baseTarget_);
}
if (!generationSignature_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, generationSignature_);
}
{
int dataSize = 0;
for (int i = 0; i < featureVotes_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(featureVotes_.getInt(i));
}
size += dataSize;
if (!getFeatureVotesList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
featureVotesMemoizedSerializedSize = dataSize;
}
if (timestamp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, timestamp_);
}
if (version_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(7, version_);
}
if (!generator_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(8, generator_);
}
if (rewardVote_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(9, rewardVote_);
}
if (!transactionsRoot_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(10, transactionsRoot_);
}
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 com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header)) {
return super.equals(obj);
}
com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header other = (com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header) obj;
if (getChainId()
!= other.getChainId()) return false;
if (!getReference()
.equals(other.getReference())) return false;
if (getBaseTarget()
!= other.getBaseTarget()) return false;
if (!getGenerationSignature()
.equals(other.getGenerationSignature())) return false;
if (!getFeatureVotesList()
.equals(other.getFeatureVotesList())) return false;
if (getTimestamp()
!= other.getTimestamp()) return false;
if (getVersion()
!= other.getVersion()) return false;
if (!getGenerator()
.equals(other.getGenerator())) return false;
if (getRewardVote()
!= other.getRewardVote()) return false;
if (!getTransactionsRoot()
.equals(other.getTransactionsRoot())) 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) + CHAIN_ID_FIELD_NUMBER;
hash = (53 * hash) + getChainId();
hash = (37 * hash) + REFERENCE_FIELD_NUMBER;
hash = (53 * hash) + getReference().hashCode();
hash = (37 * hash) + BASE_TARGET_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getBaseTarget());
hash = (37 * hash) + GENERATION_SIGNATURE_FIELD_NUMBER;
hash = (53 * hash) + getGenerationSignature().hashCode();
if (getFeatureVotesCount() > 0) {
hash = (37 * hash) + FEATURE_VOTES_FIELD_NUMBER;
hash = (53 * hash) + getFeatureVotesList().hashCode();
}
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTimestamp());
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion();
hash = (37 * hash) + GENERATOR_FIELD_NUMBER;
hash = (53 * hash) + getGenerator().hashCode();
hash = (37 * hash) + REWARD_VOTE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRewardVote());
hash = (37 * hash) + TRANSACTIONS_ROOT_FIELD_NUMBER;
hash = (53 * hash) + getTransactionsRoot().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header 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 com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header 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 com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header 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(com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header 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 waves.Block.Header}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:waves.Block.Header)
com.wavesplatform.protobuf.block.BlockOuterClass.Block.HeaderOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_Block_Header_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_Block_Header_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.class, com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.Builder.class);
}
// Construct using com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.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();
chainId_ = 0;
reference_ = com.google.protobuf.ByteString.EMPTY;
baseTarget_ = 0L;
generationSignature_ = com.google.protobuf.ByteString.EMPTY;
featureVotes_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
timestamp_ = 0L;
version_ = 0;
generator_ = com.google.protobuf.ByteString.EMPTY;
rewardVote_ = 0L;
transactionsRoot_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_Block_Header_descriptor;
}
@java.lang.Override
public com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header getDefaultInstanceForType() {
return com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.getDefaultInstance();
}
@java.lang.Override
public com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header build() {
com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header buildPartial() {
com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header result = new com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header(this);
int from_bitField0_ = bitField0_;
result.chainId_ = chainId_;
result.reference_ = reference_;
result.baseTarget_ = baseTarget_;
result.generationSignature_ = generationSignature_;
if (((bitField0_ & 0x00000001) != 0)) {
featureVotes_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.featureVotes_ = featureVotes_;
result.timestamp_ = timestamp_;
result.version_ = version_;
result.generator_ = generator_;
result.rewardVote_ = rewardVote_;
result.transactionsRoot_ = transactionsRoot_;
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 com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header) {
return mergeFrom((com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header other) {
if (other == com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.getDefaultInstance()) return this;
if (other.getChainId() != 0) {
setChainId(other.getChainId());
}
if (other.getReference() != com.google.protobuf.ByteString.EMPTY) {
setReference(other.getReference());
}
if (other.getBaseTarget() != 0L) {
setBaseTarget(other.getBaseTarget());
}
if (other.getGenerationSignature() != com.google.protobuf.ByteString.EMPTY) {
setGenerationSignature(other.getGenerationSignature());
}
if (!other.featureVotes_.isEmpty()) {
if (featureVotes_.isEmpty()) {
featureVotes_ = other.featureVotes_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureFeatureVotesIsMutable();
featureVotes_.addAll(other.featureVotes_);
}
onChanged();
}
if (other.getTimestamp() != 0L) {
setTimestamp(other.getTimestamp());
}
if (other.getVersion() != 0) {
setVersion(other.getVersion());
}
if (other.getGenerator() != com.google.protobuf.ByteString.EMPTY) {
setGenerator(other.getGenerator());
}
if (other.getRewardVote() != 0L) {
setRewardVote(other.getRewardVote());
}
if (other.getTransactionsRoot() != com.google.protobuf.ByteString.EMPTY) {
setTransactionsRoot(other.getTransactionsRoot());
}
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 {
com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int chainId_ ;
/**
* int32 chain_id = 1;
* @return The chainId.
*/
public int getChainId() {
return chainId_;
}
/**
* int32 chain_id = 1;
* @param value The chainId to set.
* @return This builder for chaining.
*/
public Builder setChainId(int value) {
chainId_ = value;
onChanged();
return this;
}
/**
* int32 chain_id = 1;
* @return This builder for chaining.
*/
public Builder clearChainId() {
chainId_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString reference_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes reference = 2;
* @return The reference.
*/
public com.google.protobuf.ByteString getReference() {
return reference_;
}
/**
* bytes reference = 2;
* @param value The reference to set.
* @return This builder for chaining.
*/
public Builder setReference(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
reference_ = value;
onChanged();
return this;
}
/**
* bytes reference = 2;
* @return This builder for chaining.
*/
public Builder clearReference() {
reference_ = getDefaultInstance().getReference();
onChanged();
return this;
}
private long baseTarget_ ;
/**
* int64 base_target = 3;
* @return The baseTarget.
*/
public long getBaseTarget() {
return baseTarget_;
}
/**
* int64 base_target = 3;
* @param value The baseTarget to set.
* @return This builder for chaining.
*/
public Builder setBaseTarget(long value) {
baseTarget_ = value;
onChanged();
return this;
}
/**
* int64 base_target = 3;
* @return This builder for chaining.
*/
public Builder clearBaseTarget() {
baseTarget_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.ByteString generationSignature_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes generation_signature = 4;
* @return The generationSignature.
*/
public com.google.protobuf.ByteString getGenerationSignature() {
return generationSignature_;
}
/**
* bytes generation_signature = 4;
* @param value The generationSignature to set.
* @return This builder for chaining.
*/
public Builder setGenerationSignature(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
generationSignature_ = value;
onChanged();
return this;
}
/**
* bytes generation_signature = 4;
* @return This builder for chaining.
*/
public Builder clearGenerationSignature() {
generationSignature_ = getDefaultInstance().getGenerationSignature();
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList featureVotes_ = emptyIntList();
private void ensureFeatureVotesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
featureVotes_ = mutableCopy(featureVotes_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated uint32 feature_votes = 5;
* @return A list containing the featureVotes.
*/
public java.util.List
getFeatureVotesList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(featureVotes_) : featureVotes_;
}
/**
* repeated uint32 feature_votes = 5;
* @return The count of featureVotes.
*/
public int getFeatureVotesCount() {
return featureVotes_.size();
}
/**
* repeated uint32 feature_votes = 5;
* @param index The index of the element to return.
* @return The featureVotes at the given index.
*/
public int getFeatureVotes(int index) {
return featureVotes_.getInt(index);
}
/**
* repeated uint32 feature_votes = 5;
* @param index The index to set the value at.
* @param value The featureVotes to set.
* @return This builder for chaining.
*/
public Builder setFeatureVotes(
int index, int value) {
ensureFeatureVotesIsMutable();
featureVotes_.setInt(index, value);
onChanged();
return this;
}
/**
* repeated uint32 feature_votes = 5;
* @param value The featureVotes to add.
* @return This builder for chaining.
*/
public Builder addFeatureVotes(int value) {
ensureFeatureVotesIsMutable();
featureVotes_.addInt(value);
onChanged();
return this;
}
/**
* repeated uint32 feature_votes = 5;
* @param values The featureVotes to add.
* @return This builder for chaining.
*/
public Builder addAllFeatureVotes(
java.lang.Iterable extends java.lang.Integer> values) {
ensureFeatureVotesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, featureVotes_);
onChanged();
return this;
}
/**
* repeated uint32 feature_votes = 5;
* @return This builder for chaining.
*/
public Builder clearFeatureVotes() {
featureVotes_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
private long timestamp_ ;
/**
* int64 timestamp = 6;
* @return The timestamp.
*/
public long getTimestamp() {
return timestamp_;
}
/**
* int64 timestamp = 6;
* @param value The timestamp to set.
* @return This builder for chaining.
*/
public Builder setTimestamp(long value) {
timestamp_ = value;
onChanged();
return this;
}
/**
* int64 timestamp = 6;
* @return This builder for chaining.
*/
public Builder clearTimestamp() {
timestamp_ = 0L;
onChanged();
return this;
}
private int version_ ;
/**
* int32 version = 7;
* @return The version.
*/
public int getVersion() {
return version_;
}
/**
* int32 version = 7;
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(int value) {
version_ = value;
onChanged();
return this;
}
/**
* int32 version = 7;
* @return This builder for chaining.
*/
public Builder clearVersion() {
version_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString generator_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes generator = 8;
* @return The generator.
*/
public com.google.protobuf.ByteString getGenerator() {
return generator_;
}
/**
* bytes generator = 8;
* @param value The generator to set.
* @return This builder for chaining.
*/
public Builder setGenerator(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
generator_ = value;
onChanged();
return this;
}
/**
* bytes generator = 8;
* @return This builder for chaining.
*/
public Builder clearGenerator() {
generator_ = getDefaultInstance().getGenerator();
onChanged();
return this;
}
private long rewardVote_ ;
/**
* int64 reward_vote = 9;
* @return The rewardVote.
*/
public long getRewardVote() {
return rewardVote_;
}
/**
* int64 reward_vote = 9;
* @param value The rewardVote to set.
* @return This builder for chaining.
*/
public Builder setRewardVote(long value) {
rewardVote_ = value;
onChanged();
return this;
}
/**
* int64 reward_vote = 9;
* @return This builder for chaining.
*/
public Builder clearRewardVote() {
rewardVote_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.ByteString transactionsRoot_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes transactions_root = 10;
* @return The transactionsRoot.
*/
public com.google.protobuf.ByteString getTransactionsRoot() {
return transactionsRoot_;
}
/**
* bytes transactions_root = 10;
* @param value The transactionsRoot to set.
* @return This builder for chaining.
*/
public Builder setTransactionsRoot(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
transactionsRoot_ = value;
onChanged();
return this;
}
/**
* bytes transactions_root = 10;
* @return This builder for chaining.
*/
public Builder clearTransactionsRoot() {
transactionsRoot_ = getDefaultInstance().getTransactionsRoot();
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:waves.Block.Header)
}
// @@protoc_insertion_point(class_scope:waves.Block.Header)
private static final com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header();
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Header parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Header(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 com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int HEADER_FIELD_NUMBER = 1;
private com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header header_;
/**
* .waves.Block.Header header = 1;
* @return Whether the header field is set.
*/
public boolean hasHeader() {
return header_ != null;
}
/**
* .waves.Block.Header header = 1;
* @return The header.
*/
public com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header getHeader() {
return header_ == null ? com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.getDefaultInstance() : header_;
}
/**
* .waves.Block.Header header = 1;
*/
public com.wavesplatform.protobuf.block.BlockOuterClass.Block.HeaderOrBuilder getHeaderOrBuilder() {
return getHeader();
}
public static final int SIGNATURE_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString signature_;
/**
* bytes signature = 2;
* @return The signature.
*/
public com.google.protobuf.ByteString getSignature() {
return signature_;
}
public static final int TRANSACTIONS_FIELD_NUMBER = 3;
private java.util.List transactions_;
/**
* repeated .waves.SignedTransaction transactions = 3;
*/
public java.util.List getTransactionsList() {
return transactions_;
}
/**
* repeated .waves.SignedTransaction transactions = 3;
*/
public java.util.List extends com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransactionOrBuilder>
getTransactionsOrBuilderList() {
return transactions_;
}
/**
* repeated .waves.SignedTransaction transactions = 3;
*/
public int getTransactionsCount() {
return transactions_.size();
}
/**
* repeated .waves.SignedTransaction transactions = 3;
*/
public com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction getTransactions(int index) {
return transactions_.get(index);
}
/**
* repeated .waves.SignedTransaction transactions = 3;
*/
public com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransactionOrBuilder 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 (header_ != null) {
output.writeMessage(1, getHeader());
}
if (!signature_.isEmpty()) {
output.writeBytes(2, signature_);
}
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 (header_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getHeader());
}
if (!signature_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, signature_);
}
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 com.wavesplatform.protobuf.block.BlockOuterClass.Block)) {
return super.equals(obj);
}
com.wavesplatform.protobuf.block.BlockOuterClass.Block other = (com.wavesplatform.protobuf.block.BlockOuterClass.Block) obj;
if (hasHeader() != other.hasHeader()) return false;
if (hasHeader()) {
if (!getHeader()
.equals(other.getHeader())) return false;
}
if (!getSignature()
.equals(other.getSignature())) 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();
if (hasHeader()) {
hash = (37 * hash) + HEADER_FIELD_NUMBER;
hash = (53 * hash) + getHeader().hashCode();
}
hash = (37 * hash) + SIGNATURE_FIELD_NUMBER;
hash = (53 * hash) + getSignature().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 com.wavesplatform.protobuf.block.BlockOuterClass.Block parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.Block parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.Block parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.Block parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.Block parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.Block parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.Block parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.Block 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 com.wavesplatform.protobuf.block.BlockOuterClass.Block parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.Block 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 com.wavesplatform.protobuf.block.BlockOuterClass.Block parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.Block 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(com.wavesplatform.protobuf.block.BlockOuterClass.Block 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 waves.Block}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:waves.Block)
com.wavesplatform.protobuf.block.BlockOuterClass.BlockOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_Block_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_Block_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.protobuf.block.BlockOuterClass.Block.class, com.wavesplatform.protobuf.block.BlockOuterClass.Block.Builder.class);
}
// Construct using com.wavesplatform.protobuf.block.BlockOuterClass.Block.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 (headerBuilder_ == null) {
header_ = null;
} else {
header_ = null;
headerBuilder_ = null;
}
signature_ = com.google.protobuf.ByteString.EMPTY;
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 com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_Block_descriptor;
}
@java.lang.Override
public com.wavesplatform.protobuf.block.BlockOuterClass.Block getDefaultInstanceForType() {
return com.wavesplatform.protobuf.block.BlockOuterClass.Block.getDefaultInstance();
}
@java.lang.Override
public com.wavesplatform.protobuf.block.BlockOuterClass.Block build() {
com.wavesplatform.protobuf.block.BlockOuterClass.Block result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.wavesplatform.protobuf.block.BlockOuterClass.Block buildPartial() {
com.wavesplatform.protobuf.block.BlockOuterClass.Block result = new com.wavesplatform.protobuf.block.BlockOuterClass.Block(this);
int from_bitField0_ = bitField0_;
if (headerBuilder_ == null) {
result.header_ = header_;
} else {
result.header_ = headerBuilder_.build();
}
result.signature_ = signature_;
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 com.wavesplatform.protobuf.block.BlockOuterClass.Block) {
return mergeFrom((com.wavesplatform.protobuf.block.BlockOuterClass.Block)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.wavesplatform.protobuf.block.BlockOuterClass.Block other) {
if (other == com.wavesplatform.protobuf.block.BlockOuterClass.Block.getDefaultInstance()) return this;
if (other.hasHeader()) {
mergeHeader(other.getHeader());
}
if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) {
setSignature(other.getSignature());
}
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 {
com.wavesplatform.protobuf.block.BlockOuterClass.Block parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.wavesplatform.protobuf.block.BlockOuterClass.Block) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header header_;
private com.google.protobuf.SingleFieldBuilderV3<
com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header, com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.Builder, com.wavesplatform.protobuf.block.BlockOuterClass.Block.HeaderOrBuilder> headerBuilder_;
/**
* .waves.Block.Header header = 1;
* @return Whether the header field is set.
*/
public boolean hasHeader() {
return headerBuilder_ != null || header_ != null;
}
/**
* .waves.Block.Header header = 1;
* @return The header.
*/
public com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header getHeader() {
if (headerBuilder_ == null) {
return header_ == null ? com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.getDefaultInstance() : header_;
} else {
return headerBuilder_.getMessage();
}
}
/**
* .waves.Block.Header header = 1;
*/
public Builder setHeader(com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header value) {
if (headerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
header_ = value;
onChanged();
} else {
headerBuilder_.setMessage(value);
}
return this;
}
/**
* .waves.Block.Header header = 1;
*/
public Builder setHeader(
com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.Builder builderForValue) {
if (headerBuilder_ == null) {
header_ = builderForValue.build();
onChanged();
} else {
headerBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .waves.Block.Header header = 1;
*/
public Builder mergeHeader(com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header value) {
if (headerBuilder_ == null) {
if (header_ != null) {
header_ =
com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.newBuilder(header_).mergeFrom(value).buildPartial();
} else {
header_ = value;
}
onChanged();
} else {
headerBuilder_.mergeFrom(value);
}
return this;
}
/**
* .waves.Block.Header header = 1;
*/
public Builder clearHeader() {
if (headerBuilder_ == null) {
header_ = null;
onChanged();
} else {
header_ = null;
headerBuilder_ = null;
}
return this;
}
/**
* .waves.Block.Header header = 1;
*/
public com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.Builder getHeaderBuilder() {
onChanged();
return getHeaderFieldBuilder().getBuilder();
}
/**
* .waves.Block.Header header = 1;
*/
public com.wavesplatform.protobuf.block.BlockOuterClass.Block.HeaderOrBuilder getHeaderOrBuilder() {
if (headerBuilder_ != null) {
return headerBuilder_.getMessageOrBuilder();
} else {
return header_ == null ?
com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.getDefaultInstance() : header_;
}
}
/**
* .waves.Block.Header header = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header, com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.Builder, com.wavesplatform.protobuf.block.BlockOuterClass.Block.HeaderOrBuilder>
getHeaderFieldBuilder() {
if (headerBuilder_ == null) {
headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header, com.wavesplatform.protobuf.block.BlockOuterClass.Block.Header.Builder, com.wavesplatform.protobuf.block.BlockOuterClass.Block.HeaderOrBuilder>(
getHeader(),
getParentForChildren(),
isClean());
header_ = null;
}
return headerBuilder_;
}
private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes signature = 2;
* @return The signature.
*/
public com.google.protobuf.ByteString getSignature() {
return signature_;
}
/**
* bytes signature = 2;
* @param value The signature to set.
* @return This builder for chaining.
*/
public Builder setSignature(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
signature_ = value;
onChanged();
return this;
}
/**
* bytes signature = 2;
* @return This builder for chaining.
*/
public Builder clearSignature() {
signature_ = getDefaultInstance().getSignature();
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<
com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransactionOrBuilder> transactionsBuilder_;
/**
* repeated .waves.SignedTransaction transactions = 3;
*/
public java.util.List getTransactionsList() {
if (transactionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(transactions_);
} else {
return transactionsBuilder_.getMessageList();
}
}
/**
* repeated .waves.SignedTransaction transactions = 3;
*/
public int getTransactionsCount() {
if (transactionsBuilder_ == null) {
return transactions_.size();
} else {
return transactionsBuilder_.getCount();
}
}
/**
* repeated .waves.SignedTransaction transactions = 3;
*/
public com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction getTransactions(int index) {
if (transactionsBuilder_ == null) {
return transactions_.get(index);
} else {
return transactionsBuilder_.getMessage(index);
}
}
/**
* repeated .waves.SignedTransaction transactions = 3;
*/
public Builder setTransactions(
int index, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction value) {
if (transactionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTransactionsIsMutable();
transactions_.set(index, value);
onChanged();
} else {
transactionsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .waves.SignedTransaction transactions = 3;
*/
public Builder setTransactions(
int index, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder builderForValue) {
if (transactionsBuilder_ == null) {
ensureTransactionsIsMutable();
transactions_.set(index, builderForValue.build());
onChanged();
} else {
transactionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .waves.SignedTransaction transactions = 3;
*/
public Builder addTransactions(com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction value) {
if (transactionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTransactionsIsMutable();
transactions_.add(value);
onChanged();
} else {
transactionsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .waves.SignedTransaction transactions = 3;
*/
public Builder addTransactions(
int index, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction value) {
if (transactionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTransactionsIsMutable();
transactions_.add(index, value);
onChanged();
} else {
transactionsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .waves.SignedTransaction transactions = 3;
*/
public Builder addTransactions(
com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder builderForValue) {
if (transactionsBuilder_ == null) {
ensureTransactionsIsMutable();
transactions_.add(builderForValue.build());
onChanged();
} else {
transactionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .waves.SignedTransaction transactions = 3;
*/
public Builder addTransactions(
int index, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder builderForValue) {
if (transactionsBuilder_ == null) {
ensureTransactionsIsMutable();
transactions_.add(index, builderForValue.build());
onChanged();
} else {
transactionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .waves.SignedTransaction transactions = 3;
*/
public Builder addAllTransactions(
java.lang.Iterable extends com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction> values) {
if (transactionsBuilder_ == null) {
ensureTransactionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, transactions_);
onChanged();
} else {
transactionsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .waves.SignedTransaction transactions = 3;
*/
public Builder clearTransactions() {
if (transactionsBuilder_ == null) {
transactions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
transactionsBuilder_.clear();
}
return this;
}
/**
* repeated .waves.SignedTransaction transactions = 3;
*/
public Builder removeTransactions(int index) {
if (transactionsBuilder_ == null) {
ensureTransactionsIsMutable();
transactions_.remove(index);
onChanged();
} else {
transactionsBuilder_.remove(index);
}
return this;
}
/**
* repeated .waves.SignedTransaction transactions = 3;
*/
public com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder getTransactionsBuilder(
int index) {
return getTransactionsFieldBuilder().getBuilder(index);
}
/**
* repeated .waves.SignedTransaction transactions = 3;
*/
public com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransactionOrBuilder getTransactionsOrBuilder(
int index) {
if (transactionsBuilder_ == null) {
return transactions_.get(index); } else {
return transactionsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .waves.SignedTransaction transactions = 3;
*/
public java.util.List extends com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransactionOrBuilder>
getTransactionsOrBuilderList() {
if (transactionsBuilder_ != null) {
return transactionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(transactions_);
}
}
/**
* repeated .waves.SignedTransaction transactions = 3;
*/
public com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder addTransactionsBuilder() {
return getTransactionsFieldBuilder().addBuilder(
com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.getDefaultInstance());
}
/**
* repeated .waves.SignedTransaction transactions = 3;
*/
public com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder addTransactionsBuilder(
int index) {
return getTransactionsFieldBuilder().addBuilder(
index, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.getDefaultInstance());
}
/**
* repeated .waves.SignedTransaction transactions = 3;
*/
public java.util.List
getTransactionsBuilderList() {
return getTransactionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransactionOrBuilder>
getTransactionsFieldBuilder() {
if (transactionsBuilder_ == null) {
transactionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransactionOrBuilder>(
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:waves.Block)
}
// @@protoc_insertion_point(class_scope:waves.Block)
private static final com.wavesplatform.protobuf.block.BlockOuterClass.Block DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.wavesplatform.protobuf.block.BlockOuterClass.Block();
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.Block getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Block parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Block(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 com.wavesplatform.protobuf.block.BlockOuterClass.Block getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MicroBlockOrBuilder extends
// @@protoc_insertion_point(interface_extends:waves.MicroBlock)
com.google.protobuf.MessageOrBuilder {
/**
* int32 version = 1;
* @return The version.
*/
int getVersion();
/**
* bytes reference = 2;
* @return The reference.
*/
com.google.protobuf.ByteString getReference();
/**
* bytes updated_block_signature = 3;
* @return The updatedBlockSignature.
*/
com.google.protobuf.ByteString getUpdatedBlockSignature();
/**
* bytes sender_public_key = 4;
* @return The senderPublicKey.
*/
com.google.protobuf.ByteString getSenderPublicKey();
/**
* repeated .waves.SignedTransaction transactions = 5;
*/
java.util.List
getTransactionsList();
/**
* repeated .waves.SignedTransaction transactions = 5;
*/
com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction getTransactions(int index);
/**
* repeated .waves.SignedTransaction transactions = 5;
*/
int getTransactionsCount();
/**
* repeated .waves.SignedTransaction transactions = 5;
*/
java.util.List extends com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransactionOrBuilder>
getTransactionsOrBuilderList();
/**
* repeated .waves.SignedTransaction transactions = 5;
*/
com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransactionOrBuilder getTransactionsOrBuilder(
int index);
}
/**
* Protobuf type {@code waves.MicroBlock}
*/
public static final class MicroBlock extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:waves.MicroBlock)
MicroBlockOrBuilder {
private static final long serialVersionUID = 0L;
// Use MicroBlock.newBuilder() to construct.
private MicroBlock(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MicroBlock() {
reference_ = com.google.protobuf.ByteString.EMPTY;
updatedBlockSignature_ = com.google.protobuf.ByteString.EMPTY;
senderPublicKey_ = com.google.protobuf.ByteString.EMPTY;
transactions_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MicroBlock();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MicroBlock(
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: {
version_ = input.readInt32();
break;
}
case 18: {
reference_ = input.readBytes();
break;
}
case 26: {
updatedBlockSignature_ = input.readBytes();
break;
}
case 34: {
senderPublicKey_ = input.readBytes();
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
transactions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
transactions_.add(
input.readMessage(com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.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 com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_MicroBlock_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_MicroBlock_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock.class, com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock.Builder.class);
}
public static final int VERSION_FIELD_NUMBER = 1;
private int version_;
/**
* int32 version = 1;
* @return The version.
*/
public int getVersion() {
return version_;
}
public static final int REFERENCE_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString reference_;
/**
* bytes reference = 2;
* @return The reference.
*/
public com.google.protobuf.ByteString getReference() {
return reference_;
}
public static final int UPDATED_BLOCK_SIGNATURE_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString updatedBlockSignature_;
/**
* bytes updated_block_signature = 3;
* @return The updatedBlockSignature.
*/
public com.google.protobuf.ByteString getUpdatedBlockSignature() {
return updatedBlockSignature_;
}
public static final int SENDER_PUBLIC_KEY_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString senderPublicKey_;
/**
* bytes sender_public_key = 4;
* @return The senderPublicKey.
*/
public com.google.protobuf.ByteString getSenderPublicKey() {
return senderPublicKey_;
}
public static final int TRANSACTIONS_FIELD_NUMBER = 5;
private java.util.List transactions_;
/**
* repeated .waves.SignedTransaction transactions = 5;
*/
public java.util.List getTransactionsList() {
return transactions_;
}
/**
* repeated .waves.SignedTransaction transactions = 5;
*/
public java.util.List extends com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransactionOrBuilder>
getTransactionsOrBuilderList() {
return transactions_;
}
/**
* repeated .waves.SignedTransaction transactions = 5;
*/
public int getTransactionsCount() {
return transactions_.size();
}
/**
* repeated .waves.SignedTransaction transactions = 5;
*/
public com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction getTransactions(int index) {
return transactions_.get(index);
}
/**
* repeated .waves.SignedTransaction transactions = 5;
*/
public com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransactionOrBuilder 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 (version_ != 0) {
output.writeInt32(1, version_);
}
if (!reference_.isEmpty()) {
output.writeBytes(2, reference_);
}
if (!updatedBlockSignature_.isEmpty()) {
output.writeBytes(3, updatedBlockSignature_);
}
if (!senderPublicKey_.isEmpty()) {
output.writeBytes(4, senderPublicKey_);
}
for (int i = 0; i < transactions_.size(); i++) {
output.writeMessage(5, transactions_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (version_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, version_);
}
if (!reference_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, reference_);
}
if (!updatedBlockSignature_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, updatedBlockSignature_);
}
if (!senderPublicKey_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, senderPublicKey_);
}
for (int i = 0; i < transactions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, 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 com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock)) {
return super.equals(obj);
}
com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock other = (com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock) obj;
if (getVersion()
!= other.getVersion()) return false;
if (!getReference()
.equals(other.getReference())) return false;
if (!getUpdatedBlockSignature()
.equals(other.getUpdatedBlockSignature())) return false;
if (!getSenderPublicKey()
.equals(other.getSenderPublicKey())) 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) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion();
hash = (37 * hash) + REFERENCE_FIELD_NUMBER;
hash = (53 * hash) + getReference().hashCode();
hash = (37 * hash) + UPDATED_BLOCK_SIGNATURE_FIELD_NUMBER;
hash = (53 * hash) + getUpdatedBlockSignature().hashCode();
hash = (37 * hash) + SENDER_PUBLIC_KEY_FIELD_NUMBER;
hash = (53 * hash) + getSenderPublicKey().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 com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock 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 com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock 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 com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock 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(com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock 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 waves.MicroBlock}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:waves.MicroBlock)
com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlockOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_MicroBlock_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_MicroBlock_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock.class, com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock.Builder.class);
}
// Construct using com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock.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();
version_ = 0;
reference_ = com.google.protobuf.ByteString.EMPTY;
updatedBlockSignature_ = com.google.protobuf.ByteString.EMPTY;
senderPublicKey_ = com.google.protobuf.ByteString.EMPTY;
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 com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_MicroBlock_descriptor;
}
@java.lang.Override
public com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock getDefaultInstanceForType() {
return com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock.getDefaultInstance();
}
@java.lang.Override
public com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock build() {
com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock buildPartial() {
com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock result = new com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock(this);
int from_bitField0_ = bitField0_;
result.version_ = version_;
result.reference_ = reference_;
result.updatedBlockSignature_ = updatedBlockSignature_;
result.senderPublicKey_ = senderPublicKey_;
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 com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock) {
return mergeFrom((com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock other) {
if (other == com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock.getDefaultInstance()) return this;
if (other.getVersion() != 0) {
setVersion(other.getVersion());
}
if (other.getReference() != com.google.protobuf.ByteString.EMPTY) {
setReference(other.getReference());
}
if (other.getUpdatedBlockSignature() != com.google.protobuf.ByteString.EMPTY) {
setUpdatedBlockSignature(other.getUpdatedBlockSignature());
}
if (other.getSenderPublicKey() != com.google.protobuf.ByteString.EMPTY) {
setSenderPublicKey(other.getSenderPublicKey());
}
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 {
com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int version_ ;
/**
* int32 version = 1;
* @return The version.
*/
public int getVersion() {
return version_;
}
/**
* int32 version = 1;
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(int value) {
version_ = value;
onChanged();
return this;
}
/**
* int32 version = 1;
* @return This builder for chaining.
*/
public Builder clearVersion() {
version_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString reference_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes reference = 2;
* @return The reference.
*/
public com.google.protobuf.ByteString getReference() {
return reference_;
}
/**
* bytes reference = 2;
* @param value The reference to set.
* @return This builder for chaining.
*/
public Builder setReference(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
reference_ = value;
onChanged();
return this;
}
/**
* bytes reference = 2;
* @return This builder for chaining.
*/
public Builder clearReference() {
reference_ = getDefaultInstance().getReference();
onChanged();
return this;
}
private com.google.protobuf.ByteString updatedBlockSignature_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes updated_block_signature = 3;
* @return The updatedBlockSignature.
*/
public com.google.protobuf.ByteString getUpdatedBlockSignature() {
return updatedBlockSignature_;
}
/**
* bytes updated_block_signature = 3;
* @param value The updatedBlockSignature to set.
* @return This builder for chaining.
*/
public Builder setUpdatedBlockSignature(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
updatedBlockSignature_ = value;
onChanged();
return this;
}
/**
* bytes updated_block_signature = 3;
* @return This builder for chaining.
*/
public Builder clearUpdatedBlockSignature() {
updatedBlockSignature_ = getDefaultInstance().getUpdatedBlockSignature();
onChanged();
return this;
}
private com.google.protobuf.ByteString senderPublicKey_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes sender_public_key = 4;
* @return The senderPublicKey.
*/
public com.google.protobuf.ByteString getSenderPublicKey() {
return senderPublicKey_;
}
/**
* bytes sender_public_key = 4;
* @param value The senderPublicKey to set.
* @return This builder for chaining.
*/
public Builder setSenderPublicKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
senderPublicKey_ = value;
onChanged();
return this;
}
/**
* bytes sender_public_key = 4;
* @return This builder for chaining.
*/
public Builder clearSenderPublicKey() {
senderPublicKey_ = getDefaultInstance().getSenderPublicKey();
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<
com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransactionOrBuilder> transactionsBuilder_;
/**
* repeated .waves.SignedTransaction transactions = 5;
*/
public java.util.List getTransactionsList() {
if (transactionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(transactions_);
} else {
return transactionsBuilder_.getMessageList();
}
}
/**
* repeated .waves.SignedTransaction transactions = 5;
*/
public int getTransactionsCount() {
if (transactionsBuilder_ == null) {
return transactions_.size();
} else {
return transactionsBuilder_.getCount();
}
}
/**
* repeated .waves.SignedTransaction transactions = 5;
*/
public com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction getTransactions(int index) {
if (transactionsBuilder_ == null) {
return transactions_.get(index);
} else {
return transactionsBuilder_.getMessage(index);
}
}
/**
* repeated .waves.SignedTransaction transactions = 5;
*/
public Builder setTransactions(
int index, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction value) {
if (transactionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTransactionsIsMutable();
transactions_.set(index, value);
onChanged();
} else {
transactionsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .waves.SignedTransaction transactions = 5;
*/
public Builder setTransactions(
int index, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder builderForValue) {
if (transactionsBuilder_ == null) {
ensureTransactionsIsMutable();
transactions_.set(index, builderForValue.build());
onChanged();
} else {
transactionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .waves.SignedTransaction transactions = 5;
*/
public Builder addTransactions(com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction value) {
if (transactionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTransactionsIsMutable();
transactions_.add(value);
onChanged();
} else {
transactionsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .waves.SignedTransaction transactions = 5;
*/
public Builder addTransactions(
int index, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction value) {
if (transactionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTransactionsIsMutable();
transactions_.add(index, value);
onChanged();
} else {
transactionsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .waves.SignedTransaction transactions = 5;
*/
public Builder addTransactions(
com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder builderForValue) {
if (transactionsBuilder_ == null) {
ensureTransactionsIsMutable();
transactions_.add(builderForValue.build());
onChanged();
} else {
transactionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .waves.SignedTransaction transactions = 5;
*/
public Builder addTransactions(
int index, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder builderForValue) {
if (transactionsBuilder_ == null) {
ensureTransactionsIsMutable();
transactions_.add(index, builderForValue.build());
onChanged();
} else {
transactionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .waves.SignedTransaction transactions = 5;
*/
public Builder addAllTransactions(
java.lang.Iterable extends com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction> values) {
if (transactionsBuilder_ == null) {
ensureTransactionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, transactions_);
onChanged();
} else {
transactionsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .waves.SignedTransaction transactions = 5;
*/
public Builder clearTransactions() {
if (transactionsBuilder_ == null) {
transactions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
transactionsBuilder_.clear();
}
return this;
}
/**
* repeated .waves.SignedTransaction transactions = 5;
*/
public Builder removeTransactions(int index) {
if (transactionsBuilder_ == null) {
ensureTransactionsIsMutable();
transactions_.remove(index);
onChanged();
} else {
transactionsBuilder_.remove(index);
}
return this;
}
/**
* repeated .waves.SignedTransaction transactions = 5;
*/
public com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder getTransactionsBuilder(
int index) {
return getTransactionsFieldBuilder().getBuilder(index);
}
/**
* repeated .waves.SignedTransaction transactions = 5;
*/
public com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransactionOrBuilder getTransactionsOrBuilder(
int index) {
if (transactionsBuilder_ == null) {
return transactions_.get(index); } else {
return transactionsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .waves.SignedTransaction transactions = 5;
*/
public java.util.List extends com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransactionOrBuilder>
getTransactionsOrBuilderList() {
if (transactionsBuilder_ != null) {
return transactionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(transactions_);
}
}
/**
* repeated .waves.SignedTransaction transactions = 5;
*/
public com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder addTransactionsBuilder() {
return getTransactionsFieldBuilder().addBuilder(
com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.getDefaultInstance());
}
/**
* repeated .waves.SignedTransaction transactions = 5;
*/
public com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder addTransactionsBuilder(
int index) {
return getTransactionsFieldBuilder().addBuilder(
index, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.getDefaultInstance());
}
/**
* repeated .waves.SignedTransaction transactions = 5;
*/
public java.util.List
getTransactionsBuilderList() {
return getTransactionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransactionOrBuilder>
getTransactionsFieldBuilder() {
if (transactionsBuilder_ == null) {
transactionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransactionOrBuilder>(
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:waves.MicroBlock)
}
// @@protoc_insertion_point(class_scope:waves.MicroBlock)
private static final com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock();
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MicroBlock parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MicroBlock(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 com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SignedMicroBlockOrBuilder extends
// @@protoc_insertion_point(interface_extends:waves.SignedMicroBlock)
com.google.protobuf.MessageOrBuilder {
/**
* .waves.MicroBlock micro_block = 1;
* @return Whether the microBlock field is set.
*/
boolean hasMicroBlock();
/**
* .waves.MicroBlock micro_block = 1;
* @return The microBlock.
*/
com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock getMicroBlock();
/**
* .waves.MicroBlock micro_block = 1;
*/
com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlockOrBuilder getMicroBlockOrBuilder();
/**
* bytes signature = 2;
* @return The signature.
*/
com.google.protobuf.ByteString getSignature();
/**
* bytes total_block_id = 3;
* @return The totalBlockId.
*/
com.google.protobuf.ByteString getTotalBlockId();
}
/**
* Protobuf type {@code waves.SignedMicroBlock}
*/
public static final class SignedMicroBlock extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:waves.SignedMicroBlock)
SignedMicroBlockOrBuilder {
private static final long serialVersionUID = 0L;
// Use SignedMicroBlock.newBuilder() to construct.
private SignedMicroBlock(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SignedMicroBlock() {
signature_ = com.google.protobuf.ByteString.EMPTY;
totalBlockId_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SignedMicroBlock();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SignedMicroBlock(
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: {
com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock.Builder subBuilder = null;
if (microBlock_ != null) {
subBuilder = microBlock_.toBuilder();
}
microBlock_ = input.readMessage(com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(microBlock_);
microBlock_ = subBuilder.buildPartial();
}
break;
}
case 18: {
signature_ = input.readBytes();
break;
}
case 26: {
totalBlockId_ = input.readBytes();
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 com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_SignedMicroBlock_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_SignedMicroBlock_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock.class, com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock.Builder.class);
}
public static final int MICRO_BLOCK_FIELD_NUMBER = 1;
private com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock microBlock_;
/**
* .waves.MicroBlock micro_block = 1;
* @return Whether the microBlock field is set.
*/
public boolean hasMicroBlock() {
return microBlock_ != null;
}
/**
* .waves.MicroBlock micro_block = 1;
* @return The microBlock.
*/
public com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock getMicroBlock() {
return microBlock_ == null ? com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock.getDefaultInstance() : microBlock_;
}
/**
* .waves.MicroBlock micro_block = 1;
*/
public com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlockOrBuilder getMicroBlockOrBuilder() {
return getMicroBlock();
}
public static final int SIGNATURE_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString signature_;
/**
* bytes signature = 2;
* @return The signature.
*/
public com.google.protobuf.ByteString getSignature() {
return signature_;
}
public static final int TOTAL_BLOCK_ID_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString totalBlockId_;
/**
* bytes total_block_id = 3;
* @return The totalBlockId.
*/
public com.google.protobuf.ByteString getTotalBlockId() {
return totalBlockId_;
}
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 (microBlock_ != null) {
output.writeMessage(1, getMicroBlock());
}
if (!signature_.isEmpty()) {
output.writeBytes(2, signature_);
}
if (!totalBlockId_.isEmpty()) {
output.writeBytes(3, totalBlockId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (microBlock_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getMicroBlock());
}
if (!signature_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, signature_);
}
if (!totalBlockId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, totalBlockId_);
}
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 com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock)) {
return super.equals(obj);
}
com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock other = (com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock) obj;
if (hasMicroBlock() != other.hasMicroBlock()) return false;
if (hasMicroBlock()) {
if (!getMicroBlock()
.equals(other.getMicroBlock())) return false;
}
if (!getSignature()
.equals(other.getSignature())) return false;
if (!getTotalBlockId()
.equals(other.getTotalBlockId())) 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 (hasMicroBlock()) {
hash = (37 * hash) + MICRO_BLOCK_FIELD_NUMBER;
hash = (53 * hash) + getMicroBlock().hashCode();
}
hash = (37 * hash) + SIGNATURE_FIELD_NUMBER;
hash = (53 * hash) + getSignature().hashCode();
hash = (37 * hash) + TOTAL_BLOCK_ID_FIELD_NUMBER;
hash = (53 * hash) + getTotalBlockId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock 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 com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock 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 com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock 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(com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock 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 waves.SignedMicroBlock}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:waves.SignedMicroBlock)
com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlockOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_SignedMicroBlock_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_SignedMicroBlock_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock.class, com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock.Builder.class);
}
// Construct using com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock.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 (microBlockBuilder_ == null) {
microBlock_ = null;
} else {
microBlock_ = null;
microBlockBuilder_ = null;
}
signature_ = com.google.protobuf.ByteString.EMPTY;
totalBlockId_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.wavesplatform.protobuf.block.BlockOuterClass.internal_static_waves_SignedMicroBlock_descriptor;
}
@java.lang.Override
public com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock getDefaultInstanceForType() {
return com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock.getDefaultInstance();
}
@java.lang.Override
public com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock build() {
com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock buildPartial() {
com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock result = new com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock(this);
if (microBlockBuilder_ == null) {
result.microBlock_ = microBlock_;
} else {
result.microBlock_ = microBlockBuilder_.build();
}
result.signature_ = signature_;
result.totalBlockId_ = totalBlockId_;
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 com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock) {
return mergeFrom((com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock other) {
if (other == com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock.getDefaultInstance()) return this;
if (other.hasMicroBlock()) {
mergeMicroBlock(other.getMicroBlock());
}
if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) {
setSignature(other.getSignature());
}
if (other.getTotalBlockId() != com.google.protobuf.ByteString.EMPTY) {
setTotalBlockId(other.getTotalBlockId());
}
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 {
com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock microBlock_;
private com.google.protobuf.SingleFieldBuilderV3<
com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock, com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock.Builder, com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlockOrBuilder> microBlockBuilder_;
/**
* .waves.MicroBlock micro_block = 1;
* @return Whether the microBlock field is set.
*/
public boolean hasMicroBlock() {
return microBlockBuilder_ != null || microBlock_ != null;
}
/**
* .waves.MicroBlock micro_block = 1;
* @return The microBlock.
*/
public com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock getMicroBlock() {
if (microBlockBuilder_ == null) {
return microBlock_ == null ? com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock.getDefaultInstance() : microBlock_;
} else {
return microBlockBuilder_.getMessage();
}
}
/**
* .waves.MicroBlock micro_block = 1;
*/
public Builder setMicroBlock(com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock value) {
if (microBlockBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
microBlock_ = value;
onChanged();
} else {
microBlockBuilder_.setMessage(value);
}
return this;
}
/**
* .waves.MicroBlock micro_block = 1;
*/
public Builder setMicroBlock(
com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock.Builder builderForValue) {
if (microBlockBuilder_ == null) {
microBlock_ = builderForValue.build();
onChanged();
} else {
microBlockBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .waves.MicroBlock micro_block = 1;
*/
public Builder mergeMicroBlock(com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock value) {
if (microBlockBuilder_ == null) {
if (microBlock_ != null) {
microBlock_ =
com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock.newBuilder(microBlock_).mergeFrom(value).buildPartial();
} else {
microBlock_ = value;
}
onChanged();
} else {
microBlockBuilder_.mergeFrom(value);
}
return this;
}
/**
* .waves.MicroBlock micro_block = 1;
*/
public Builder clearMicroBlock() {
if (microBlockBuilder_ == null) {
microBlock_ = null;
onChanged();
} else {
microBlock_ = null;
microBlockBuilder_ = null;
}
return this;
}
/**
* .waves.MicroBlock micro_block = 1;
*/
public com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock.Builder getMicroBlockBuilder() {
onChanged();
return getMicroBlockFieldBuilder().getBuilder();
}
/**
* .waves.MicroBlock micro_block = 1;
*/
public com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlockOrBuilder getMicroBlockOrBuilder() {
if (microBlockBuilder_ != null) {
return microBlockBuilder_.getMessageOrBuilder();
} else {
return microBlock_ == null ?
com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock.getDefaultInstance() : microBlock_;
}
}
/**
* .waves.MicroBlock micro_block = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock, com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock.Builder, com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlockOrBuilder>
getMicroBlockFieldBuilder() {
if (microBlockBuilder_ == null) {
microBlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock, com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlock.Builder, com.wavesplatform.protobuf.block.BlockOuterClass.MicroBlockOrBuilder>(
getMicroBlock(),
getParentForChildren(),
isClean());
microBlock_ = null;
}
return microBlockBuilder_;
}
private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes signature = 2;
* @return The signature.
*/
public com.google.protobuf.ByteString getSignature() {
return signature_;
}
/**
* bytes signature = 2;
* @param value The signature to set.
* @return This builder for chaining.
*/
public Builder setSignature(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
signature_ = value;
onChanged();
return this;
}
/**
* bytes signature = 2;
* @return This builder for chaining.
*/
public Builder clearSignature() {
signature_ = getDefaultInstance().getSignature();
onChanged();
return this;
}
private com.google.protobuf.ByteString totalBlockId_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes total_block_id = 3;
* @return The totalBlockId.
*/
public com.google.protobuf.ByteString getTotalBlockId() {
return totalBlockId_;
}
/**
* bytes total_block_id = 3;
* @param value The totalBlockId to set.
* @return This builder for chaining.
*/
public Builder setTotalBlockId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
totalBlockId_ = value;
onChanged();
return this;
}
/**
* bytes total_block_id = 3;
* @return This builder for chaining.
*/
public Builder clearTotalBlockId() {
totalBlockId_ = getDefaultInstance().getTotalBlockId();
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:waves.SignedMicroBlock)
}
// @@protoc_insertion_point(class_scope:waves.SignedMicroBlock)
private static final com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock();
}
public static com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SignedMicroBlock parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SignedMicroBlock(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 com.wavesplatform.protobuf.block.BlockOuterClass.SignedMicroBlock getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_waves_Block_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_waves_Block_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_waves_Block_Header_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_waves_Block_Header_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_waves_MicroBlock_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_waves_MicroBlock_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_waves_SignedMicroBlock_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_waves_SignedMicroBlock_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\021waves/block.proto\022\005waves\032\027waves/transa" +
"ction.proto\"\320\002\n\005Block\022#\n\006header\030\001 \001(\0132\023." +
"waves.Block.Header\022\021\n\tsignature\030\002 \001(\014\022.\n" +
"\014transactions\030\003 \003(\0132\030.waves.SignedTransa" +
"ction\032\336\001\n\006Header\022\020\n\010chain_id\030\001 \001(\005\022\021\n\tre" +
"ference\030\002 \001(\014\022\023\n\013base_target\030\003 \001(\003\022\034\n\024ge" +
"neration_signature\030\004 \001(\014\022\025\n\rfeature_vote" +
"s\030\005 \003(\r\022\021\n\ttimestamp\030\006 \001(\003\022\017\n\007version\030\007 " +
"\001(\005\022\021\n\tgenerator\030\010 \001(\014\022\023\n\013reward_vote\030\t " +
"\001(\003\022\031\n\021transactions_root\030\n \001(\014\"\234\001\n\nMicro" +
"Block\022\017\n\007version\030\001 \001(\005\022\021\n\treference\030\002 \001(" +
"\014\022\037\n\027updated_block_signature\030\003 \001(\014\022\031\n\021se" +
"nder_public_key\030\004 \001(\014\022.\n\014transactions\030\005 " +
"\003(\0132\030.waves.SignedTransaction\"e\n\020SignedM" +
"icroBlock\022&\n\013micro_block\030\001 \001(\0132\021.waves.M" +
"icroBlock\022\021\n\tsignature\030\002 \001(\014\022\026\n\016total_bl" +
"ock_id\030\003 \001(\014Be\n com.wavesplatform.protob" +
"uf.blockZ9github.com/wavesplatform/gowav" +
"es/pkg/grpc/generated/waves\252\002\005Wavesb\006pro" +
"to3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.wavesplatform.protobuf.transaction.TransactionOuterClass.getDescriptor(),
});
internal_static_waves_Block_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_waves_Block_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_waves_Block_descriptor,
new java.lang.String[] { "Header", "Signature", "Transactions", });
internal_static_waves_Block_Header_descriptor =
internal_static_waves_Block_descriptor.getNestedTypes().get(0);
internal_static_waves_Block_Header_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_waves_Block_Header_descriptor,
new java.lang.String[] { "ChainId", "Reference", "BaseTarget", "GenerationSignature", "FeatureVotes", "Timestamp", "Version", "Generator", "RewardVote", "TransactionsRoot", });
internal_static_waves_MicroBlock_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_waves_MicroBlock_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_waves_MicroBlock_descriptor,
new java.lang.String[] { "Version", "Reference", "UpdatedBlockSignature", "SenderPublicKey", "Transactions", });
internal_static_waves_SignedMicroBlock_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_waves_SignedMicroBlock_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_waves_SignedMicroBlock_descriptor,
new java.lang.String[] { "MicroBlock", "Signature", "TotalBlockId", });
com.wavesplatform.protobuf.transaction.TransactionOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}