// Generated by the protocol buffer compiler. DO NOT EDIT! // source: proto/kraken.proto package jelectrum.proto; public final class Kraken { private Kraken() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } public interface ProtoBlockSummaryOrBuilder extends // @@protoc_insertion_point(interface_extends:jelectrum.proto.ProtoBlockSummary) com.google.protobuf.MessageOrBuilder { /** * <code>optional int32 height = 1;</code> */ int getHeight(); /** * <code>optional string block_hash = 2;</code> */ java.lang.String getBlockHash(); /** * <code>optional string block_hash = 2;</code> */ com.google.protobuf.ByteString getBlockHashBytes(); /** * <code>map<string, .jelectrum.proto.ProtoTxSummary> tx = 3;</code> */ java.util.Map<java.lang.String, jelectrum.proto.Kraken.ProtoTxSummary> getTx(); } /** * Protobuf type {@code jelectrum.proto.ProtoBlockSummary} */ public static final class ProtoBlockSummary extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:jelectrum.proto.ProtoBlockSummary) ProtoBlockSummaryOrBuilder { // Use ProtoBlockSummary.newBuilder() to construct. private ProtoBlockSummary(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); } private ProtoBlockSummary() { height_ = 0; blockHash_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ProtoBlockSummary( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { height_ = input.readInt32(); break; } case 18: { String s = input.readStringRequireUtf8(); blockHash_ = s; break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { tx_ = com.google.protobuf.MapField.newMapField( TxDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000004; } com.google.protobuf.MapEntry<java.lang.String, jelectrum.proto.Kraken.ProtoTxSummary> tx = input.readMessage( TxDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); tx_.getMutableMap().put(tx.getKey(), tx.getValue()); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return jelectrum.proto.Kraken.internal_static_jelectrum_proto_ProtoBlockSummary_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: return internalGetTx(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return jelectrum.proto.Kraken.internal_static_jelectrum_proto_ProtoBlockSummary_fieldAccessorTable .ensureFieldAccessorsInitialized( jelectrum.proto.Kraken.ProtoBlockSummary.class, jelectrum.proto.Kraken.ProtoBlockSummary.Builder.class); } private int bitField0_; public static final int HEIGHT_FIELD_NUMBER = 1; private int height_; /** * <code>optional int32 height = 1;</code> */ public int getHeight() { return height_; } public static final int BLOCK_HASH_FIELD_NUMBER = 2; private volatile java.lang.Object blockHash_; /** * <code>optional string block_hash = 2;</code> */ public java.lang.String getBlockHash() { java.lang.Object ref = blockHash_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); blockHash_ = s; return s; } } /** * <code>optional string block_hash = 2;</code> */ public com.google.protobuf.ByteString getBlockHashBytes() { java.lang.Object ref = blockHash_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); blockHash_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TX_FIELD_NUMBER = 3; private static final class TxDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, jelectrum.proto.Kraken.ProtoTxSummary> defaultEntry = com.google.protobuf.MapEntry .<java.lang.String, jelectrum.proto.Kraken.ProtoTxSummary>newDefaultInstance( jelectrum.proto.Kraken.internal_static_jelectrum_proto_ProtoBlockSummary_TxEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, jelectrum.proto.Kraken.ProtoTxSummary.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, jelectrum.proto.Kraken.ProtoTxSummary> tx_; private com.google.protobuf.MapField<java.lang.String, jelectrum.proto.Kraken.ProtoTxSummary> internalGetTx() { if (tx_ == null) { return com.google.protobuf.MapField.emptyMapField( TxDefaultEntryHolder.defaultEntry); } return tx_; } /** * <code>map<string, .jelectrum.proto.ProtoTxSummary> tx = 3;</code> */ public java.util.Map<java.lang.String, jelectrum.proto.Kraken.ProtoTxSummary> getTx() { return internalGetTx().getMap(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (height_ != 0) { output.writeInt32(1, height_); } if (!getBlockHashBytes().isEmpty()) { com.google.protobuf.GeneratedMessage.writeString(output, 2, blockHash_); } for (java.util.Map.Entry<java.lang.String, jelectrum.proto.Kraken.ProtoTxSummary> entry : internalGetTx().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, jelectrum.proto.Kraken.ProtoTxSummary> tx = TxDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); output.writeMessage(3, tx); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (height_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, height_); } if (!getBlockHashBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, blockHash_); } for (java.util.Map.Entry<java.lang.String, jelectrum.proto.Kraken.ProtoTxSummary> entry : internalGetTx().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, jelectrum.proto.Kraken.ProtoTxSummary> tx = TxDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, tx); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static jelectrum.proto.Kraken.ProtoBlockSummary parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static jelectrum.proto.Kraken.ProtoBlockSummary parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static jelectrum.proto.Kraken.ProtoBlockSummary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static jelectrum.proto.Kraken.ProtoBlockSummary parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static jelectrum.proto.Kraken.ProtoBlockSummary parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static jelectrum.proto.Kraken.ProtoBlockSummary parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static jelectrum.proto.Kraken.ProtoBlockSummary parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static jelectrum.proto.Kraken.ProtoBlockSummary parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static jelectrum.proto.Kraken.ProtoBlockSummary parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static jelectrum.proto.Kraken.ProtoBlockSummary parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(jelectrum.proto.Kraken.ProtoBlockSummary prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code jelectrum.proto.ProtoBlockSummary} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:jelectrum.proto.ProtoBlockSummary) jelectrum.proto.Kraken.ProtoBlockSummaryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return jelectrum.proto.Kraken.internal_static_jelectrum_proto_ProtoBlockSummary_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: return internalGetTx(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 3: return internalGetMutableTx(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return jelectrum.proto.Kraken.internal_static_jelectrum_proto_ProtoBlockSummary_fieldAccessorTable .ensureFieldAccessorsInitialized( jelectrum.proto.Kraken.ProtoBlockSummary.class, jelectrum.proto.Kraken.ProtoBlockSummary.Builder.class); } // Construct using jelectrum.proto.Kraken.ProtoBlockSummary.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); height_ = 0; blockHash_ = ""; internalGetMutableTx().clear(); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return jelectrum.proto.Kraken.internal_static_jelectrum_proto_ProtoBlockSummary_descriptor; } public jelectrum.proto.Kraken.ProtoBlockSummary getDefaultInstanceForType() { return jelectrum.proto.Kraken.ProtoBlockSummary.getDefaultInstance(); } public jelectrum.proto.Kraken.ProtoBlockSummary build() { jelectrum.proto.Kraken.ProtoBlockSummary result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public jelectrum.proto.Kraken.ProtoBlockSummary buildPartial() { jelectrum.proto.Kraken.ProtoBlockSummary result = new jelectrum.proto.Kraken.ProtoBlockSummary(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.height_ = height_; result.blockHash_ = blockHash_; result.tx_ = internalGetTx(); result.tx_.makeImmutable(); result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof jelectrum.proto.Kraken.ProtoBlockSummary) { return mergeFrom((jelectrum.proto.Kraken.ProtoBlockSummary)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(jelectrum.proto.Kraken.ProtoBlockSummary other) { if (other == jelectrum.proto.Kraken.ProtoBlockSummary.getDefaultInstance()) return this; if (other.getHeight() != 0) { setHeight(other.getHeight()); } if (!other.getBlockHash().isEmpty()) { blockHash_ = other.blockHash_; onChanged(); } internalGetMutableTx().mergeFrom( other.internalGetTx()); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { jelectrum.proto.Kraken.ProtoBlockSummary parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (jelectrum.proto.Kraken.ProtoBlockSummary) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int height_ ; /** * <code>optional int32 height = 1;</code> */ public int getHeight() { return height_; } /** * <code>optional int32 height = 1;</code> */ public Builder setHeight(int value) { height_ = value; onChanged(); return this; } /** * <code>optional int32 height = 1;</code> */ public Builder clearHeight() { height_ = 0; onChanged(); return this; } private java.lang.Object blockHash_ = ""; /** * <code>optional string block_hash = 2;</code> */ public java.lang.String getBlockHash() { java.lang.Object ref = blockHash_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); blockHash_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string block_hash = 2;</code> */ public com.google.protobuf.ByteString getBlockHashBytes() { java.lang.Object ref = blockHash_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); blockHash_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string block_hash = 2;</code> */ public Builder setBlockHash( java.lang.String value) { if (value == null) { throw new NullPointerException(); } blockHash_ = value; onChanged(); return this; } /** * <code>optional string block_hash = 2;</code> */ public Builder clearBlockHash() { blockHash_ = getDefaultInstance().getBlockHash(); onChanged(); return this; } /** * <code>optional string block_hash = 2;</code> */ public Builder setBlockHashBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); blockHash_ = value; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, jelectrum.proto.Kraken.ProtoTxSummary> tx_; private com.google.protobuf.MapField<java.lang.String, jelectrum.proto.Kraken.ProtoTxSummary> internalGetTx() { if (tx_ == null) { return com.google.protobuf.MapField.emptyMapField( TxDefaultEntryHolder.defaultEntry); } return tx_; } private com.google.protobuf.MapField<java.lang.String, jelectrum.proto.Kraken.ProtoTxSummary> internalGetMutableTx() { onChanged();; if (tx_ == null) { tx_ = com.google.protobuf.MapField.newMapField( TxDefaultEntryHolder.defaultEntry); } if (!tx_.isMutable()) { tx_ = tx_.copy(); } return tx_; } /** * <code>map<string, .jelectrum.proto.ProtoTxSummary> tx = 3;</code> */ public java.util.Map<java.lang.String, jelectrum.proto.Kraken.ProtoTxSummary> getTx() { return internalGetTx().getMap(); } /** * <code>map<string, .jelectrum.proto.ProtoTxSummary> tx = 3;</code> */ public java.util.Map<java.lang.String, jelectrum.proto.Kraken.ProtoTxSummary> getMutableTx() { return internalGetMutableTx().getMutableMap(); } /** * <code>map<string, .jelectrum.proto.ProtoTxSummary> tx = 3;</code> */ public Builder putAllTx( java.util.Map<java.lang.String, jelectrum.proto.Kraken.ProtoTxSummary> values) { getMutableTx().putAll(values); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:jelectrum.proto.ProtoBlockSummary) } // @@protoc_insertion_point(class_scope:jelectrum.proto.ProtoBlockSummary) private static final jelectrum.proto.Kraken.ProtoBlockSummary DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new jelectrum.proto.Kraken.ProtoBlockSummary(); } public static jelectrum.proto.Kraken.ProtoBlockSummary getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<ProtoBlockSummary> PARSER = new com.google.protobuf.AbstractParser<ProtoBlockSummary>() { public ProtoBlockSummary parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { return new ProtoBlockSummary(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { throw (com.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static com.google.protobuf.Parser<ProtoBlockSummary> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<ProtoBlockSummary> getParserForType() { return PARSER; } public jelectrum.proto.Kraken.ProtoBlockSummary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ProtoTxSummaryOrBuilder extends // @@protoc_insertion_point(interface_extends:jelectrum.proto.ProtoTxSummary) com.google.protobuf.MessageOrBuilder { /** * <code>optional string tx_hash = 1;</code> */ java.lang.String getTxHash(); /** * <code>optional string tx_hash = 1;</code> */ com.google.protobuf.ByteString getTxHashBytes(); /** * <code>repeated string involved_address = 2;</code> */ com.google.protobuf.ProtocolStringList getInvolvedAddressList(); /** * <code>repeated string involved_address = 2;</code> */ int getInvolvedAddressCount(); /** * <code>repeated string involved_address = 2;</code> */ java.lang.String getInvolvedAddress(int index); /** * <code>repeated string involved_address = 2;</code> */ com.google.protobuf.ByteString getInvolvedAddressBytes(int index); /** * <code>map<int32, .jelectrum.proto.ProtoTxInSummary> in = 3;</code> */ java.util.Map<java.lang.Integer, jelectrum.proto.Kraken.ProtoTxInSummary> getIn(); /** * <code>map<int32, .jelectrum.proto.ProtoTxOutSummary> out = 4;</code> */ java.util.Map<java.lang.Integer, jelectrum.proto.Kraken.ProtoTxOutSummary> getOut(); } /** * Protobuf type {@code jelectrum.proto.ProtoTxSummary} */ public static final class ProtoTxSummary extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:jelectrum.proto.ProtoTxSummary) ProtoTxSummaryOrBuilder { // Use ProtoTxSummary.newBuilder() to construct. private ProtoTxSummary(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); } private ProtoTxSummary() { txHash_ = ""; involvedAddress_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ProtoTxSummary( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { String s = input.readStringRequireUtf8(); txHash_ = s; break; } case 18: { String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { involvedAddress_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } involvedAddress_.add(s); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { in_ = com.google.protobuf.MapField.newMapField( InDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000004; } com.google.protobuf.MapEntry<java.lang.Integer, jelectrum.proto.Kraken.ProtoTxInSummary> in = input.readMessage( InDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); in_.getMutableMap().put(in.getKey(), in.getValue()); break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { out_ = com.google.protobuf.MapField.newMapField( OutDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000008; } com.google.protobuf.MapEntry<java.lang.Integer, jelectrum.proto.Kraken.ProtoTxOutSummary> out = input.readMessage( OutDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); out_.getMutableMap().put(out.getKey(), out.getValue()); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { involvedAddress_ = involvedAddress_.getUnmodifiableView(); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return jelectrum.proto.Kraken.internal_static_jelectrum_proto_ProtoTxSummary_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: return internalGetIn(); case 4: return internalGetOut(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return jelectrum.proto.Kraken.internal_static_jelectrum_proto_ProtoTxSummary_fieldAccessorTable .ensureFieldAccessorsInitialized( jelectrum.proto.Kraken.ProtoTxSummary.class, jelectrum.proto.Kraken.ProtoTxSummary.Builder.class); } private int bitField0_; public static final int TX_HASH_FIELD_NUMBER = 1; private volatile java.lang.Object txHash_; /** * <code>optional string tx_hash = 1;</code> */ public java.lang.String getTxHash() { java.lang.Object ref = txHash_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); txHash_ = s; return s; } } /** * <code>optional string tx_hash = 1;</code> */ public com.google.protobuf.ByteString getTxHashBytes() { java.lang.Object ref = txHash_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); txHash_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INVOLVED_ADDRESS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList involvedAddress_; /** * <code>repeated string involved_address = 2;</code> */ public com.google.protobuf.ProtocolStringList getInvolvedAddressList() { return involvedAddress_; } /** * <code>repeated string involved_address = 2;</code> */ public int getInvolvedAddressCount() { return involvedAddress_.size(); } /** * <code>repeated string involved_address = 2;</code> */ public java.lang.String getInvolvedAddress(int index) { return involvedAddress_.get(index); } /** * <code>repeated string involved_address = 2;</code> */ public com.google.protobuf.ByteString getInvolvedAddressBytes(int index) { return involvedAddress_.getByteString(index); } public static final int IN_FIELD_NUMBER = 3; private static final class InDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Integer, jelectrum.proto.Kraken.ProtoTxInSummary> defaultEntry = com.google.protobuf.MapEntry .<java.lang.Integer, jelectrum.proto.Kraken.ProtoTxInSummary>newDefaultInstance( jelectrum.proto.Kraken.internal_static_jelectrum_proto_ProtoTxSummary_InEntry_descriptor, com.google.protobuf.WireFormat.FieldType.INT32, 0, com.google.protobuf.WireFormat.FieldType.MESSAGE, jelectrum.proto.Kraken.ProtoTxInSummary.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.Integer, jelectrum.proto.Kraken.ProtoTxInSummary> in_; private com.google.protobuf.MapField<java.lang.Integer, jelectrum.proto.Kraken.ProtoTxInSummary> internalGetIn() { if (in_ == null) { return com.google.protobuf.MapField.emptyMapField( InDefaultEntryHolder.defaultEntry); } return in_; } /** * <code>map<int32, .jelectrum.proto.ProtoTxInSummary> in = 3;</code> */ public java.util.Map<java.lang.Integer, jelectrum.proto.Kraken.ProtoTxInSummary> getIn() { return internalGetIn().getMap(); } public static final int OUT_FIELD_NUMBER = 4; private static final class OutDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Integer, jelectrum.proto.Kraken.ProtoTxOutSummary> defaultEntry = com.google.protobuf.MapEntry .<java.lang.Integer, jelectrum.proto.Kraken.ProtoTxOutSummary>newDefaultInstance( jelectrum.proto.Kraken.internal_static_jelectrum_proto_ProtoTxSummary_OutEntry_descriptor, com.google.protobuf.WireFormat.FieldType.INT32, 0, com.google.protobuf.WireFormat.FieldType.MESSAGE, jelectrum.proto.Kraken.ProtoTxOutSummary.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.Integer, jelectrum.proto.Kraken.ProtoTxOutSummary> out_; private com.google.protobuf.MapField<java.lang.Integer, jelectrum.proto.Kraken.ProtoTxOutSummary> internalGetOut() { if (out_ == null) { return com.google.protobuf.MapField.emptyMapField( OutDefaultEntryHolder.defaultEntry); } return out_; } /** * <code>map<int32, .jelectrum.proto.ProtoTxOutSummary> out = 4;</code> */ public java.util.Map<java.lang.Integer, jelectrum.proto.Kraken.ProtoTxOutSummary> getOut() { return internalGetOut().getMap(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getTxHashBytes().isEmpty()) { com.google.protobuf.GeneratedMessage.writeString(output, 1, txHash_); } for (int i = 0; i < involvedAddress_.size(); i++) { com.google.protobuf.GeneratedMessage.writeString(output, 2, involvedAddress_.getRaw(i)); } for (java.util.Map.Entry<java.lang.Integer, jelectrum.proto.Kraken.ProtoTxInSummary> entry : internalGetIn().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.Integer, jelectrum.proto.Kraken.ProtoTxInSummary> in = InDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); output.writeMessage(3, in); } for (java.util.Map.Entry<java.lang.Integer, jelectrum.proto.Kraken.ProtoTxOutSummary> entry : internalGetOut().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.Integer, jelectrum.proto.Kraken.ProtoTxOutSummary> out = OutDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); output.writeMessage(4, out); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getTxHashBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, txHash_); } { int dataSize = 0; for (int i = 0; i < involvedAddress_.size(); i++) { dataSize += computeStringSizeNoTag(involvedAddress_.getRaw(i)); } size += dataSize; size += 1 * getInvolvedAddressList().size(); } for (java.util.Map.Entry<java.lang.Integer, jelectrum.proto.Kraken.ProtoTxInSummary> entry : internalGetIn().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.Integer, jelectrum.proto.Kraken.ProtoTxInSummary> in = InDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, in); } for (java.util.Map.Entry<java.lang.Integer, jelectrum.proto.Kraken.ProtoTxOutSummary> entry : internalGetOut().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.Integer, jelectrum.proto.Kraken.ProtoTxOutSummary> out = OutDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, out); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static jelectrum.proto.Kraken.ProtoTxSummary parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static jelectrum.proto.Kraken.ProtoTxSummary parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static jelectrum.proto.Kraken.ProtoTxSummary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static jelectrum.proto.Kraken.ProtoTxSummary parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static jelectrum.proto.Kraken.ProtoTxSummary parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static jelectrum.proto.Kraken.ProtoTxSummary parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static jelectrum.proto.Kraken.ProtoTxSummary parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static jelectrum.proto.Kraken.ProtoTxSummary parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static jelectrum.proto.Kraken.ProtoTxSummary parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static jelectrum.proto.Kraken.ProtoTxSummary parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(jelectrum.proto.Kraken.ProtoTxSummary prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code jelectrum.proto.ProtoTxSummary} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:jelectrum.proto.ProtoTxSummary) jelectrum.proto.Kraken.ProtoTxSummaryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return jelectrum.proto.Kraken.internal_static_jelectrum_proto_ProtoTxSummary_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: return internalGetIn(); case 4: return internalGetOut(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 3: return internalGetMutableIn(); case 4: return internalGetMutableOut(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return jelectrum.proto.Kraken.internal_static_jelectrum_proto_ProtoTxSummary_fieldAccessorTable .ensureFieldAccessorsInitialized( jelectrum.proto.Kraken.ProtoTxSummary.class, jelectrum.proto.Kraken.ProtoTxSummary.Builder.class); } // Construct using jelectrum.proto.Kraken.ProtoTxSummary.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); txHash_ = ""; involvedAddress_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); internalGetMutableIn().clear(); internalGetMutableOut().clear(); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return jelectrum.proto.Kraken.internal_static_jelectrum_proto_ProtoTxSummary_descriptor; } public jelectrum.proto.Kraken.ProtoTxSummary getDefaultInstanceForType() { return jelectrum.proto.Kraken.ProtoTxSummary.getDefaultInstance(); } public jelectrum.proto.Kraken.ProtoTxSummary build() { jelectrum.proto.Kraken.ProtoTxSummary result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public jelectrum.proto.Kraken.ProtoTxSummary buildPartial() { jelectrum.proto.Kraken.ProtoTxSummary result = new jelectrum.proto.Kraken.ProtoTxSummary(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.txHash_ = txHash_; if (((bitField0_ & 0x00000002) == 0x00000002)) { involvedAddress_ = involvedAddress_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.involvedAddress_ = involvedAddress_; result.in_ = internalGetIn(); result.in_.makeImmutable(); result.out_ = internalGetOut(); result.out_.makeImmutable(); result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof jelectrum.proto.Kraken.ProtoTxSummary) { return mergeFrom((jelectrum.proto.Kraken.ProtoTxSummary)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(jelectrum.proto.Kraken.ProtoTxSummary other) { if (other == jelectrum.proto.Kraken.ProtoTxSummary.getDefaultInstance()) return this; if (!other.getTxHash().isEmpty()) { txHash_ = other.txHash_; onChanged(); } if (!other.involvedAddress_.isEmpty()) { if (involvedAddress_.isEmpty()) { involvedAddress_ = other.involvedAddress_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureInvolvedAddressIsMutable(); involvedAddress_.addAll(other.involvedAddress_); } onChanged(); } internalGetMutableIn().mergeFrom( other.internalGetIn()); internalGetMutableOut().mergeFrom( other.internalGetOut()); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { jelectrum.proto.Kraken.ProtoTxSummary parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (jelectrum.proto.Kraken.ProtoTxSummary) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object txHash_ = ""; /** * <code>optional string tx_hash = 1;</code> */ public java.lang.String getTxHash() { java.lang.Object ref = txHash_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); txHash_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string tx_hash = 1;</code> */ public com.google.protobuf.ByteString getTxHashBytes() { java.lang.Object ref = txHash_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); txHash_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string tx_hash = 1;</code> */ public Builder setTxHash( java.lang.String value) { if (value == null) { throw new NullPointerException(); } txHash_ = value; onChanged(); return this; } /** * <code>optional string tx_hash = 1;</code> */ public Builder clearTxHash() { txHash_ = getDefaultInstance().getTxHash(); onChanged(); return this; } /** * <code>optional string tx_hash = 1;</code> */ public Builder setTxHashBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); txHash_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList involvedAddress_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureInvolvedAddressIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { involvedAddress_ = new com.google.protobuf.LazyStringArrayList(involvedAddress_); bitField0_ |= 0x00000002; } } /** * <code>repeated string involved_address = 2;</code> */ public com.google.protobuf.ProtocolStringList getInvolvedAddressList() { return involvedAddress_.getUnmodifiableView(); } /** * <code>repeated string involved_address = 2;</code> */ public int getInvolvedAddressCount() { return involvedAddress_.size(); } /** * <code>repeated string involved_address = 2;</code> */ public java.lang.String getInvolvedAddress(int index) { return involvedAddress_.get(index); } /** * <code>repeated string involved_address = 2;</code> */ public com.google.protobuf.ByteString getInvolvedAddressBytes(int index) { return involvedAddress_.getByteString(index); } /** * <code>repeated string involved_address = 2;</code> */ public Builder setInvolvedAddress( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureInvolvedAddressIsMutable(); involvedAddress_.set(index, value); onChanged(); return this; } /** * <code>repeated string involved_address = 2;</code> */ public Builder addInvolvedAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureInvolvedAddressIsMutable(); involvedAddress_.add(value); onChanged(); return this; } /** * <code>repeated string involved_address = 2;</code> */ public Builder addAllInvolvedAddress( java.lang.Iterable<java.lang.String> values) { ensureInvolvedAddressIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, involvedAddress_); onChanged(); return this; } /** * <code>repeated string involved_address = 2;</code> */ public Builder clearInvolvedAddress() { involvedAddress_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * <code>repeated string involved_address = 2;</code> */ public Builder addInvolvedAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureInvolvedAddressIsMutable(); involvedAddress_.add(value); onChanged(); return this; } private com.google.protobuf.MapField< java.lang.Integer, jelectrum.proto.Kraken.ProtoTxInSummary> in_; private com.google.protobuf.MapField<java.lang.Integer, jelectrum.proto.Kraken.ProtoTxInSummary> internalGetIn() { if (in_ == null) { return com.google.protobuf.MapField.emptyMapField( InDefaultEntryHolder.defaultEntry); } return in_; } private com.google.protobuf.MapField<java.lang.Integer, jelectrum.proto.Kraken.ProtoTxInSummary> internalGetMutableIn() { onChanged();; if (in_ == null) { in_ = com.google.protobuf.MapField.newMapField( InDefaultEntryHolder.defaultEntry); } if (!in_.isMutable()) { in_ = in_.copy(); } return in_; } /** * <code>map<int32, .jelectrum.proto.ProtoTxInSummary> in = 3;</code> */ public java.util.Map<java.lang.Integer, jelectrum.proto.Kraken.ProtoTxInSummary> getIn() { return internalGetIn().getMap(); } /** * <code>map<int32, .jelectrum.proto.ProtoTxInSummary> in = 3;</code> */ public java.util.Map<java.lang.Integer, jelectrum.proto.Kraken.ProtoTxInSummary> getMutableIn() { return internalGetMutableIn().getMutableMap(); } /** * <code>map<int32, .jelectrum.proto.ProtoTxInSummary> in = 3;</code> */ public Builder putAllIn( java.util.Map<java.lang.Integer, jelectrum.proto.Kraken.ProtoTxInSummary> values) { getMutableIn().putAll(values); return this; } private com.google.protobuf.MapField< java.lang.Integer, jelectrum.proto.Kraken.ProtoTxOutSummary> out_; private com.google.protobuf.MapField<java.lang.Integer, jelectrum.proto.Kraken.ProtoTxOutSummary> internalGetOut() { if (out_ == null) { return com.google.protobuf.MapField.emptyMapField( OutDefaultEntryHolder.defaultEntry); } return out_; } private com.google.protobuf.MapField<java.lang.Integer, jelectrum.proto.Kraken.ProtoTxOutSummary> internalGetMutableOut() { onChanged();; if (out_ == null) { out_ = com.google.protobuf.MapField.newMapField( OutDefaultEntryHolder.defaultEntry); } if (!out_.isMutable()) { out_ = out_.copy(); } return out_; } /** * <code>map<int32, .jelectrum.proto.ProtoTxOutSummary> out = 4;</code> */ public java.util.Map<java.lang.Integer, jelectrum.proto.Kraken.ProtoTxOutSummary> getOut() { return internalGetOut().getMap(); } /** * <code>map<int32, .jelectrum.proto.ProtoTxOutSummary> out = 4;</code> */ public java.util.Map<java.lang.Integer, jelectrum.proto.Kraken.ProtoTxOutSummary> getMutableOut() { return internalGetMutableOut().getMutableMap(); } /** * <code>map<int32, .jelectrum.proto.ProtoTxOutSummary> out = 4;</code> */ public Builder putAllOut( java.util.Map<java.lang.Integer, jelectrum.proto.Kraken.ProtoTxOutSummary> values) { getMutableOut().putAll(values); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:jelectrum.proto.ProtoTxSummary) } // @@protoc_insertion_point(class_scope:jelectrum.proto.ProtoTxSummary) private static final jelectrum.proto.Kraken.ProtoTxSummary DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new jelectrum.proto.Kraken.ProtoTxSummary(); } public static jelectrum.proto.Kraken.ProtoTxSummary getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<ProtoTxSummary> PARSER = new com.google.protobuf.AbstractParser<ProtoTxSummary>() { public ProtoTxSummary parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { return new ProtoTxSummary(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { throw (com.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static com.google.protobuf.Parser<ProtoTxSummary> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<ProtoTxSummary> getParserForType() { return PARSER; } public jelectrum.proto.Kraken.ProtoTxSummary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ProtoTxInSummaryOrBuilder extends // @@protoc_insertion_point(interface_extends:jelectrum.proto.ProtoTxInSummary) com.google.protobuf.MessageOrBuilder { /** * <code>optional int32 index = 1;</code> */ int getIndex(); /** * <code>optional bool is_coinbase = 2;</code> */ boolean getIsCoinbase(); /** * <code>optional string tx_out_hash = 3;</code> */ java.lang.String getTxOutHash(); /** * <code>optional string tx_out_hash = 3;</code> */ com.google.protobuf.ByteString getTxOutHashBytes(); /** * <code>optional int32 tx_out_index = 4;</code> */ int getTxOutIndex(); /** * <code>optional string from_address = 5;</code> */ java.lang.String getFromAddress(); /** * <code>optional string from_address = 5;</code> */ com.google.protobuf.ByteString getFromAddressBytes(); } /** * Protobuf type {@code jelectrum.proto.ProtoTxInSummary} */ public static final class ProtoTxInSummary extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:jelectrum.proto.ProtoTxInSummary) ProtoTxInSummaryOrBuilder { // Use ProtoTxInSummary.newBuilder() to construct. private ProtoTxInSummary(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); } private ProtoTxInSummary() { index_ = 0; isCoinbase_ = false; txOutHash_ = ""; txOutIndex_ = 0; fromAddress_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ProtoTxInSummary( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { index_ = input.readInt32(); break; } case 16: { isCoinbase_ = input.readBool(); break; } case 26: { String s = input.readStringRequireUtf8(); txOutHash_ = s; break; } case 32: { txOutIndex_ = input.readInt32(); break; } case 42: { String s = input.readStringRequireUtf8(); fromAddress_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return jelectrum.proto.Kraken.internal_static_jelectrum_proto_ProtoTxInSummary_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return jelectrum.proto.Kraken.internal_static_jelectrum_proto_ProtoTxInSummary_fieldAccessorTable .ensureFieldAccessorsInitialized( jelectrum.proto.Kraken.ProtoTxInSummary.class, jelectrum.proto.Kraken.ProtoTxInSummary.Builder.class); } public static final int INDEX_FIELD_NUMBER = 1; private int index_; /** * <code>optional int32 index = 1;</code> */ public int getIndex() { return index_; } public static final int IS_COINBASE_FIELD_NUMBER = 2; private boolean isCoinbase_; /** * <code>optional bool is_coinbase = 2;</code> */ public boolean getIsCoinbase() { return isCoinbase_; } public static final int TX_OUT_HASH_FIELD_NUMBER = 3; private volatile java.lang.Object txOutHash_; /** * <code>optional string tx_out_hash = 3;</code> */ public java.lang.String getTxOutHash() { java.lang.Object ref = txOutHash_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); txOutHash_ = s; return s; } } /** * <code>optional string tx_out_hash = 3;</code> */ public com.google.protobuf.ByteString getTxOutHashBytes() { java.lang.Object ref = txOutHash_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); txOutHash_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TX_OUT_INDEX_FIELD_NUMBER = 4; private int txOutIndex_; /** * <code>optional int32 tx_out_index = 4;</code> */ public int getTxOutIndex() { return txOutIndex_; } public static final int FROM_ADDRESS_FIELD_NUMBER = 5; private volatile java.lang.Object fromAddress_; /** * <code>optional string from_address = 5;</code> */ public java.lang.String getFromAddress() { java.lang.Object ref = fromAddress_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fromAddress_ = s; return s; } } /** * <code>optional string from_address = 5;</code> */ public com.google.protobuf.ByteString getFromAddressBytes() { java.lang.Object ref = fromAddress_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fromAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (index_ != 0) { output.writeInt32(1, index_); } if (isCoinbase_ != false) { output.writeBool(2, isCoinbase_); } if (!getTxOutHashBytes().isEmpty()) { com.google.protobuf.GeneratedMessage.writeString(output, 3, txOutHash_); } if (txOutIndex_ != 0) { output.writeInt32(4, txOutIndex_); } if (!getFromAddressBytes().isEmpty()) { com.google.protobuf.GeneratedMessage.writeString(output, 5, fromAddress_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (index_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, index_); } if (isCoinbase_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, isCoinbase_); } if (!getTxOutHashBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, txOutHash_); } if (txOutIndex_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, txOutIndex_); } if (!getFromAddressBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessage.computeStringSize(5, fromAddress_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static jelectrum.proto.Kraken.ProtoTxInSummary parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static jelectrum.proto.Kraken.ProtoTxInSummary parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static jelectrum.proto.Kraken.ProtoTxInSummary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static jelectrum.proto.Kraken.ProtoTxInSummary parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static jelectrum.proto.Kraken.ProtoTxInSummary parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static jelectrum.proto.Kraken.ProtoTxInSummary parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static jelectrum.proto.Kraken.ProtoTxInSummary parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static jelectrum.proto.Kraken.ProtoTxInSummary parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static jelectrum.proto.Kraken.ProtoTxInSummary parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static jelectrum.proto.Kraken.ProtoTxInSummary parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(jelectrum.proto.Kraken.ProtoTxInSummary prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code jelectrum.proto.ProtoTxInSummary} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:jelectrum.proto.ProtoTxInSummary) jelectrum.proto.Kraken.ProtoTxInSummaryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return jelectrum.proto.Kraken.internal_static_jelectrum_proto_ProtoTxInSummary_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return jelectrum.proto.Kraken.internal_static_jelectrum_proto_ProtoTxInSummary_fieldAccessorTable .ensureFieldAccessorsInitialized( jelectrum.proto.Kraken.ProtoTxInSummary.class, jelectrum.proto.Kraken.ProtoTxInSummary.Builder.class); } // Construct using jelectrum.proto.Kraken.ProtoTxInSummary.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); index_ = 0; isCoinbase_ = false; txOutHash_ = ""; txOutIndex_ = 0; fromAddress_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return jelectrum.proto.Kraken.internal_static_jelectrum_proto_ProtoTxInSummary_descriptor; } public jelectrum.proto.Kraken.ProtoTxInSummary getDefaultInstanceForType() { return jelectrum.proto.Kraken.ProtoTxInSummary.getDefaultInstance(); } public jelectrum.proto.Kraken.ProtoTxInSummary build() { jelectrum.proto.Kraken.ProtoTxInSummary result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public jelectrum.proto.Kraken.ProtoTxInSummary buildPartial() { jelectrum.proto.Kraken.ProtoTxInSummary result = new jelectrum.proto.Kraken.ProtoTxInSummary(this); result.index_ = index_; result.isCoinbase_ = isCoinbase_; result.txOutHash_ = txOutHash_; result.txOutIndex_ = txOutIndex_; result.fromAddress_ = fromAddress_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof jelectrum.proto.Kraken.ProtoTxInSummary) { return mergeFrom((jelectrum.proto.Kraken.ProtoTxInSummary)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(jelectrum.proto.Kraken.ProtoTxInSummary other) { if (other == jelectrum.proto.Kraken.ProtoTxInSummary.getDefaultInstance()) return this; if (other.getIndex() != 0) { setIndex(other.getIndex()); } if (other.getIsCoinbase() != false) { setIsCoinbase(other.getIsCoinbase()); } if (!other.getTxOutHash().isEmpty()) { txOutHash_ = other.txOutHash_; onChanged(); } if (other.getTxOutIndex() != 0) { setTxOutIndex(other.getTxOutIndex()); } if (!other.getFromAddress().isEmpty()) { fromAddress_ = other.fromAddress_; onChanged(); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { jelectrum.proto.Kraken.ProtoTxInSummary parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (jelectrum.proto.Kraken.ProtoTxInSummary) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int index_ ; /** * <code>optional int32 index = 1;</code> */ public int getIndex() { return index_; } /** * <code>optional int32 index = 1;</code> */ public Builder setIndex(int value) { index_ = value; onChanged(); return this; } /** * <code>optional int32 index = 1;</code> */ public Builder clearIndex() { index_ = 0; onChanged(); return this; } private boolean isCoinbase_ ; /** * <code>optional bool is_coinbase = 2;</code> */ public boolean getIsCoinbase() { return isCoinbase_; } /** * <code>optional bool is_coinbase = 2;</code> */ public Builder setIsCoinbase(boolean value) { isCoinbase_ = value; onChanged(); return this; } /** * <code>optional bool is_coinbase = 2;</code> */ public Builder clearIsCoinbase() { isCoinbase_ = false; onChanged(); return this; } private java.lang.Object txOutHash_ = ""; /** * <code>optional string tx_out_hash = 3;</code> */ public java.lang.String getTxOutHash() { java.lang.Object ref = txOutHash_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); txOutHash_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string tx_out_hash = 3;</code> */ public com.google.protobuf.ByteString getTxOutHashBytes() { java.lang.Object ref = txOutHash_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); txOutHash_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string tx_out_hash = 3;</code> */ public Builder setTxOutHash( java.lang.String value) { if (value == null) { throw new NullPointerException(); } txOutHash_ = value; onChanged(); return this; } /** * <code>optional string tx_out_hash = 3;</code> */ public Builder clearTxOutHash() { txOutHash_ = getDefaultInstance().getTxOutHash(); onChanged(); return this; } /** * <code>optional string tx_out_hash = 3;</code> */ public Builder setTxOutHashBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); txOutHash_ = value; onChanged(); return this; } private int txOutIndex_ ; /** * <code>optional int32 tx_out_index = 4;</code> */ public int getTxOutIndex() { return txOutIndex_; } /** * <code>optional int32 tx_out_index = 4;</code> */ public Builder setTxOutIndex(int value) { txOutIndex_ = value; onChanged(); return this; } /** * <code>optional int32 tx_out_index = 4;</code> */ public Builder clearTxOutIndex() { txOutIndex_ = 0; onChanged(); return this; } private java.lang.Object fromAddress_ = ""; /** * <code>optional string from_address = 5;</code> */ public java.lang.String getFromAddress() { java.lang.Object ref = fromAddress_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fromAddress_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string from_address = 5;</code> */ public com.google.protobuf.ByteString getFromAddressBytes() { java.lang.Object ref = fromAddress_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fromAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string from_address = 5;</code> */ public Builder setFromAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } fromAddress_ = value; onChanged(); return this; } /** * <code>optional string from_address = 5;</code> */ public Builder clearFromAddress() { fromAddress_ = getDefaultInstance().getFromAddress(); onChanged(); return this; } /** * <code>optional string from_address = 5;</code> */ public Builder setFromAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fromAddress_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:jelectrum.proto.ProtoTxInSummary) } // @@protoc_insertion_point(class_scope:jelectrum.proto.ProtoTxInSummary) private static final jelectrum.proto.Kraken.ProtoTxInSummary DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new jelectrum.proto.Kraken.ProtoTxInSummary(); } public static jelectrum.proto.Kraken.ProtoTxInSummary getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<ProtoTxInSummary> PARSER = new com.google.protobuf.AbstractParser<ProtoTxInSummary>() { public ProtoTxInSummary parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { return new ProtoTxInSummary(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { throw (com.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static com.google.protobuf.Parser<ProtoTxInSummary> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<ProtoTxInSummary> getParserForType() { return PARSER; } public jelectrum.proto.Kraken.ProtoTxInSummary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ProtoTxOutSummaryOrBuilder extends // @@protoc_insertion_point(interface_extends:jelectrum.proto.ProtoTxOutSummary) com.google.protobuf.MessageOrBuilder { /** * <code>optional int32 index = 1;</code> */ int getIndex(); /** * <code>optional string to_address = 2;</code> */ java.lang.String getToAddress(); /** * <code>optional string to_address = 2;</code> */ com.google.protobuf.ByteString getToAddressBytes(); /** * <code>optional int64 value = 3;</code> */ long getValue(); } /** * Protobuf type {@code jelectrum.proto.ProtoTxOutSummary} */ public static final class ProtoTxOutSummary extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:jelectrum.proto.ProtoTxOutSummary) ProtoTxOutSummaryOrBuilder { // Use ProtoTxOutSummary.newBuilder() to construct. private ProtoTxOutSummary(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); } private ProtoTxOutSummary() { index_ = 0; toAddress_ = ""; value_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ProtoTxOutSummary( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { index_ = input.readInt32(); break; } case 18: { String s = input.readStringRequireUtf8(); toAddress_ = s; break; } case 24: { value_ = input.readInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return jelectrum.proto.Kraken.internal_static_jelectrum_proto_ProtoTxOutSummary_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return jelectrum.proto.Kraken.internal_static_jelectrum_proto_ProtoTxOutSummary_fieldAccessorTable .ensureFieldAccessorsInitialized( jelectrum.proto.Kraken.ProtoTxOutSummary.class, jelectrum.proto.Kraken.ProtoTxOutSummary.Builder.class); } public static final int INDEX_FIELD_NUMBER = 1; private int index_; /** * <code>optional int32 index = 1;</code> */ public int getIndex() { return index_; } public static final int TO_ADDRESS_FIELD_NUMBER = 2; private volatile java.lang.Object toAddress_; /** * <code>optional string to_address = 2;</code> */ public java.lang.String getToAddress() { java.lang.Object ref = toAddress_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); toAddress_ = s; return s; } } /** * <code>optional string to_address = 2;</code> */ public com.google.protobuf.ByteString getToAddressBytes() { java.lang.Object ref = toAddress_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); toAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALUE_FIELD_NUMBER = 3; private long value_; /** * <code>optional int64 value = 3;</code> */ public long getValue() { return value_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (index_ != 0) { output.writeInt32(1, index_); } if (!getToAddressBytes().isEmpty()) { com.google.protobuf.GeneratedMessage.writeString(output, 2, toAddress_); } if (value_ != 0L) { output.writeInt64(3, value_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (index_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, index_); } if (!getToAddressBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, toAddress_); } if (value_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, value_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static jelectrum.proto.Kraken.ProtoTxOutSummary parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static jelectrum.proto.Kraken.ProtoTxOutSummary parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static jelectrum.proto.Kraken.ProtoTxOutSummary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static jelectrum.proto.Kraken.ProtoTxOutSummary parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static jelectrum.proto.Kraken.ProtoTxOutSummary parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static jelectrum.proto.Kraken.ProtoTxOutSummary parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static jelectrum.proto.Kraken.ProtoTxOutSummary parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static jelectrum.proto.Kraken.ProtoTxOutSummary parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static jelectrum.proto.Kraken.ProtoTxOutSummary parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static jelectrum.proto.Kraken.ProtoTxOutSummary parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(jelectrum.proto.Kraken.ProtoTxOutSummary prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code jelectrum.proto.ProtoTxOutSummary} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:jelectrum.proto.ProtoTxOutSummary) jelectrum.proto.Kraken.ProtoTxOutSummaryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return jelectrum.proto.Kraken.internal_static_jelectrum_proto_ProtoTxOutSummary_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return jelectrum.proto.Kraken.internal_static_jelectrum_proto_ProtoTxOutSummary_fieldAccessorTable .ensureFieldAccessorsInitialized( jelectrum.proto.Kraken.ProtoTxOutSummary.class, jelectrum.proto.Kraken.ProtoTxOutSummary.Builder.class); } // Construct using jelectrum.proto.Kraken.ProtoTxOutSummary.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); index_ = 0; toAddress_ = ""; value_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return jelectrum.proto.Kraken.internal_static_jelectrum_proto_ProtoTxOutSummary_descriptor; } public jelectrum.proto.Kraken.ProtoTxOutSummary getDefaultInstanceForType() { return jelectrum.proto.Kraken.ProtoTxOutSummary.getDefaultInstance(); } public jelectrum.proto.Kraken.ProtoTxOutSummary build() { jelectrum.proto.Kraken.ProtoTxOutSummary result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public jelectrum.proto.Kraken.ProtoTxOutSummary buildPartial() { jelectrum.proto.Kraken.ProtoTxOutSummary result = new jelectrum.proto.Kraken.ProtoTxOutSummary(this); result.index_ = index_; result.toAddress_ = toAddress_; result.value_ = value_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof jelectrum.proto.Kraken.ProtoTxOutSummary) { return mergeFrom((jelectrum.proto.Kraken.ProtoTxOutSummary)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(jelectrum.proto.Kraken.ProtoTxOutSummary other) { if (other == jelectrum.proto.Kraken.ProtoTxOutSummary.getDefaultInstance()) return this; if (other.getIndex() != 0) { setIndex(other.getIndex()); } if (!other.getToAddress().isEmpty()) { toAddress_ = other.toAddress_; onChanged(); } if (other.getValue() != 0L) { setValue(other.getValue()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { jelectrum.proto.Kraken.ProtoTxOutSummary parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (jelectrum.proto.Kraken.ProtoTxOutSummary) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int index_ ; /** * <code>optional int32 index = 1;</code> */ public int getIndex() { return index_; } /** * <code>optional int32 index = 1;</code> */ public Builder setIndex(int value) { index_ = value; onChanged(); return this; } /** * <code>optional int32 index = 1;</code> */ public Builder clearIndex() { index_ = 0; onChanged(); return this; } private java.lang.Object toAddress_ = ""; /** * <code>optional string to_address = 2;</code> */ public java.lang.String getToAddress() { java.lang.Object ref = toAddress_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); toAddress_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string to_address = 2;</code> */ public com.google.protobuf.ByteString getToAddressBytes() { java.lang.Object ref = toAddress_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); toAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string to_address = 2;</code> */ public Builder setToAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } toAddress_ = value; onChanged(); return this; } /** * <code>optional string to_address = 2;</code> */ public Builder clearToAddress() { toAddress_ = getDefaultInstance().getToAddress(); onChanged(); return this; } /** * <code>optional string to_address = 2;</code> */ public Builder setToAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); toAddress_ = value; onChanged(); return this; } private long value_ ; /** * <code>optional int64 value = 3;</code> */ public long getValue() { return value_; } /** * <code>optional int64 value = 3;</code> */ public Builder setValue(long value) { value_ = value; onChanged(); return this; } /** * <code>optional int64 value = 3;</code> */ public Builder clearValue() { value_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:jelectrum.proto.ProtoTxOutSummary) } // @@protoc_insertion_point(class_scope:jelectrum.proto.ProtoTxOutSummary) private static final jelectrum.proto.Kraken.ProtoTxOutSummary DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new jelectrum.proto.Kraken.ProtoTxOutSummary(); } public static jelectrum.proto.Kraken.ProtoTxOutSummary getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<ProtoTxOutSummary> PARSER = new com.google.protobuf.AbstractParser<ProtoTxOutSummary>() { public ProtoTxOutSummary parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { return new ProtoTxOutSummary(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { throw (com.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static com.google.protobuf.Parser<ProtoTxOutSummary> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<ProtoTxOutSummary> getParserForType() { return PARSER; } public jelectrum.proto.Kraken.ProtoTxOutSummary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static com.google.protobuf.Descriptors.Descriptor internal_static_jelectrum_proto_ProtoBlockSummary_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_jelectrum_proto_ProtoBlockSummary_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_jelectrum_proto_ProtoBlockSummary_TxEntry_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_jelectrum_proto_ProtoBlockSummary_TxEntry_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_jelectrum_proto_ProtoTxSummary_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_jelectrum_proto_ProtoTxSummary_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_jelectrum_proto_ProtoTxSummary_InEntry_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_jelectrum_proto_ProtoTxSummary_InEntry_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_jelectrum_proto_ProtoTxSummary_OutEntry_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_jelectrum_proto_ProtoTxSummary_OutEntry_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_jelectrum_proto_ProtoTxInSummary_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_jelectrum_proto_ProtoTxInSummary_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_jelectrum_proto_ProtoTxOutSummary_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_jelectrum_proto_ProtoTxOutSummary_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\022proto/kraken.proto\022\017jelectrum.proto\"\273\001" + "\n\021ProtoBlockSummary\022\016\n\006height\030\001 \001(\005\022\022\n\nb" + "lock_hash\030\002 \001(\t\0226\n\002tx\030\003 \003(\0132*.jelectrum." + "proto.ProtoBlockSummary.TxEntry\032J\n\007TxEnt" + "ry\022\013\n\003key\030\001 \001(\t\022.\n\005value\030\002 \001(\0132\037.jelectr" + "um.proto.ProtoTxSummary:\0028\001\"\305\002\n\016ProtoTxS" + "ummary\022\017\n\007tx_hash\030\001 \001(\t\022\030\n\020involved_addr" + "ess\030\002 \003(\t\0223\n\002in\030\003 \003(\0132\'.jelectrum.proto." + "ProtoTxSummary.InEntry\0225\n\003out\030\004 \003(\0132(.je" + "lectrum.proto.ProtoTxSummary.OutEntry\032L\n", "\007InEntry\022\013\n\003key\030\001 \001(\005\0220\n\005value\030\002 \001(\0132!.j" + "electrum.proto.ProtoTxInSummary:\0028\001\032N\n\010O" + "utEntry\022\013\n\003key\030\001 \001(\005\0221\n\005value\030\002 \001(\0132\".je" + "lectrum.proto.ProtoTxOutSummary:\0028\001\"w\n\020P" + "rotoTxInSummary\022\r\n\005index\030\001 \001(\005\022\023\n\013is_coi" + "nbase\030\002 \001(\010\022\023\n\013tx_out_hash\030\003 \001(\t\022\024\n\014tx_o" + "ut_index\030\004 \001(\005\022\024\n\014from_address\030\005 \001(\t\"E\n\021" + "ProtoTxOutSummary\022\r\n\005index\030\001 \001(\005\022\022\n\nto_a" + "ddress\030\002 \001(\t\022\r\n\005value\030\003 \001(\003B\021\n\017jelectrum" + ".protob\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); internal_static_jelectrum_proto_ProtoBlockSummary_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_jelectrum_proto_ProtoBlockSummary_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_jelectrum_proto_ProtoBlockSummary_descriptor, new java.lang.String[] { "Height", "BlockHash", "Tx", }); internal_static_jelectrum_proto_ProtoBlockSummary_TxEntry_descriptor = internal_static_jelectrum_proto_ProtoBlockSummary_descriptor.getNestedTypes().get(0); internal_static_jelectrum_proto_ProtoBlockSummary_TxEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_jelectrum_proto_ProtoBlockSummary_TxEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_jelectrum_proto_ProtoTxSummary_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_jelectrum_proto_ProtoTxSummary_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_jelectrum_proto_ProtoTxSummary_descriptor, new java.lang.String[] { "TxHash", "InvolvedAddress", "In", "Out", }); internal_static_jelectrum_proto_ProtoTxSummary_InEntry_descriptor = internal_static_jelectrum_proto_ProtoTxSummary_descriptor.getNestedTypes().get(0); internal_static_jelectrum_proto_ProtoTxSummary_InEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_jelectrum_proto_ProtoTxSummary_InEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_jelectrum_proto_ProtoTxSummary_OutEntry_descriptor = internal_static_jelectrum_proto_ProtoTxSummary_descriptor.getNestedTypes().get(1); internal_static_jelectrum_proto_ProtoTxSummary_OutEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_jelectrum_proto_ProtoTxSummary_OutEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_jelectrum_proto_ProtoTxInSummary_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_jelectrum_proto_ProtoTxInSummary_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_jelectrum_proto_ProtoTxInSummary_descriptor, new java.lang.String[] { "Index", "IsCoinbase", "TxOutHash", "TxOutIndex", "FromAddress", }); internal_static_jelectrum_proto_ProtoTxOutSummary_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_jelectrum_proto_ProtoTxOutSummary_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_jelectrum_proto_ProtoTxOutSummary_descriptor, new java.lang.String[] { "Index", "ToAddress", "Value", }); } // @@protoc_insertion_point(outer_class_scope) }