// Generated by the protocol buffer compiler. DO NOT EDIT! // source: wallet.proto package com.mygeopay.core.protos; public final class Protos { private Protos() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } public interface PeerAddressOrBuilder extends // @@protoc_insertion_point(interface_extends:com.mygeopay.core.protos.PeerAddress) com.google.protobuf.MessageOrBuilder { /** * <code>required bytes ip_address = 1;</code> */ boolean hasIpAddress(); /** * <code>required bytes ip_address = 1;</code> */ com.google.protobuf.ByteString getIpAddress(); /** * <code>required uint32 port = 2;</code> */ boolean hasPort(); /** * <code>required uint32 port = 2;</code> */ int getPort(); /** * <code>required uint64 services = 3;</code> */ boolean hasServices(); /** * <code>required uint64 services = 3;</code> */ long getServices(); } /** * Protobuf type {@codecom.mygeopay.core.protos.PeerAddress} */ public static final class PeerAddress extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:com.mygeopay.core.protos.PeerAddress) PeerAddressOrBuilder { // Use PeerAddress.newBuilder() to construct. private PeerAddress(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private PeerAddress(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final PeerAddress defaultInstance; public static PeerAddress getDefaultInstance() { return defaultInstance; } public PeerAddress getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PeerAddress( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; ipAddress_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; port_ = input.readUInt32(); break; } case 24: { bitField0_ |= 0x00000004; services_ = input.readUInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_PeerAddress_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_PeerAddress_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mygeopay.core.protos.Protos.PeerAddress.class,com.mygeopay.core.protos.Protos.PeerAddress.Builder.class); } public static final com.google.protobuf.Parser<PeerAddress> PARSER = new com.google.protobuf.AbstractParser<PeerAddress>() { public PeerAddress parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PeerAddress(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<PeerAddress> getParserForType() { return PARSER; } private int bitField0_; public static final int IP_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString ipAddress_; /** * <code>required bytes ip_address = 1;</code> */ public boolean hasIpAddress() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required bytes ip_address = 1;</code> */ public com.google.protobuf.ByteString getIpAddress() { return ipAddress_; } public static final int PORT_FIELD_NUMBER = 2; private int port_; /** * <code>required uint32 port = 2;</code> */ public boolean hasPort() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required uint32 port = 2;</code> */ public int getPort() { return port_; } public static final int SERVICES_FIELD_NUMBER = 3; private long services_; /** * <code>required uint64 services = 3;</code> */ public boolean hasServices() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>required uint64 services = 3;</code> */ public long getServices() { return services_; } private void initFields() { ipAddress_ = com.google.protobuf.ByteString.EMPTY; port_ = 0; services_ = 0L; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasIpAddress()) { memoizedIsInitialized = 0; return false; } if (!hasPort()) { memoizedIsInitialized = 0; return false; } if (!hasServices()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, ipAddress_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, port_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt64(3, services_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, ipAddress_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, port_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, services_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.mygeopay.core.protos.Protos.PeerAddress parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mygeopay.core.protos.Protos.PeerAddress parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mygeopay.core.protos.Protos.PeerAddress parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mygeopay.core.protos.Protos.PeerAddress parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mygeopay.core.protos.Protos.PeerAddress parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.mygeopay.core.protos.Protos.PeerAddress parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.mygeopay.core.protos.Protos.PeerAddress parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.mygeopay.core.protos.Protos.PeerAddress parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.mygeopay.core.protos.Protos.PeerAddress parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.mygeopay.core.protos.Protos.PeerAddress parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.mygeopay.core.protos.Protos.PeerAddress prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@codecom.mygeopay.core.protos.PeerAddress} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:com.mygeopay.core.protos.PeerAddress) com.mygeopay.core.protos.Protos.PeerAddressOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_PeerAddress_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_PeerAddress_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mygeopay.core.protos.Protos.PeerAddress.class,com.mygeopay.core.protos.Protos.PeerAddress.Builder.class); } // Construct usingcom.mygeopay.core.protos.Protos.PeerAddress.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); ipAddress_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); port_ = 0; bitField0_ = (bitField0_ & ~0x00000002); services_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_PeerAddress_descriptor; } public com.mygeopay.core.protos.Protos.PeerAddress getDefaultInstanceForType() { return com.mygeopay.core.protos.Protos.PeerAddress.getDefaultInstance(); } public com.mygeopay.core.protos.Protos.PeerAddress build() { com.mygeopay.core.protos.Protos.PeerAddress result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.mygeopay.core.protos.Protos.PeerAddress buildPartial() { com.mygeopay.core.protos.Protos.PeerAddress result = new com.mygeopay.core.protos.Protos.PeerAddress(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.ipAddress_ = ipAddress_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.port_ = port_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.services_ = services_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.mygeopay.core.protos.Protos.PeerAddress) { return mergeFrom((com.mygeopay.core.protos.Protos.PeerAddress)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.mygeopay.core.protos.Protos.PeerAddress other) { if (other ==com.mygeopay.core.protos.Protos.PeerAddress.getDefaultInstance()) return this; if (other.hasIpAddress()) { setIpAddress(other.getIpAddress()); } if (other.hasPort()) { setPort(other.getPort()); } if (other.hasServices()) { setServices(other.getServices()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasIpAddress()) { return false; } if (!hasPort()) { return false; } if (!hasServices()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.mygeopay.core.protos.Protos.PeerAddress parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.mygeopay.core.protos.Protos.PeerAddress) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString ipAddress_ = com.google.protobuf.ByteString.EMPTY; /** * <code>required bytes ip_address = 1;</code> */ public boolean hasIpAddress() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required bytes ip_address = 1;</code> */ public com.google.protobuf.ByteString getIpAddress() { return ipAddress_; } /** * <code>required bytes ip_address = 1;</code> */ public Builder setIpAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; ipAddress_ = value; onChanged(); return this; } /** * <code>required bytes ip_address = 1;</code> */ public Builder clearIpAddress() { bitField0_ = (bitField0_ & ~0x00000001); ipAddress_ = getDefaultInstance().getIpAddress(); onChanged(); return this; } private int port_ ; /** * <code>required uint32 port = 2;</code> */ public boolean hasPort() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required uint32 port = 2;</code> */ public int getPort() { return port_; } /** * <code>required uint32 port = 2;</code> */ public Builder setPort(int value) { bitField0_ |= 0x00000002; port_ = value; onChanged(); return this; } /** * <code>required uint32 port = 2;</code> */ public Builder clearPort() { bitField0_ = (bitField0_ & ~0x00000002); port_ = 0; onChanged(); return this; } private long services_ ; /** * <code>required uint64 services = 3;</code> */ public boolean hasServices() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>required uint64 services = 3;</code> */ public long getServices() { return services_; } /** * <code>required uint64 services = 3;</code> */ public Builder setServices(long value) { bitField0_ |= 0x00000004; services_ = value; onChanged(); return this; } /** * <code>required uint64 services = 3;</code> */ public Builder clearServices() { bitField0_ = (bitField0_ & ~0x00000004); services_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.mygeopay.core.protos.PeerAddress) } static { defaultInstance = new PeerAddress(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.mygeopay.core.protos.PeerAddress) } public interface EncryptedDataOrBuilder extends // @@protoc_insertion_point(interface_extends:com.mygeopay.core.protos.EncryptedData) com.google.protobuf.MessageOrBuilder { /** * <code>required bytes initialisation_vector = 1;</code> * * <pre> * The initialisation vector for the AES encryption (16 bytes) * </pre> */ boolean hasInitialisationVector(); /** * <code>required bytes initialisation_vector = 1;</code> * * <pre> * The initialisation vector for the AES encryption (16 bytes) * </pre> */ com.google.protobuf.ByteString getInitialisationVector(); /** * <code>required bytes encrypted_private_key = 2;</code> * * <pre> * The encrypted private key * </pre> */ boolean hasEncryptedPrivateKey(); /** * <code>required bytes encrypted_private_key = 2;</code> * * <pre> * The encrypted private key * </pre> */ com.google.protobuf.ByteString getEncryptedPrivateKey(); } /** * Protobuf type {@codecom.mygeopay.core.protos.EncryptedData} */ public static final class EncryptedData extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:com.mygeopay.core.protos.EncryptedData) EncryptedDataOrBuilder { // Use EncryptedData.newBuilder() to construct. private EncryptedData(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private EncryptedData(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final EncryptedData defaultInstance; public static EncryptedData getDefaultInstance() { return defaultInstance; } public EncryptedData getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EncryptedData( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; initialisationVector_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; encryptedPrivateKey_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_EncryptedData_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_EncryptedData_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mygeopay.core.protos.Protos.EncryptedData.class,com.mygeopay.core.protos.Protos.EncryptedData.Builder.class); } public static final com.google.protobuf.Parser<EncryptedData> PARSER = new com.google.protobuf.AbstractParser<EncryptedData>() { public EncryptedData parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EncryptedData(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<EncryptedData> getParserForType() { return PARSER; } private int bitField0_; public static final int INITIALISATION_VECTOR_FIELD_NUMBER = 1; private com.google.protobuf.ByteString initialisationVector_; /** * <code>required bytes initialisation_vector = 1;</code> * * <pre> * The initialisation vector for the AES encryption (16 bytes) * </pre> */ public boolean hasInitialisationVector() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required bytes initialisation_vector = 1;</code> * * <pre> * The initialisation vector for the AES encryption (16 bytes) * </pre> */ public com.google.protobuf.ByteString getInitialisationVector() { return initialisationVector_; } public static final int ENCRYPTED_PRIVATE_KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString encryptedPrivateKey_; /** * <code>required bytes encrypted_private_key = 2;</code> * * <pre> * The encrypted private key * </pre> */ public boolean hasEncryptedPrivateKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required bytes encrypted_private_key = 2;</code> * * <pre> * The encrypted private key * </pre> */ public com.google.protobuf.ByteString getEncryptedPrivateKey() { return encryptedPrivateKey_; } private void initFields() { initialisationVector_ = com.google.protobuf.ByteString.EMPTY; encryptedPrivateKey_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasInitialisationVector()) { memoizedIsInitialized = 0; return false; } if (!hasEncryptedPrivateKey()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if ((bitField0_ & 0x00000001) == 0x00000001) { output.writeBytes(1, initialisationVector_); } if ((bitField0_ & 0x00000002) == 0x00000002) { output.writeBytes(2, encryptedPrivateKey_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if ((bitField0_ & 0x00000001) == 0x00000001) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, initialisationVector_); } if ((bitField0_ & 0x00000002) == 0x00000002) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, encryptedPrivateKey_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.mygeopay.core.protos.Protos.EncryptedData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mygeopay.core.protos.Protos.EncryptedData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mygeopay.core.protos.Protos.EncryptedData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mygeopay.core.protos.Protos.EncryptedData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mygeopay.core.protos.Protos.EncryptedData parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.mygeopay.core.protos.Protos.EncryptedData parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.mygeopay.core.protos.Protos.EncryptedData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.mygeopay.core.protos.Protos.EncryptedData parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.mygeopay.core.protos.Protos.EncryptedData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.mygeopay.core.protos.Protos.EncryptedData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.mygeopay.core.protos.Protos.EncryptedData prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@codecom.mygeopay.core.protos.EncryptedData} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:com.mygeopay.core.protos.EncryptedData) com.mygeopay.core.protos.Protos.EncryptedDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_EncryptedData_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_EncryptedData_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mygeopay.core.protos.Protos.EncryptedData.class,com.mygeopay.core.protos.Protos.EncryptedData.Builder.class); } // Construct usingcom.mygeopay.core.protos.Protos.EncryptedData.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); initialisationVector_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); encryptedPrivateKey_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_EncryptedData_descriptor; } public com.mygeopay.core.protos.Protos.EncryptedData getDefaultInstanceForType() { return com.mygeopay.core.protos.Protos.EncryptedData.getDefaultInstance(); } public com.mygeopay.core.protos.Protos.EncryptedData build() { com.mygeopay.core.protos.Protos.EncryptedData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.mygeopay.core.protos.Protos.EncryptedData buildPartial() { com.mygeopay.core.protos.Protos.EncryptedData result = new com.mygeopay.core.protos.Protos.EncryptedData(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if ((from_bitField0_ & 0x00000001) == 0x00000001) { to_bitField0_ |= 0x00000001; } result.initialisationVector_ = initialisationVector_; if ((from_bitField0_ & 0x00000002) == 0x00000002) { to_bitField0_ |= 0x00000002; } result.encryptedPrivateKey_ = encryptedPrivateKey_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.mygeopay.core.protos.Protos.EncryptedData) { return mergeFrom((com.mygeopay.core.protos.Protos.EncryptedData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.mygeopay.core.protos.Protos.EncryptedData other) { if (other ==com.mygeopay.core.protos.Protos.EncryptedData.getDefaultInstance()) return this; if (other.hasInitialisationVector()) { setInitialisationVector(other.getInitialisationVector()); } if (other.hasEncryptedPrivateKey()) { setEncryptedPrivateKey(other.getEncryptedPrivateKey()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasInitialisationVector()) { return false; } if (!hasEncryptedPrivateKey()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.mygeopay.core.protos.Protos.EncryptedData parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.mygeopay.core.protos.Protos.EncryptedData) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString initialisationVector_ = com.google.protobuf.ByteString.EMPTY; /** * <code>required bytes initialisation_vector = 1;</code> * * <pre> * The initialisation vector for the AES encryption (16 bytes) * </pre> */ public boolean hasInitialisationVector() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required bytes initialisation_vector = 1;</code> * * <pre> * The initialisation vector for the AES encryption (16 bytes) * </pre> */ public com.google.protobuf.ByteString getInitialisationVector() { return initialisationVector_; } /** * <code>required bytes initialisation_vector = 1;</code> * * <pre> * The initialisation vector for the AES encryption (16 bytes) * </pre> */ public Builder setInitialisationVector(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; initialisationVector_ = value; onChanged(); return this; } /** * <code>required bytes initialisation_vector = 1;</code> * * <pre> * The initialisation vector for the AES encryption (16 bytes) * </pre> */ public Builder clearInitialisationVector() { bitField0_ = (bitField0_ & ~0x00000001); initialisationVector_ = getDefaultInstance().getInitialisationVector(); onChanged(); return this; } private com.google.protobuf.ByteString encryptedPrivateKey_ = com.google.protobuf.ByteString.EMPTY; /** * <code>required bytes encrypted_private_key = 2;</code> * * <pre> * The encrypted private key * </pre> */ public boolean hasEncryptedPrivateKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required bytes encrypted_private_key = 2;</code> * * <pre> * The encrypted private key * </pre> */ public com.google.protobuf.ByteString getEncryptedPrivateKey() { return encryptedPrivateKey_; } /** * <code>required bytes encrypted_private_key = 2;</code> * * <pre> * The encrypted private key * </pre> */ public Builder setEncryptedPrivateKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; encryptedPrivateKey_ = value; onChanged(); return this; } /** * <code>required bytes encrypted_private_key = 2;</code> * * <pre> * The encrypted private key * </pre> */ public Builder clearEncryptedPrivateKey() { bitField0_ = (bitField0_ & ~0x00000002); encryptedPrivateKey_ = getDefaultInstance().getEncryptedPrivateKey(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.mygeopay.core.protos.EncryptedData) } static { defaultInstance = new EncryptedData(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.mygeopay.core.protos.EncryptedData) } public interface DeterministicKeyOrBuilder extends // @@protoc_insertion_point(interface_extends:com.mygeopay.core.protos.DeterministicKey) com.google.protobuf.MessageOrBuilder { /** * <code>required bytes chain_code = 1;</code> * * <pre> * Random data that allows us to extend a key. Without this, we can't figure out the next key in the chain and * should just treat it as a regular ORIGINAL type key. * </pre> */ boolean hasChainCode(); /** * <code>required bytes chain_code = 1;</code> * * <pre> * Random data that allows us to extend a key. Without this, we can't figure out the next key in the chain and * should just treat it as a regular ORIGINAL type key. * </pre> */ com.google.protobuf.ByteString getChainCode(); /** * <code>repeated uint32 path = 2;</code> * * <pre> * The path through the key tree. Each number is encoded in the standard form: high bit set for private derivation * and high bit unset for public derivation. * </pre> */ java.util.List<java.lang.Integer> getPathList(); /** * <code>repeated uint32 path = 2;</code> * * <pre> * The path through the key tree. Each number is encoded in the standard form: high bit set for private derivation * and high bit unset for public derivation. * </pre> */ int getPathCount(); /** * <code>repeated uint32 path = 2;</code> * * <pre> * The path through the key tree. Each number is encoded in the standard form: high bit set for private derivation * and high bit unset for public derivation. * </pre> */ int getPath(int index); /** * <code>optional uint32 issued_subkeys = 3;</code> * * <pre> * How many children of this key have been issued, that is, given to the user when they requested a fresh key? * For the parents of keys being handed out, this is always less than the true number of children: the difference is * called the lookahead zone. These keys are put into Bloom filters so we can spot transactions made by clones of * this wallet - for instance when restoring from backup or if the seed was shared between devices. * If this field is missing it means we're not issuing subkeys of this key to users. * </pre> */ boolean hasIssuedSubkeys(); /** * <code>optional uint32 issued_subkeys = 3;</code> * * <pre> * How many children of this key have been issued, that is, given to the user when they requested a fresh key? * For the parents of keys being handed out, this is always less than the true number of children: the difference is * called the lookahead zone. These keys are put into Bloom filters so we can spot transactions made by clones of * this wallet - for instance when restoring from backup or if the seed was shared between devices. * If this field is missing it means we're not issuing subkeys of this key to users. * </pre> */ int getIssuedSubkeys(); /** * <code>optional uint32 lookahead_size = 4;</code> */ boolean hasLookaheadSize(); /** * <code>optional uint32 lookahead_size = 4;</code> */ int getLookaheadSize(); /** * <code>optional bool isFollowing = 5;</code> * * <pre> ** * Flag indicating that this key is a root of a following chain. This chain is following the next non-following chain. * Following/followed chains concept is used for married keychains, where the set of keys combined together to produce * a single P2SH multisignature address * </pre> */ boolean hasIsFollowing(); /** * <code>optional bool isFollowing = 5;</code> * * <pre> ** * Flag indicating that this key is a root of a following chain. This chain is following the next non-following chain. * Following/followed chains concept is used for married keychains, where the set of keys combined together to produce * a single P2SH multisignature address * </pre> */ boolean getIsFollowing(); } /** * Protobuf type {@codecom.mygeopay.core.protos.DeterministicKey} * * <pre> ** * Data attached to a Key message that defines the data needed by the BIP32 deterministic key hierarchy algorithm. * </pre> */ public static final class DeterministicKey extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:com.mygeopay.core.protos.DeterministicKey) DeterministicKeyOrBuilder { // Use DeterministicKey.newBuilder() to construct. private DeterministicKey(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private DeterministicKey(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final DeterministicKey defaultInstance; public static DeterministicKey getDefaultInstance() { return defaultInstance; } public DeterministicKey getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeterministicKey( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; chainCode_ = input.readBytes(); break; } case 16: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { path_ = new java.util.ArrayList<java.lang.Integer>(); mutable_bitField0_ |= 0x00000002; } path_.add(input.readUInt32()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { path_ = new java.util.ArrayList<java.lang.Integer>(); mutable_bitField0_ |= 0x00000002; } while (input.getBytesUntilLimit() > 0) { path_.add(input.readUInt32()); } input.popLimit(limit); break; } case 24: { bitField0_ |= 0x00000002; issuedSubkeys_ = input.readUInt32(); break; } case 32: { bitField0_ |= 0x00000004; lookaheadSize_ = input.readUInt32(); break; } case 40: { bitField0_ |= 0x00000008; isFollowing_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if ((mutable_bitField0_ & 0x00000002) == 0x00000002) { path_ = java.util.Collections.unmodifiableList(path_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_DeterministicKey_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_DeterministicKey_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mygeopay.core.protos.Protos.DeterministicKey.class,com.mygeopay.core.protos.Protos.DeterministicKey.Builder.class); } public static final com.google.protobuf.Parser<DeterministicKey> PARSER = new com.google.protobuf.AbstractParser<DeterministicKey>() { public DeterministicKey parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeterministicKey(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<DeterministicKey> getParserForType() { return PARSER; } private int bitField0_; public static final int CHAIN_CODE_FIELD_NUMBER = 1; private com.google.protobuf.ByteString chainCode_; /** * <code>required bytes chain_code = 1;</code> * * <pre> * Random data that allows us to extend a key. Without this, we can't figure out the next key in the chain and * should just treat it as a regular ORIGINAL type key. * </pre> */ public boolean hasChainCode() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required bytes chain_code = 1;</code> * * <pre> * Random data that allows us to extend a key. Without this, we can't figure out the next key in the chain and * should just treat it as a regular ORIGINAL type key. * </pre> */ public com.google.protobuf.ByteString getChainCode() { return chainCode_; } public static final int PATH_FIELD_NUMBER = 2; private java.util.List<java.lang.Integer> path_; /** * <code>repeated uint32 path = 2;</code> * * <pre> * The path through the key tree. Each number is encoded in the standard form: high bit set for private derivation * and high bit unset for public derivation. * </pre> */ public java.util.List<java.lang.Integer> getPathList() { return path_; } /** * <code>repeated uint32 path = 2;</code> * * <pre> * The path through the key tree. Each number is encoded in the standard form: high bit set for private derivation * and high bit unset for public derivation. * </pre> */ public int getPathCount() { return path_.size(); } /** * <code>repeated uint32 path = 2;</code> * * <pre> * The path through the key tree. Each number is encoded in the standard form: high bit set for private derivation * and high bit unset for public derivation. * </pre> */ public int getPath(int index) { return path_.get(index); } public static final int ISSUED_SUBKEYS_FIELD_NUMBER = 3; private int issuedSubkeys_; /** * <code>optional uint32 issued_subkeys = 3;</code> * * <pre> * How many children of this key have been issued, that is, given to the user when they requested a fresh key? * For the parents of keys being handed out, this is always less than the true number of children: the difference is * called the lookahead zone. These keys are put into Bloom filters so we can spot transactions made by clones of * this wallet - for instance when restoring from backup or if the seed was shared between devices. * If this field is missing it means we're not issuing subkeys of this key to users. * </pre> */ public boolean hasIssuedSubkeys() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional uint32 issued_subkeys = 3;</code> * * <pre> * How many children of this key have been issued, that is, given to the user when they requested a fresh key? * For the parents of keys being handed out, this is always less than the true number of children: the difference is * called the lookahead zone. These keys are put into Bloom filters so we can spot transactions made by clones of * this wallet - for instance when restoring from backup or if the seed was shared between devices. * If this field is missing it means we're not issuing subkeys of this key to users. * </pre> */ public int getIssuedSubkeys() { return issuedSubkeys_; } public static final int LOOKAHEAD_SIZE_FIELD_NUMBER = 4; private int lookaheadSize_; /** * <code>optional uint32 lookahead_size = 4;</code> */ public boolean hasLookaheadSize() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional uint32 lookahead_size = 4;</code> */ public int getLookaheadSize() { return lookaheadSize_; } public static final int ISFOLLOWING_FIELD_NUMBER = 5; private boolean isFollowing_; /** * <code>optional bool isFollowing = 5;</code> * * <pre> ** * Flag indicating that this key is a root of a following chain. This chain is following the next non-following chain. * Following/followed chains concept is used for married keychains, where the set of keys combined together to produce * a single P2SH multisignature address * </pre> */ public boolean hasIsFollowing() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional bool isFollowing = 5;</code> * * <pre> ** * Flag indicating that this key is a root of a following chain. This chain is following the next non-following chain. * Following/followed chains concept is used for married keychains, where the set of keys combined together to produce * a single P2SH multisignature address * </pre> */ public boolean getIsFollowing() { return isFollowing_; } private void initFields() { chainCode_ = com.google.protobuf.ByteString.EMPTY; path_ = java.util.Collections.emptyList(); issuedSubkeys_ = 0; lookaheadSize_ = 0; isFollowing_ = false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasChainCode()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if ((bitField0_ & 0x00000001) == 0x00000001) { output.writeBytes(1, chainCode_); } for (int i = 0; i < path_.size(); i++) { output.writeUInt32(2, path_.get(i)); } if ((bitField0_ & 0x00000002) == 0x00000002) { output.writeUInt32(3, issuedSubkeys_); } if ((bitField0_ & 0x00000004) == 0x00000004) { output.writeUInt32(4, lookaheadSize_); } if ((bitField0_ & 0x00000008) == 0x00000008) { output.writeBool(5, isFollowing_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if ((bitField0_ & 0x00000001) == 0x00000001) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, chainCode_); } { int dataSize = 0; for (int i = 0; i < path_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(path_.get(i)); } size += dataSize; size += 1 * getPathList().size(); } if ((bitField0_ & 0x00000002) == 0x00000002) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, issuedSubkeys_); } if ((bitField0_ & 0x00000004) == 0x00000004) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, lookaheadSize_); } if ((bitField0_ & 0x00000008) == 0x00000008) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, isFollowing_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.mygeopay.core.protos.Protos.DeterministicKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mygeopay.core.protos.Protos.DeterministicKey parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mygeopay.core.protos.Protos.DeterministicKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mygeopay.core.protos.Protos.DeterministicKey parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mygeopay.core.protos.Protos.DeterministicKey parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.mygeopay.core.protos.Protos.DeterministicKey parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.mygeopay.core.protos.Protos.DeterministicKey parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.mygeopay.core.protos.Protos.DeterministicKey parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.mygeopay.core.protos.Protos.DeterministicKey parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.mygeopay.core.protos.Protos.DeterministicKey parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.mygeopay.core.protos.Protos.DeterministicKey prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@codecom.mygeopay.core.protos.DeterministicKey} * * <pre> ** * Data attached to a Key message that defines the data needed by the BIP32 deterministic key hierarchy algorithm. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:com.mygeopay.core.protos.DeterministicKey) com.mygeopay.core.protos.Protos.DeterministicKeyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_DeterministicKey_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_DeterministicKey_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mygeopay.core.protos.Protos.DeterministicKey.class,com.mygeopay.core.protos.Protos.DeterministicKey.Builder.class); } // Construct usingcom.mygeopay.core.protos.Protos.DeterministicKey.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); chainCode_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); path_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); issuedSubkeys_ = 0; bitField0_ = (bitField0_ & ~0x00000004); lookaheadSize_ = 0; bitField0_ = (bitField0_ & ~0x00000008); isFollowing_ = false; bitField0_ = (bitField0_ & ~0x00000010); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_DeterministicKey_descriptor; } public com.mygeopay.core.protos.Protos.DeterministicKey getDefaultInstanceForType() { return com.mygeopay.core.protos.Protos.DeterministicKey.getDefaultInstance(); } public com.mygeopay.core.protos.Protos.DeterministicKey build() { com.mygeopay.core.protos.Protos.DeterministicKey result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.mygeopay.core.protos.Protos.DeterministicKey buildPartial() { com.mygeopay.core.protos.Protos.DeterministicKey result = new com.mygeopay.core.protos.Protos.DeterministicKey(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if ((from_bitField0_ & 0x00000001) == 0x00000001) { to_bitField0_ |= 0x00000001; } result.chainCode_ = chainCode_; if ((bitField0_ & 0x00000002) == 0x00000002) { path_ = java.util.Collections.unmodifiableList(path_); bitField0_ = (bitField0_ & ~0x00000002); } result.path_ = path_; if ((from_bitField0_ & 0x00000004) == 0x00000004) { to_bitField0_ |= 0x00000002; } result.issuedSubkeys_ = issuedSubkeys_; if ((from_bitField0_ & 0x00000008) == 0x00000008) { to_bitField0_ |= 0x00000004; } result.lookaheadSize_ = lookaheadSize_; if ((from_bitField0_ & 0x00000010) == 0x00000010) { to_bitField0_ |= 0x00000008; } result.isFollowing_ = isFollowing_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.mygeopay.core.protos.Protos.DeterministicKey) { return mergeFrom((com.mygeopay.core.protos.Protos.DeterministicKey)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.mygeopay.core.protos.Protos.DeterministicKey other) { if (other ==com.mygeopay.core.protos.Protos.DeterministicKey.getDefaultInstance()) return this; if (other.hasChainCode()) { setChainCode(other.getChainCode()); } if (!other.path_.isEmpty()) { if (path_.isEmpty()) { path_ = other.path_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePathIsMutable(); path_.addAll(other.path_); } onChanged(); } if (other.hasIssuedSubkeys()) { setIssuedSubkeys(other.getIssuedSubkeys()); } if (other.hasLookaheadSize()) { setLookaheadSize(other.getLookaheadSize()); } if (other.hasIsFollowing()) { setIsFollowing(other.getIsFollowing()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasChainCode()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.mygeopay.core.protos.Protos.DeterministicKey parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.mygeopay.core.protos.Protos.DeterministicKey) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString chainCode_ = com.google.protobuf.ByteString.EMPTY; /** * <code>required bytes chain_code = 1;</code> * * <pre> * Random data that allows us to extend a key. Without this, we can't figure out the next key in the chain and * should just treat it as a regular ORIGINAL type key. * </pre> */ public boolean hasChainCode() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required bytes chain_code = 1;</code> * * <pre> * Random data that allows us to extend a key. Without this, we can't figure out the next key in the chain and * should just treat it as a regular ORIGINAL type key. * </pre> */ public com.google.protobuf.ByteString getChainCode() { return chainCode_; } /** * <code>required bytes chain_code = 1;</code> * * <pre> * Random data that allows us to extend a key. Without this, we can't figure out the next key in the chain and * should just treat it as a regular ORIGINAL type key. * </pre> */ public Builder setChainCode(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; chainCode_ = value; onChanged(); return this; } /** * <code>required bytes chain_code = 1;</code> * * <pre> * Random data that allows us to extend a key. Without this, we can't figure out the next key in the chain and * should just treat it as a regular ORIGINAL type key. * </pre> */ public Builder clearChainCode() { bitField0_ = (bitField0_ & ~0x00000001); chainCode_ = getDefaultInstance().getChainCode(); onChanged(); return this; } private java.util.List<java.lang.Integer> path_ = java.util.Collections.emptyList(); private void ensurePathIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { path_ = new java.util.ArrayList<java.lang.Integer>(path_); bitField0_ |= 0x00000002; } } /** * <code>repeated uint32 path = 2;</code> * * <pre> * The path through the key tree. Each number is encoded in the standard form: high bit set for private derivation * and high bit unset for public derivation. * </pre> */ public java.util.List<java.lang.Integer> getPathList() { return java.util.Collections.unmodifiableList(path_); } /** * <code>repeated uint32 path = 2;</code> * * <pre> * The path through the key tree. Each number is encoded in the standard form: high bit set for private derivation * and high bit unset for public derivation. * </pre> */ public int getPathCount() { return path_.size(); } /** * <code>repeated uint32 path = 2;</code> * * <pre> * The path through the key tree. Each number is encoded in the standard form: high bit set for private derivation * and high bit unset for public derivation. * </pre> */ public int getPath(int index) { return path_.get(index); } /** * <code>repeated uint32 path = 2;</code> * * <pre> * The path through the key tree. Each number is encoded in the standard form: high bit set for private derivation * and high bit unset for public derivation. * </pre> */ public Builder setPath( int index, int value) { ensurePathIsMutable(); path_.set(index, value); onChanged(); return this; } /** * <code>repeated uint32 path = 2;</code> * * <pre> * The path through the key tree. Each number is encoded in the standard form: high bit set for private derivation * and high bit unset for public derivation. * </pre> */ public Builder addPath(int value) { ensurePathIsMutable(); path_.add(value); onChanged(); return this; } /** * <code>repeated uint32 path = 2;</code> * * <pre> * The path through the key tree. Each number is encoded in the standard form: high bit set for private derivation * and high bit unset for public derivation. * </pre> */ public Builder addAllPath( java.lang.Iterable<? extends java.lang.Integer> values) { ensurePathIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, path_); onChanged(); return this; } /** * <code>repeated uint32 path = 2;</code> * * <pre> * The path through the key tree. Each number is encoded in the standard form: high bit set for private derivation * and high bit unset for public derivation. * </pre> */ public Builder clearPath() { path_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } private int issuedSubkeys_ ; /** * <code>optional uint32 issued_subkeys = 3;</code> * * <pre> * How many children of this key have been issued, that is, given to the user when they requested a fresh key? * For the parents of keys being handed out, this is always less than the true number of children: the difference is * called the lookahead zone. These keys are put into Bloom filters so we can spot transactions made by clones of * this wallet - for instance when restoring from backup or if the seed was shared between devices. * If this field is missing it means we're not issuing subkeys of this key to users. * </pre> */ public boolean hasIssuedSubkeys() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional uint32 issued_subkeys = 3;</code> * * <pre> * How many children of this key have been issued, that is, given to the user when they requested a fresh key? * For the parents of keys being handed out, this is always less than the true number of children: the difference is * called the lookahead zone. These keys are put into Bloom filters so we can spot transactions made by clones of * this wallet - for instance when restoring from backup or if the seed was shared between devices. * If this field is missing it means we're not issuing subkeys of this key to users. * </pre> */ public int getIssuedSubkeys() { return issuedSubkeys_; } /** * <code>optional uint32 issued_subkeys = 3;</code> * * <pre> * How many children of this key have been issued, that is, given to the user when they requested a fresh key? * For the parents of keys being handed out, this is always less than the true number of children: the difference is * called the lookahead zone. These keys are put into Bloom filters so we can spot transactions made by clones of * this wallet - for instance when restoring from backup or if the seed was shared between devices. * If this field is missing it means we're not issuing subkeys of this key to users. * </pre> */ public Builder setIssuedSubkeys(int value) { bitField0_ |= 0x00000004; issuedSubkeys_ = value; onChanged(); return this; } /** * <code>optional uint32 issued_subkeys = 3;</code> * * <pre> * How many children of this key have been issued, that is, given to the user when they requested a fresh key? * For the parents of keys being handed out, this is always less than the true number of children: the difference is * called the lookahead zone. These keys are put into Bloom filters so we can spot transactions made by clones of * this wallet - for instance when restoring from backup or if the seed was shared between devices. * If this field is missing it means we're not issuing subkeys of this key to users. * </pre> */ public Builder clearIssuedSubkeys() { bitField0_ = (bitField0_ & ~0x00000004); issuedSubkeys_ = 0; onChanged(); return this; } private int lookaheadSize_ ; /** * <code>optional uint32 lookahead_size = 4;</code> */ public boolean hasLookaheadSize() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional uint32 lookahead_size = 4;</code> */ public int getLookaheadSize() { return lookaheadSize_; } /** * <code>optional uint32 lookahead_size = 4;</code> */ public Builder setLookaheadSize(int value) { bitField0_ |= 0x00000008; lookaheadSize_ = value; onChanged(); return this; } /** * <code>optional uint32 lookahead_size = 4;</code> */ public Builder clearLookaheadSize() { bitField0_ = (bitField0_ & ~0x00000008); lookaheadSize_ = 0; onChanged(); return this; } private boolean isFollowing_ ; /** * <code>optional bool isFollowing = 5;</code> * * <pre> ** * Flag indicating that this key is a root of a following chain. This chain is following the next non-following chain. * Following/followed chains concept is used for married keychains, where the set of keys combined together to produce * a single P2SH multisignature address * </pre> */ public boolean hasIsFollowing() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional bool isFollowing = 5;</code> * * <pre> ** * Flag indicating that this key is a root of a following chain. This chain is following the next non-following chain. * Following/followed chains concept is used for married keychains, where the set of keys combined together to produce * a single P2SH multisignature address * </pre> */ public boolean getIsFollowing() { return isFollowing_; } /** * <code>optional bool isFollowing = 5;</code> * * <pre> ** * Flag indicating that this key is a root of a following chain. This chain is following the next non-following chain. * Following/followed chains concept is used for married keychains, where the set of keys combined together to produce * a single P2SH multisignature address * </pre> */ public Builder setIsFollowing(boolean value) { bitField0_ |= 0x00000010; isFollowing_ = value; onChanged(); return this; } /** * <code>optional bool isFollowing = 5;</code> * * <pre> ** * Flag indicating that this key is a root of a following chain. This chain is following the next non-following chain. * Following/followed chains concept is used for married keychains, where the set of keys combined together to produce * a single P2SH multisignature address * </pre> */ public Builder clearIsFollowing() { bitField0_ = (bitField0_ & ~0x00000010); isFollowing_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.mygeopay.core.protos.DeterministicKey) } static { defaultInstance = new DeterministicKey(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.mygeopay.core.protos.DeterministicKey) } public interface KeyOrBuilder extends // @@protoc_insertion_point(interface_extends:com.mygeopay.core.protos.Key) com.google.protobuf.MessageOrBuilder { /** * <code>required .com.mygeopay.core.protos.Key.Type type = 1;</code> */ boolean hasType(); /** * <code>required .com.mygeopay.core.protos.Key.Type type = 1;</code> */ com.mygeopay.core.protos.Protos.Key.Type getType(); /** * <code>optional bytes secret_bytes = 2;</code> * * <pre> * Either the private EC key bytes (without any ASN.1 wrapping), or the deterministic root seed. * If the secret is encrypted, or this is a "watching entry" then this is missing. * </pre> */ boolean hasSecretBytes(); /** * <code>optional bytes secret_bytes = 2;</code> * * <pre> * Either the private EC key bytes (without any ASN.1 wrapping), or the deterministic root seed. * If the secret is encrypted, or this is a "watching entry" then this is missing. * </pre> */ com.google.protobuf.ByteString getSecretBytes(); /** * <code>optional .com.mygeopay.core.protos.EncryptedData encrypted_data = 3;</code> * * <pre> * If the secret data is encrypted, then secret_bytes is missing and this field is set. * </pre> */ boolean hasEncryptedData(); /** * <code>optional .com.mygeopay.core.protos.EncryptedData encrypted_data = 3;</code> * * <pre> * If the secret data is encrypted, then secret_bytes is missing and this field is set. * </pre> */ com.mygeopay.core.protos.Protos.EncryptedData getEncryptedData(); /** * <code>optional .com.mygeopay.core.protos.EncryptedData encrypted_data = 3;</code> * * <pre> * If the secret data is encrypted, then secret_bytes is missing and this field is set. * </pre> */ com.mygeopay.core.protos.Protos.EncryptedDataOrBuilder getEncryptedDataOrBuilder(); /** * <code>optional bytes public_key = 4;</code> * * <pre> * The public EC key derived from the private key. We allow both to be stored to avoid mobile clients having to * do lots of slow EC math on startup. For DETERMINISTIC_MNEMONIC entries this is missing. * </pre> */ boolean hasPublicKey(); /** * <code>optional bytes public_key = 4;</code> * * <pre> * The public EC key derived from the private key. We allow both to be stored to avoid mobile clients having to * do lots of slow EC math on startup. For DETERMINISTIC_MNEMONIC entries this is missing. * </pre> */ com.google.protobuf.ByteString getPublicKey(); /** * <code>optional string label = 5;</code> * * <pre> * User-provided label associated with the key. * </pre> */ boolean hasLabel(); /** * <code>optional string label = 5;</code> * * <pre> * User-provided label associated with the key. * </pre> */ java.lang.String getLabel(); /** * <code>optional string label = 5;</code> * * <pre> * User-provided label associated with the key. * </pre> */ com.google.protobuf.ByteString getLabelBytes(); /** * <code>optional .com.mygeopay.core.protos.DeterministicKey deterministic_key = 6;</code> */ boolean hasDeterministicKey(); /** * <code>optional .com.mygeopay.core.protos.DeterministicKey deterministic_key = 6;</code> */ com.mygeopay.core.protos.Protos.DeterministicKey getDeterministicKey(); /** * <code>optional .com.mygeopay.core.protos.DeterministicKey deterministic_key = 6;</code> */ com.mygeopay.core.protos.Protos.DeterministicKeyOrBuilder getDeterministicKeyOrBuilder(); } /** * Protobuf type {@codecom.mygeopay.core.protos.Key} * * <pre> ** * A key used to control Bitcoin spending. * Either the private key, the public key or both may be present. It is recommended that * if the private key is provided that the public key is provided too because deriving it is slow. * If only the public key is provided, the key can only be used to watch the blockchain and verify * transactions, and not for spending. * </pre> */ public static final class Key extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:com.mygeopay.core.protos.Key) KeyOrBuilder { // Use Key.newBuilder() to construct. private Key(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Key(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Key defaultInstance; public static Key getDefaultInstance() { return defaultInstance; } public Key getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Key( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); com.mygeopay.core.protos.Protos.Key.Type value =com.mygeopay.core.protos.Protos.Key.Type.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; type_ = value; } break; } case 18: { bitField0_ |= 0x00000002; secretBytes_ = input.readBytes(); break; } case 26: { com.mygeopay.core.protos.Protos.EncryptedData.Builder subBuilder = null; if ((bitField0_ & 0x00000004) == 0x00000004) { subBuilder = encryptedData_.toBuilder(); } encryptedData_ = input.readMessage(com.mygeopay.core.protos.Protos.EncryptedData.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(encryptedData_); encryptedData_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 34: { bitField0_ |= 0x00000008; publicKey_ = input.readBytes(); break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; label_ = bs; break; } case 50: { com.mygeopay.core.protos.Protos.DeterministicKey.Builder subBuilder = null; if ((bitField0_ & 0x00000020) == 0x00000020) { subBuilder = deterministicKey_.toBuilder(); } deterministicKey_ = input.readMessage(com.mygeopay.core.protos.Protos.DeterministicKey.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(deterministicKey_); deterministicKey_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000020; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_Key_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_Key_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mygeopay.core.protos.Protos.Key.class,com.mygeopay.core.protos.Protos.Key.Builder.class); } public static final com.google.protobuf.Parser<Key> PARSER = new com.google.protobuf.AbstractParser<Key>() { public Key parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Key(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<Key> getParserForType() { return PARSER; } /** * Protobuf enum {@codecom.mygeopay.core.protos.Key.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * <code>ORIGINAL = 1;</code> * * <pre> ** Unencrypted - Original bitcoin secp256k1 curve * </pre> */ ORIGINAL(0, 1), /** * <code>ENCRYPTED_SCRYPT_AES = 2;</code> * * <pre> ** Encrypted with Scrypt and AES - Original bitcoin secp256k1 curve * </pre> */ ENCRYPTED_SCRYPT_AES(1, 2), /** * <code>DETERMINISTIC_MNEMONIC = 3;</code> * * <pre> ** * Not really a key, but rather contains the mnemonic phrase for a deterministic key hierarchy in the private_key field. * The label and public_key fields are missing. Creation timestamp will exist. * </pre> */ DETERMINISTIC_MNEMONIC(2, 3), /** * <code>DETERMINISTIC_KEY = 4;</code> * * <pre> ** * A key that was derived deterministically. Note that the root seed that created it may NOT be present in the * wallet, for the case of watching wallets. A deterministic key may or may not have the private key bytes present. * However the public key bytes and the deterministic_key field are guaranteed to exist. In a wallet where there * is a path from this key up to a key that has (possibly encrypted) private bytes, it's expected that the private * key can be rederived on the fly. * </pre> */ DETERMINISTIC_KEY(3, 4), ; /** * <code>ORIGINAL = 1;</code> * * <pre> ** Unencrypted - Original bitcoin secp256k1 curve * </pre> */ public static final int ORIGINAL_VALUE = 1; /** * <code>ENCRYPTED_SCRYPT_AES = 2;</code> * * <pre> ** Encrypted with Scrypt and AES - Original bitcoin secp256k1 curve * </pre> */ public static final int ENCRYPTED_SCRYPT_AES_VALUE = 2; /** * <code>DETERMINISTIC_MNEMONIC = 3;</code> * * <pre> ** * Not really a key, but rather contains the mnemonic phrase for a deterministic key hierarchy in the private_key field. * The label and public_key fields are missing. Creation timestamp will exist. * </pre> */ public static final int DETERMINISTIC_MNEMONIC_VALUE = 3; /** * <code>DETERMINISTIC_KEY = 4;</code> * * <pre> ** * A key that was derived deterministically. Note that the root seed that created it may NOT be present in the * wallet, for the case of watching wallets. A deterministic key may or may not have the private key bytes present. * However the public key bytes and the deterministic_key field are guaranteed to exist. In a wallet where there * is a path from this key up to a key that has (possibly encrypted) private bytes, it's expected that the private * key can be rederived on the fly. * </pre> */ public static final int DETERMINISTIC_KEY_VALUE = 4; public final int getNumber() { return value; } public static Type valueOf(int value) { switch (value) { case 1: return ORIGINAL; case 2: return ENCRYPTED_SCRYPT_AES; case 3: return DETERMINISTIC_MNEMONIC; case 4: return DETERMINISTIC_KEY; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<Type> internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap<Type> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<Type>() { public Type findValueByNumber(int number) { return Type.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.mygeopay.core.protos.Protos.Key.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private Type(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:com.mygeopay.core.protos.Key.Type) } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private com.mygeopay.core.protos.Protos.Key.Type type_; /** * <code>required .com.mygeopay.core.protos.Key.Type type = 1;</code> */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required .com.mygeopay.core.protos.Key.Type type = 1;</code> */ public com.mygeopay.core.protos.Protos.Key.Type getType() { return type_; } public static final int SECRET_BYTES_FIELD_NUMBER = 2; private com.google.protobuf.ByteString secretBytes_; /** * <code>optional bytes secret_bytes = 2;</code> * * <pre> * Either the private EC key bytes (without any ASN.1 wrapping), or the deterministic root seed. * If the secret is encrypted, or this is a "watching entry" then this is missing. * </pre> */ public boolean hasSecretBytes() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional bytes secret_bytes = 2;</code> * * <pre> * Either the private EC key bytes (without any ASN.1 wrapping), or the deterministic root seed. * If the secret is encrypted, or this is a "watching entry" then this is missing. * </pre> */ public com.google.protobuf.ByteString getSecretBytes() { return secretBytes_; } public static final int ENCRYPTED_DATA_FIELD_NUMBER = 3; private com.mygeopay.core.protos.Protos.EncryptedData encryptedData_; /** * <code>optional .com.mygeopay.core.protos.EncryptedData encrypted_data = 3;</code> * * <pre> * If the secret data is encrypted, then secret_bytes is missing and this field is set. * </pre> */ public boolean hasEncryptedData() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .com.mygeopay.core.protos.EncryptedData encrypted_data = 3;</code> * * <pre> * If the secret data is encrypted, then secret_bytes is missing and this field is set. * </pre> */ public com.mygeopay.core.protos.Protos.EncryptedData getEncryptedData() { return encryptedData_; } /** * <code>optional .com.mygeopay.core.protos.EncryptedData encrypted_data = 3;</code> * * <pre> * If the secret data is encrypted, then secret_bytes is missing and this field is set. * </pre> */ public com.mygeopay.core.protos.Protos.EncryptedDataOrBuilder getEncryptedDataOrBuilder() { return encryptedData_; } public static final int PUBLIC_KEY_FIELD_NUMBER = 4; private com.google.protobuf.ByteString publicKey_; /** * <code>optional bytes public_key = 4;</code> * * <pre> * The public EC key derived from the private key. We allow both to be stored to avoid mobile clients having to * do lots of slow EC math on startup. For DETERMINISTIC_MNEMONIC entries this is missing. * </pre> */ public boolean hasPublicKey() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional bytes public_key = 4;</code> * * <pre> * The public EC key derived from the private key. We allow both to be stored to avoid mobile clients having to * do lots of slow EC math on startup. For DETERMINISTIC_MNEMONIC entries this is missing. * </pre> */ public com.google.protobuf.ByteString getPublicKey() { return publicKey_; } public static final int LABEL_FIELD_NUMBER = 5; private java.lang.Object label_; /** * <code>optional string label = 5;</code> * * <pre> * User-provided label associated with the key. * </pre> */ public boolean hasLabel() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional string label = 5;</code> * * <pre> * User-provided label associated with the key. * </pre> */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { label_ = s; } return s; } } /** * <code>optional string label = 5;</code> * * <pre> * User-provided label associated with the key. * </pre> */ public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); label_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DETERMINISTIC_KEY_FIELD_NUMBER = 6; private com.mygeopay.core.protos.Protos.DeterministicKey deterministicKey_; /** * <code>optional .com.mygeopay.core.protos.DeterministicKey deterministic_key = 6;</code> */ public boolean hasDeterministicKey() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional .com.mygeopay.core.protos.DeterministicKey deterministic_key = 6;</code> */ public com.mygeopay.core.protos.Protos.DeterministicKey getDeterministicKey() { return deterministicKey_; } /** * <code>optional .com.mygeopay.core.protos.DeterministicKey deterministic_key = 6;</code> */ public com.mygeopay.core.protos.Protos.DeterministicKeyOrBuilder getDeterministicKeyOrBuilder() { return deterministicKey_; } private void initFields() { type_ =com.mygeopay.core.protos.Protos.Key.Type.ORIGINAL; secretBytes_ = com.google.protobuf.ByteString.EMPTY; encryptedData_ =com.mygeopay.core.protos.Protos.EncryptedData.getDefaultInstance(); publicKey_ = com.google.protobuf.ByteString.EMPTY; label_ = ""; deterministicKey_ =com.mygeopay.core.protos.Protos.DeterministicKey.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasType()) { memoizedIsInitialized = 0; return false; } if (hasEncryptedData() && !getEncryptedData().isInitialized()) { memoizedIsInitialized = 0; return false; } if (hasDeterministicKey() && !getDeterministicKey().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if ((bitField0_ & 0x00000001) == 0x00000001) { output.writeEnum(1, type_.getNumber()); } if ((bitField0_ & 0x00000002) == 0x00000002) { output.writeBytes(2, secretBytes_); } if ((bitField0_ & 0x00000004) == 0x00000004) { output.writeMessage(3, encryptedData_); } if ((bitField0_ & 0x00000008) == 0x00000008) { output.writeBytes(4, publicKey_); } if ((bitField0_ & 0x00000010) == 0x00000010) { output.writeBytes(5, getLabelBytes()); } if ((bitField0_ & 0x00000020) == 0x00000020) { output.writeMessage(6, deterministicKey_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if ((bitField0_ & 0x00000001) == 0x00000001) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_.getNumber()); } if ((bitField0_ & 0x00000002) == 0x00000002) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, secretBytes_); } if ((bitField0_ & 0x00000004) == 0x00000004) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, encryptedData_); } if ((bitField0_ & 0x00000008) == 0x00000008) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, publicKey_); } if ((bitField0_ & 0x00000010) == 0x00000010) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, getLabelBytes()); } if ((bitField0_ & 0x00000020) == 0x00000020) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, deterministicKey_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.mygeopay.core.protos.Protos.Key parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mygeopay.core.protos.Protos.Key parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mygeopay.core.protos.Protos.Key parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mygeopay.core.protos.Protos.Key parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mygeopay.core.protos.Protos.Key parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.mygeopay.core.protos.Protos.Key parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.mygeopay.core.protos.Protos.Key parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.mygeopay.core.protos.Protos.Key parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.mygeopay.core.protos.Protos.Key parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.mygeopay.core.protos.Protos.Key parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.mygeopay.core.protos.Protos.Key prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@codecom.mygeopay.core.protos.Key} * * <pre> ** * A key used to control Bitcoin spending. * Either the private key, the public key or both may be present. It is recommended that * if the private key is provided that the public key is provided too because deriving it is slow. * If only the public key is provided, the key can only be used to watch the blockchain and verify * transactions, and not for spending. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:com.mygeopay.core.protos.Key) com.mygeopay.core.protos.Protos.KeyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_Key_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_Key_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mygeopay.core.protos.Protos.Key.class,com.mygeopay.core.protos.Protos.Key.Builder.class); } // Construct usingcom.mygeopay.core.protos.Protos.Key.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getEncryptedDataFieldBuilder(); getDeterministicKeyFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); type_ =com.mygeopay.core.protos.Protos.Key.Type.ORIGINAL; bitField0_ = (bitField0_ & ~0x00000001); secretBytes_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); if (encryptedDataBuilder_ == null) { encryptedData_ =com.mygeopay.core.protos.Protos.EncryptedData.getDefaultInstance(); } else { encryptedDataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); publicKey_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); label_ = ""; bitField0_ = (bitField0_ & ~0x00000010); if (deterministicKeyBuilder_ == null) { deterministicKey_ =com.mygeopay.core.protos.Protos.DeterministicKey.getDefaultInstance(); } else { deterministicKeyBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_Key_descriptor; } public com.mygeopay.core.protos.Protos.Key getDefaultInstanceForType() { return com.mygeopay.core.protos.Protos.Key.getDefaultInstance(); } public com.mygeopay.core.protos.Protos.Key build() { com.mygeopay.core.protos.Protos.Key result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.mygeopay.core.protos.Protos.Key buildPartial() { com.mygeopay.core.protos.Protos.Key result = new com.mygeopay.core.protos.Protos.Key(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.type_ = type_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.secretBytes_ = secretBytes_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (encryptedDataBuilder_ == null) { result.encryptedData_ = encryptedData_; } else { result.encryptedData_ = encryptedDataBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.publicKey_ = publicKey_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.label_ = label_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } if (deterministicKeyBuilder_ == null) { result.deterministicKey_ = deterministicKey_; } else { result.deterministicKey_ = deterministicKeyBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.mygeopay.core.protos.Protos.Key) { return mergeFrom((com.mygeopay.core.protos.Protos.Key)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.mygeopay.core.protos.Protos.Key other) { if (other ==com.mygeopay.core.protos.Protos.Key.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasSecretBytes()) { setSecretBytes(other.getSecretBytes()); } if (other.hasEncryptedData()) { mergeEncryptedData(other.getEncryptedData()); } if (other.hasPublicKey()) { setPublicKey(other.getPublicKey()); } if (other.hasLabel()) { bitField0_ |= 0x00000010; label_ = other.label_; onChanged(); } if (other.hasDeterministicKey()) { mergeDeterministicKey(other.getDeterministicKey()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasType()) { return false; } if (hasEncryptedData()) { if (!getEncryptedData().isInitialized()) { return false; } } if (hasDeterministicKey() && !getDeterministicKey().isInitialized()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.mygeopay.core.protos.Protos.Key parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.mygeopay.core.protos.Protos.Key) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.mygeopay.core.protos.Protos.Key.Type type_ =com.mygeopay.core.protos.Protos.Key.Type.ORIGINAL; /** * <code>required .com.mygeopay.core.protos.Key.Type type = 1;</code> */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required .com.mygeopay.core.protos.Key.Type type = 1;</code> */ public com.mygeopay.core.protos.Protos.Key.Type getType() { return type_; } /** * <code>required .com.mygeopay.core.protos.Key.Type type = 1;</code> */ public Builder setType(com.mygeopay.core.protos.Protos.Key.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } /** * <code>required .com.mygeopay.core.protos.Key.Type type = 1;</code> */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ =com.mygeopay.core.protos.Protos.Key.Type.ORIGINAL; onChanged(); return this; } private com.google.protobuf.ByteString secretBytes_ = com.google.protobuf.ByteString.EMPTY; /** * <code>optional bytes secret_bytes = 2;</code> * * <pre> * Either the private EC key bytes (without any ASN.1 wrapping), or the deterministic root seed. * If the secret is encrypted, or this is a "watching entry" then this is missing. * </pre> */ public boolean hasSecretBytes() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional bytes secret_bytes = 2;</code> * * <pre> * Either the private EC key bytes (without any ASN.1 wrapping), or the deterministic root seed. * If the secret is encrypted, or this is a "watching entry" then this is missing. * </pre> */ public com.google.protobuf.ByteString getSecretBytes() { return secretBytes_; } /** * <code>optional bytes secret_bytes = 2;</code> * * <pre> * Either the private EC key bytes (without any ASN.1 wrapping), or the deterministic root seed. * If the secret is encrypted, or this is a "watching entry" then this is missing. * </pre> */ public Builder setSecretBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; secretBytes_ = value; onChanged(); return this; } /** * <code>optional bytes secret_bytes = 2;</code> * * <pre> * Either the private EC key bytes (without any ASN.1 wrapping), or the deterministic root seed. * If the secret is encrypted, or this is a "watching entry" then this is missing. * </pre> */ public Builder clearSecretBytes() { bitField0_ = (bitField0_ & ~0x00000002); secretBytes_ = getDefaultInstance().getSecretBytes(); onChanged(); return this; } private com.mygeopay.core.protos.Protos.EncryptedData encryptedData_ =com.mygeopay.core.protos.Protos.EncryptedData.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< com.mygeopay.core.protos.Protos.EncryptedData,com.mygeopay.core.protos.Protos.EncryptedData.Builder,com.mygeopay.core.protos.Protos.EncryptedDataOrBuilder> encryptedDataBuilder_; /** * <code>optional .com.mygeopay.core.protos.EncryptedData encrypted_data = 3;</code> * * <pre> * If the secret data is encrypted, then secret_bytes is missing and this field is set. * </pre> */ public boolean hasEncryptedData() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .com.mygeopay.core.protos.EncryptedData encrypted_data = 3;</code> * * <pre> * If the secret data is encrypted, then secret_bytes is missing and this field is set. * </pre> */ public com.mygeopay.core.protos.Protos.EncryptedData getEncryptedData() { if (encryptedDataBuilder_ == null) { return encryptedData_; } else { return encryptedDataBuilder_.getMessage(); } } /** * <code>optional .com.mygeopay.core.protos.EncryptedData encrypted_data = 3;</code> * * <pre> * If the secret data is encrypted, then secret_bytes is missing and this field is set. * </pre> */ public Builder setEncryptedData(com.mygeopay.core.protos.Protos.EncryptedData value) { if (encryptedDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } encryptedData_ = value; onChanged(); } else { encryptedDataBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .com.mygeopay.core.protos.EncryptedData encrypted_data = 3;</code> * * <pre> * If the secret data is encrypted, then secret_bytes is missing and this field is set. * </pre> */ public Builder setEncryptedData( com.mygeopay.core.protos.Protos.EncryptedData.Builder builderForValue) { if (encryptedDataBuilder_ == null) { encryptedData_ = builderForValue.build(); onChanged(); } else { encryptedDataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .com.mygeopay.core.protos.EncryptedData encrypted_data = 3;</code> * * <pre> * If the secret data is encrypted, then secret_bytes is missing and this field is set. * </pre> */ public Builder mergeEncryptedData(com.mygeopay.core.protos.Protos.EncryptedData value) { if (encryptedDataBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && encryptedData_ !=com.mygeopay.core.protos.Protos.EncryptedData.getDefaultInstance()) { encryptedData_ = com.mygeopay.core.protos.Protos.EncryptedData.newBuilder(encryptedData_).mergeFrom(value).buildPartial(); } else { encryptedData_ = value; } onChanged(); } else { encryptedDataBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .com.mygeopay.core.protos.EncryptedData encrypted_data = 3;</code> * * <pre> * If the secret data is encrypted, then secret_bytes is missing and this field is set. * </pre> */ public Builder clearEncryptedData() { if (encryptedDataBuilder_ == null) { encryptedData_ =com.mygeopay.core.protos.Protos.EncryptedData.getDefaultInstance(); onChanged(); } else { encryptedDataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * <code>optional .com.mygeopay.core.protos.EncryptedData encrypted_data = 3;</code> * * <pre> * If the secret data is encrypted, then secret_bytes is missing and this field is set. * </pre> */ public com.mygeopay.core.protos.Protos.EncryptedData.Builder getEncryptedDataBuilder() { bitField0_ |= 0x00000004; onChanged(); return getEncryptedDataFieldBuilder().getBuilder(); } /** * <code>optional .com.mygeopay.core.protos.EncryptedData encrypted_data = 3;</code> * * <pre> * If the secret data is encrypted, then secret_bytes is missing and this field is set. * </pre> */ public com.mygeopay.core.protos.Protos.EncryptedDataOrBuilder getEncryptedDataOrBuilder() { if (encryptedDataBuilder_ != null) { return encryptedDataBuilder_.getMessageOrBuilder(); } else { return encryptedData_; } } /** * <code>optional .com.mygeopay.core.protos.EncryptedData encrypted_data = 3;</code> * * <pre> * If the secret data is encrypted, then secret_bytes is missing and this field is set. * </pre> */ private com.google.protobuf.SingleFieldBuilder< com.mygeopay.core.protos.Protos.EncryptedData,com.mygeopay.core.protos.Protos.EncryptedData.Builder,com.mygeopay.core.protos.Protos.EncryptedDataOrBuilder> getEncryptedDataFieldBuilder() { if (encryptedDataBuilder_ == null) { encryptedDataBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.mygeopay.core.protos.Protos.EncryptedData,com.mygeopay.core.protos.Protos.EncryptedData.Builder,com.mygeopay.core.protos.Protos.EncryptedDataOrBuilder>( getEncryptedData(), getParentForChildren(), isClean()); encryptedData_ = null; } return encryptedDataBuilder_; } private com.google.protobuf.ByteString publicKey_ = com.google.protobuf.ByteString.EMPTY; /** * <code>optional bytes public_key = 4;</code> * * <pre> * The public EC key derived from the private key. We allow both to be stored to avoid mobile clients having to * do lots of slow EC math on startup. For DETERMINISTIC_MNEMONIC entries this is missing. * </pre> */ public boolean hasPublicKey() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional bytes public_key = 4;</code> * * <pre> * The public EC key derived from the private key. We allow both to be stored to avoid mobile clients having to * do lots of slow EC math on startup. For DETERMINISTIC_MNEMONIC entries this is missing. * </pre> */ public com.google.protobuf.ByteString getPublicKey() { return publicKey_; } /** * <code>optional bytes public_key = 4;</code> * * <pre> * The public EC key derived from the private key. We allow both to be stored to avoid mobile clients having to * do lots of slow EC math on startup. For DETERMINISTIC_MNEMONIC entries this is missing. * </pre> */ public Builder setPublicKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; publicKey_ = value; onChanged(); return this; } /** * <code>optional bytes public_key = 4;</code> * * <pre> * The public EC key derived from the private key. We allow both to be stored to avoid mobile clients having to * do lots of slow EC math on startup. For DETERMINISTIC_MNEMONIC entries this is missing. * </pre> */ public Builder clearPublicKey() { bitField0_ = (bitField0_ & ~0x00000008); publicKey_ = getDefaultInstance().getPublicKey(); onChanged(); return this; } private java.lang.Object label_ = ""; /** * <code>optional string label = 5;</code> * * <pre> * User-provided label associated with the key. * </pre> */ public boolean hasLabel() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional string label = 5;</code> * * <pre> * User-provided label associated with the key. * </pre> */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { label_ = s; } return s; } else { return (java.lang.String) ref; } } /** * <code>optional string label = 5;</code> * * <pre> * User-provided label associated with the key. * </pre> */ public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); label_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string label = 5;</code> * * <pre> * User-provided label associated with the key. * </pre> */ public Builder setLabel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; label_ = value; onChanged(); return this; } /** * <code>optional string label = 5;</code> * * <pre> * User-provided label associated with the key. * </pre> */ public Builder clearLabel() { bitField0_ = (bitField0_ & ~0x00000010); label_ = getDefaultInstance().getLabel(); onChanged(); return this; } /** * <code>optional string label = 5;</code> * * <pre> * User-provided label associated with the key. * </pre> */ public Builder setLabelBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; label_ = value; onChanged(); return this; } private com.mygeopay.core.protos.Protos.DeterministicKey deterministicKey_ =com.mygeopay.core.protos.Protos.DeterministicKey.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< com.mygeopay.core.protos.Protos.DeterministicKey,com.mygeopay.core.protos.Protos.DeterministicKey.Builder,com.mygeopay.core.protos.Protos.DeterministicKeyOrBuilder> deterministicKeyBuilder_; /** * <code>optional .com.mygeopay.core.protos.DeterministicKey deterministic_key = 6;</code> */ public boolean hasDeterministicKey() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional .com.mygeopay.core.protos.DeterministicKey deterministic_key = 6;</code> */ public com.mygeopay.core.protos.Protos.DeterministicKey getDeterministicKey() { if (deterministicKeyBuilder_ == null) { return deterministicKey_; } else { return deterministicKeyBuilder_.getMessage(); } } /** * <code>optional .com.mygeopay.core.protos.DeterministicKey deterministic_key = 6;</code> */ public Builder setDeterministicKey(com.mygeopay.core.protos.Protos.DeterministicKey value) { if (deterministicKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } deterministicKey_ = value; onChanged(); } else { deterministicKeyBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** * <code>optional .com.mygeopay.core.protos.DeterministicKey deterministic_key = 6;</code> */ public Builder setDeterministicKey( com.mygeopay.core.protos.Protos.DeterministicKey.Builder builderForValue) { if (deterministicKeyBuilder_ == null) { deterministicKey_ = builderForValue.build(); onChanged(); } else { deterministicKeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** * <code>optional .com.mygeopay.core.protos.DeterministicKey deterministic_key = 6;</code> */ public Builder mergeDeterministicKey(com.mygeopay.core.protos.Protos.DeterministicKey value) { if (deterministicKeyBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && deterministicKey_ !=com.mygeopay.core.protos.Protos.DeterministicKey.getDefaultInstance()) { deterministicKey_ = com.mygeopay.core.protos.Protos.DeterministicKey.newBuilder(deterministicKey_).mergeFrom(value).buildPartial(); } else { deterministicKey_ = value; } onChanged(); } else { deterministicKeyBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** * <code>optional .com.mygeopay.core.protos.DeterministicKey deterministic_key = 6;</code> */ public Builder clearDeterministicKey() { if (deterministicKeyBuilder_ == null) { deterministicKey_ =com.mygeopay.core.protos.Protos.DeterministicKey.getDefaultInstance(); onChanged(); } else { deterministicKeyBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** * <code>optional .com.mygeopay.core.protos.DeterministicKey deterministic_key = 6;</code> */ public com.mygeopay.core.protos.Protos.DeterministicKey.Builder getDeterministicKeyBuilder() { bitField0_ |= 0x00000020; onChanged(); return getDeterministicKeyFieldBuilder().getBuilder(); } /** * <code>optional .com.mygeopay.core.protos.DeterministicKey deterministic_key = 6;</code> */ public com.mygeopay.core.protos.Protos.DeterministicKeyOrBuilder getDeterministicKeyOrBuilder() { if (deterministicKeyBuilder_ != null) { return deterministicKeyBuilder_.getMessageOrBuilder(); } else { return deterministicKey_; } } /** * <code>optional .com.mygeopay.core.protos.DeterministicKey deterministic_key = 6;</code> */ private com.google.protobuf.SingleFieldBuilder< com.mygeopay.core.protos.Protos.DeterministicKey,com.mygeopay.core.protos.Protos.DeterministicKey.Builder,com.mygeopay.core.protos.Protos.DeterministicKeyOrBuilder> getDeterministicKeyFieldBuilder() { if (deterministicKeyBuilder_ == null) { deterministicKeyBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.mygeopay.core.protos.Protos.DeterministicKey,com.mygeopay.core.protos.Protos.DeterministicKey.Builder,com.mygeopay.core.protos.Protos.DeterministicKeyOrBuilder>( getDeterministicKey(), getParentForChildren(), isClean()); deterministicKey_ = null; } return deterministicKeyBuilder_; } // @@protoc_insertion_point(builder_scope:com.mygeopay.core.protos.Key) } static { defaultInstance = new Key(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.mygeopay.core.protos.Key) } public interface TransactionInputOrBuilder extends // @@protoc_insertion_point(interface_extends:com.mygeopay.core.protos.TransactionInput) com.google.protobuf.MessageOrBuilder { /** * <code>required bytes transaction_out_point_hash = 1;</code> * * <pre> * Hash of the transaction this input is using. * </pre> */ boolean hasTransactionOutPointHash(); /** * <code>required bytes transaction_out_point_hash = 1;</code> * * <pre> * Hash of the transaction this input is using. * </pre> */ com.google.protobuf.ByteString getTransactionOutPointHash(); /** * <code>required uint32 transaction_out_point_index = 2;</code> * * <pre> * Index of transaction output used by this input. * </pre> */ boolean hasTransactionOutPointIndex(); /** * <code>required uint32 transaction_out_point_index = 2;</code> * * <pre> * Index of transaction output used by this input. * </pre> */ int getTransactionOutPointIndex(); /** * <code>required bytes script_bytes = 3;</code> * * <pre> * Script that contains the signatures/pubkeys. * </pre> */ boolean hasScriptBytes(); /** * <code>required bytes script_bytes = 3;</code> * * <pre> * Script that contains the signatures/pubkeys. * </pre> */ com.google.protobuf.ByteString getScriptBytes(); /** * <code>optional uint32 sequence = 4;</code> * * <pre> * Sequence number. Currently unused, but intended for contracts in future. * </pre> */ boolean hasSequence(); /** * <code>optional uint32 sequence = 4;</code> * * <pre> * Sequence number. Currently unused, but intended for contracts in future. * </pre> */ int getSequence(); /** * <code>optional int64 value = 5;</code> * * <pre> * Value of connected output, if known * </pre> */ boolean hasValue(); /** * <code>optional int64 value = 5;</code> * * <pre> * Value of connected output, if known * </pre> */ long getValue(); } /** * Protobuf type {@codecom.mygeopay.core.protos.TransactionInput} */ public static final class TransactionInput extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:com.mygeopay.core.protos.TransactionInput) TransactionInputOrBuilder { // Use TransactionInput.newBuilder() to construct. private TransactionInput(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TransactionInput(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TransactionInput defaultInstance; public static TransactionInput getDefaultInstance() { return defaultInstance; } public TransactionInput getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TransactionInput( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; transactionOutPointHash_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; transactionOutPointIndex_ = input.readUInt32(); break; } case 26: { bitField0_ |= 0x00000004; scriptBytes_ = input.readBytes(); break; } case 32: { bitField0_ |= 0x00000008; sequence_ = input.readUInt32(); break; } case 40: { bitField0_ |= 0x00000010; value_ = input.readInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_TransactionInput_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_TransactionInput_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mygeopay.core.protos.Protos.TransactionInput.class,com.mygeopay.core.protos.Protos.TransactionInput.Builder.class); } public static final com.google.protobuf.Parser<TransactionInput> PARSER = new com.google.protobuf.AbstractParser<TransactionInput>() { public TransactionInput parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TransactionInput(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<TransactionInput> getParserForType() { return PARSER; } private int bitField0_; public static final int TRANSACTION_OUT_POINT_HASH_FIELD_NUMBER = 1; private com.google.protobuf.ByteString transactionOutPointHash_; /** * <code>required bytes transaction_out_point_hash = 1;</code> * * <pre> * Hash of the transaction this input is using. * </pre> */ public boolean hasTransactionOutPointHash() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required bytes transaction_out_point_hash = 1;</code> * * <pre> * Hash of the transaction this input is using. * </pre> */ public com.google.protobuf.ByteString getTransactionOutPointHash() { return transactionOutPointHash_; } public static final int TRANSACTION_OUT_POINT_INDEX_FIELD_NUMBER = 2; private int transactionOutPointIndex_; /** * <code>required uint32 transaction_out_point_index = 2;</code> * * <pre> * Index of transaction output used by this input. * </pre> */ public boolean hasTransactionOutPointIndex() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required uint32 transaction_out_point_index = 2;</code> * * <pre> * Index of transaction output used by this input. * </pre> */ public int getTransactionOutPointIndex() { return transactionOutPointIndex_; } public static final int SCRIPT_BYTES_FIELD_NUMBER = 3; private com.google.protobuf.ByteString scriptBytes_; /** * <code>required bytes script_bytes = 3;</code> * * <pre> * Script that contains the signatures/pubkeys. * </pre> */ public boolean hasScriptBytes() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>required bytes script_bytes = 3;</code> * * <pre> * Script that contains the signatures/pubkeys. * </pre> */ public com.google.protobuf.ByteString getScriptBytes() { return scriptBytes_; } public static final int SEQUENCE_FIELD_NUMBER = 4; private int sequence_; /** * <code>optional uint32 sequence = 4;</code> * * <pre> * Sequence number. Currently unused, but intended for contracts in future. * </pre> */ public boolean hasSequence() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional uint32 sequence = 4;</code> * * <pre> * Sequence number. Currently unused, but intended for contracts in future. * </pre> */ public int getSequence() { return sequence_; } public static final int VALUE_FIELD_NUMBER = 5; private long value_; /** * <code>optional int64 value = 5;</code> * * <pre> * Value of connected output, if known * </pre> */ public boolean hasValue() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional int64 value = 5;</code> * * <pre> * Value of connected output, if known * </pre> */ public long getValue() { return value_; } private void initFields() { transactionOutPointHash_ = com.google.protobuf.ByteString.EMPTY; transactionOutPointIndex_ = 0; scriptBytes_ = com.google.protobuf.ByteString.EMPTY; sequence_ = 0; value_ = 0L; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasTransactionOutPointHash()) { memoizedIsInitialized = 0; return false; } if (!hasTransactionOutPointIndex()) { memoizedIsInitialized = 0; return false; } if (!hasScriptBytes()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, transactionOutPointHash_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, transactionOutPointIndex_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, scriptBytes_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt32(4, sequence_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt64(5, value_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, transactionOutPointHash_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, transactionOutPointIndex_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, scriptBytes_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, sequence_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, value_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.mygeopay.core.protos.Protos.TransactionInput parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mygeopay.core.protos.Protos.TransactionInput parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mygeopay.core.protos.Protos.TransactionInput parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mygeopay.core.protos.Protos.TransactionInput parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mygeopay.core.protos.Protos.TransactionInput parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.mygeopay.core.protos.Protos.TransactionInput parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.mygeopay.core.protos.Protos.TransactionInput parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.mygeopay.core.protos.Protos.TransactionInput parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.mygeopay.core.protos.Protos.TransactionInput parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.mygeopay.core.protos.Protos.TransactionInput parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.mygeopay.core.protos.Protos.TransactionInput prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@codecom.mygeopay.core.protos.TransactionInput} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:com.mygeopay.core.protos.TransactionInput) com.mygeopay.core.protos.Protos.TransactionInputOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_TransactionInput_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_TransactionInput_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mygeopay.core.protos.Protos.TransactionInput.class,com.mygeopay.core.protos.Protos.TransactionInput.Builder.class); } // Construct usingcom.mygeopay.core.protos.Protos.TransactionInput.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); transactionOutPointHash_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); transactionOutPointIndex_ = 0; bitField0_ = (bitField0_ & ~0x00000002); scriptBytes_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); sequence_ = 0; bitField0_ = (bitField0_ & ~0x00000008); value_ = 0L; bitField0_ = (bitField0_ & ~0x00000010); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_TransactionInput_descriptor; } public com.mygeopay.core.protos.Protos.TransactionInput getDefaultInstanceForType() { return com.mygeopay.core.protos.Protos.TransactionInput.getDefaultInstance(); } public com.mygeopay.core.protos.Protos.TransactionInput build() { com.mygeopay.core.protos.Protos.TransactionInput result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.mygeopay.core.protos.Protos.TransactionInput buildPartial() { com.mygeopay.core.protos.Protos.TransactionInput result = new com.mygeopay.core.protos.Protos.TransactionInput(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.transactionOutPointHash_ = transactionOutPointHash_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.transactionOutPointIndex_ = transactionOutPointIndex_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.scriptBytes_ = scriptBytes_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.sequence_ = sequence_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.value_ = value_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.mygeopay.core.protos.Protos.TransactionInput) { return mergeFrom((com.mygeopay.core.protos.Protos.TransactionInput)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.mygeopay.core.protos.Protos.TransactionInput other) { if (other ==com.mygeopay.core.protos.Protos.TransactionInput.getDefaultInstance()) return this; if (other.hasTransactionOutPointHash()) { setTransactionOutPointHash(other.getTransactionOutPointHash()); } if (other.hasTransactionOutPointIndex()) { setTransactionOutPointIndex(other.getTransactionOutPointIndex()); } if (other.hasScriptBytes()) { setScriptBytes(other.getScriptBytes()); } if (other.hasSequence()) { setSequence(other.getSequence()); } if (other.hasValue()) { setValue(other.getValue()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasTransactionOutPointHash()) { return false; } if (!hasTransactionOutPointIndex()) { return false; } if (!hasScriptBytes()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.mygeopay.core.protos.Protos.TransactionInput parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.mygeopay.core.protos.Protos.TransactionInput) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString transactionOutPointHash_ = com.google.protobuf.ByteString.EMPTY; /** * <code>required bytes transaction_out_point_hash = 1;</code> * * <pre> * Hash of the transaction this input is using. * </pre> */ public boolean hasTransactionOutPointHash() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required bytes transaction_out_point_hash = 1;</code> * * <pre> * Hash of the transaction this input is using. * </pre> */ public com.google.protobuf.ByteString getTransactionOutPointHash() { return transactionOutPointHash_; } /** * <code>required bytes transaction_out_point_hash = 1;</code> * * <pre> * Hash of the transaction this input is using. * </pre> */ public Builder setTransactionOutPointHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; transactionOutPointHash_ = value; onChanged(); return this; } /** * <code>required bytes transaction_out_point_hash = 1;</code> * * <pre> * Hash of the transaction this input is using. * </pre> */ public Builder clearTransactionOutPointHash() { bitField0_ = (bitField0_ & ~0x00000001); transactionOutPointHash_ = getDefaultInstance().getTransactionOutPointHash(); onChanged(); return this; } private int transactionOutPointIndex_ ; /** * <code>required uint32 transaction_out_point_index = 2;</code> * * <pre> * Index of transaction output used by this input. * </pre> */ public boolean hasTransactionOutPointIndex() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required uint32 transaction_out_point_index = 2;</code> * * <pre> * Index of transaction output used by this input. * </pre> */ public int getTransactionOutPointIndex() { return transactionOutPointIndex_; } /** * <code>required uint32 transaction_out_point_index = 2;</code> * * <pre> * Index of transaction output used by this input. * </pre> */ public Builder setTransactionOutPointIndex(int value) { bitField0_ |= 0x00000002; transactionOutPointIndex_ = value; onChanged(); return this; } /** * <code>required uint32 transaction_out_point_index = 2;</code> * * <pre> * Index of transaction output used by this input. * </pre> */ public Builder clearTransactionOutPointIndex() { bitField0_ = (bitField0_ & ~0x00000002); transactionOutPointIndex_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString scriptBytes_ = com.google.protobuf.ByteString.EMPTY; /** * <code>required bytes script_bytes = 3;</code> * * <pre> * Script that contains the signatures/pubkeys. * </pre> */ public boolean hasScriptBytes() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>required bytes script_bytes = 3;</code> * * <pre> * Script that contains the signatures/pubkeys. * </pre> */ public com.google.protobuf.ByteString getScriptBytes() { return scriptBytes_; } /** * <code>required bytes script_bytes = 3;</code> * * <pre> * Script that contains the signatures/pubkeys. * </pre> */ public Builder setScriptBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; scriptBytes_ = value; onChanged(); return this; } /** * <code>required bytes script_bytes = 3;</code> * * <pre> * Script that contains the signatures/pubkeys. * </pre> */ public Builder clearScriptBytes() { bitField0_ = (bitField0_ & ~0x00000004); scriptBytes_ = getDefaultInstance().getScriptBytes(); onChanged(); return this; } private int sequence_ ; /** * <code>optional uint32 sequence = 4;</code> * * <pre> * Sequence number. Currently unused, but intended for contracts in future. * </pre> */ public boolean hasSequence() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional uint32 sequence = 4;</code> * * <pre> * Sequence number. Currently unused, but intended for contracts in future. * </pre> */ public int getSequence() { return sequence_; } /** * <code>optional uint32 sequence = 4;</code> * * <pre> * Sequence number. Currently unused, but intended for contracts in future. * </pre> */ public Builder setSequence(int value) { bitField0_ |= 0x00000008; sequence_ = value; onChanged(); return this; } /** * <code>optional uint32 sequence = 4;</code> * * <pre> * Sequence number. Currently unused, but intended for contracts in future. * </pre> */ public Builder clearSequence() { bitField0_ = (bitField0_ & ~0x00000008); sequence_ = 0; onChanged(); return this; } private long value_ ; /** * <code>optional int64 value = 5;</code> * * <pre> * Value of connected output, if known * </pre> */ public boolean hasValue() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional int64 value = 5;</code> * * <pre> * Value of connected output, if known * </pre> */ public long getValue() { return value_; } /** * <code>optional int64 value = 5;</code> * * <pre> * Value of connected output, if known * </pre> */ public Builder setValue(long value) { bitField0_ |= 0x00000010; value_ = value; onChanged(); return this; } /** * <code>optional int64 value = 5;</code> * * <pre> * Value of connected output, if known * </pre> */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000010); value_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.mygeopay.core.protos.TransactionInput) } static { defaultInstance = new TransactionInput(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.mygeopay.core.protos.TransactionInput) } public interface TransactionOutputOrBuilder extends // @@protoc_insertion_point(interface_extends:com.mygeopay.core.protos.TransactionOutput) com.google.protobuf.MessageOrBuilder { /** * <code>required int64 value = 1;</code> */ boolean hasValue(); /** * <code>required int64 value = 1;</code> */ long getValue(); /** * <code>required bytes script_bytes = 2;</code> * * <pre> * script of transaction output * </pre> */ boolean hasScriptBytes(); /** * <code>required bytes script_bytes = 2;</code> * * <pre> * script of transaction output * </pre> */ com.google.protobuf.ByteString getScriptBytes(); /** * <code>optional bytes spent_by_transaction_hash = 3;</code> * * <pre> * If spent, the hash of the transaction doing the spend. * </pre> */ boolean hasSpentByTransactionHash(); /** * <code>optional bytes spent_by_transaction_hash = 3;</code> * * <pre> * If spent, the hash of the transaction doing the spend. * </pre> */ com.google.protobuf.ByteString getSpentByTransactionHash(); /** * <code>optional int32 spent_by_transaction_index = 4;</code> * * <pre> * If spent, the index of the transaction input of the transaction doing the spend. * </pre> */ boolean hasSpentByTransactionIndex(); /** * <code>optional int32 spent_by_transaction_index = 4;</code> * * <pre> * If spent, the index of the transaction input of the transaction doing the spend. * </pre> */ int getSpentByTransactionIndex(); } /** * Protobuf type {@codecom.mygeopay.core.protos.TransactionOutput} */ public static final class TransactionOutput extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:com.mygeopay.core.protos.TransactionOutput) TransactionOutputOrBuilder { // Use TransactionOutput.newBuilder() to construct. private TransactionOutput(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TransactionOutput(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TransactionOutput defaultInstance; public static TransactionOutput getDefaultInstance() { return defaultInstance; } public TransactionOutput getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TransactionOutput( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; value_ = input.readInt64(); break; } case 18: { bitField0_ |= 0x00000002; scriptBytes_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; spentByTransactionHash_ = input.readBytes(); break; } case 32: { bitField0_ |= 0x00000008; spentByTransactionIndex_ = input.readInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_TransactionOutput_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_TransactionOutput_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mygeopay.core.protos.Protos.TransactionOutput.class,com.mygeopay.core.protos.Protos.TransactionOutput.Builder.class); } public static final com.google.protobuf.Parser<TransactionOutput> PARSER = new com.google.protobuf.AbstractParser<TransactionOutput>() { public TransactionOutput parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TransactionOutput(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<TransactionOutput> getParserForType() { return PARSER; } private int bitField0_; public static final int VALUE_FIELD_NUMBER = 1; private long value_; /** * <code>required int64 value = 1;</code> */ public boolean hasValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required int64 value = 1;</code> */ public long getValue() { return value_; } public static final int SCRIPT_BYTES_FIELD_NUMBER = 2; private com.google.protobuf.ByteString scriptBytes_; /** * <code>required bytes script_bytes = 2;</code> * * <pre> * script of transaction output * </pre> */ public boolean hasScriptBytes() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required bytes script_bytes = 2;</code> * * <pre> * script of transaction output * </pre> */ public com.google.protobuf.ByteString getScriptBytes() { return scriptBytes_; } public static final int SPENT_BY_TRANSACTION_HASH_FIELD_NUMBER = 3; private com.google.protobuf.ByteString spentByTransactionHash_; /** * <code>optional bytes spent_by_transaction_hash = 3;</code> * * <pre> * If spent, the hash of the transaction doing the spend. * </pre> */ public boolean hasSpentByTransactionHash() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional bytes spent_by_transaction_hash = 3;</code> * * <pre> * If spent, the hash of the transaction doing the spend. * </pre> */ public com.google.protobuf.ByteString getSpentByTransactionHash() { return spentByTransactionHash_; } public static final int SPENT_BY_TRANSACTION_INDEX_FIELD_NUMBER = 4; private int spentByTransactionIndex_; /** * <code>optional int32 spent_by_transaction_index = 4;</code> * * <pre> * If spent, the index of the transaction input of the transaction doing the spend. * </pre> */ public boolean hasSpentByTransactionIndex() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional int32 spent_by_transaction_index = 4;</code> * * <pre> * If spent, the index of the transaction input of the transaction doing the spend. * </pre> */ public int getSpentByTransactionIndex() { return spentByTransactionIndex_; } private void initFields() { value_ = 0L; scriptBytes_ = com.google.protobuf.ByteString.EMPTY; spentByTransactionHash_ = com.google.protobuf.ByteString.EMPTY; spentByTransactionIndex_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasValue()) { memoizedIsInitialized = 0; return false; } if (!hasScriptBytes()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, value_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, scriptBytes_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, spentByTransactionHash_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt32(4, spentByTransactionIndex_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, value_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, scriptBytes_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, spentByTransactionHash_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, spentByTransactionIndex_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.mygeopay.core.protos.Protos.TransactionOutput parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mygeopay.core.protos.Protos.TransactionOutput parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mygeopay.core.protos.Protos.TransactionOutput parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mygeopay.core.protos.Protos.TransactionOutput parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mygeopay.core.protos.Protos.TransactionOutput parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.mygeopay.core.protos.Protos.TransactionOutput parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.mygeopay.core.protos.Protos.TransactionOutput parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.mygeopay.core.protos.Protos.TransactionOutput parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.mygeopay.core.protos.Protos.TransactionOutput parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.mygeopay.core.protos.Protos.TransactionOutput parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.mygeopay.core.protos.Protos.TransactionOutput prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@codecom.mygeopay.core.protos.TransactionOutput} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:com.mygeopay.core.protos.TransactionOutput) com.mygeopay.core.protos.Protos.TransactionOutputOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_TransactionOutput_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_TransactionOutput_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mygeopay.core.protos.Protos.TransactionOutput.class,com.mygeopay.core.protos.Protos.TransactionOutput.Builder.class); } // Construct usingcom.mygeopay.core.protos.Protos.TransactionOutput.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); value_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); scriptBytes_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); spentByTransactionHash_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); spentByTransactionIndex_ = 0; bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_TransactionOutput_descriptor; } public com.mygeopay.core.protos.Protos.TransactionOutput getDefaultInstanceForType() { return com.mygeopay.core.protos.Protos.TransactionOutput.getDefaultInstance(); } public com.mygeopay.core.protos.Protos.TransactionOutput build() { com.mygeopay.core.protos.Protos.TransactionOutput result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.mygeopay.core.protos.Protos.TransactionOutput buildPartial() { com.mygeopay.core.protos.Protos.TransactionOutput result = new com.mygeopay.core.protos.Protos.TransactionOutput(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.value_ = value_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.scriptBytes_ = scriptBytes_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.spentByTransactionHash_ = spentByTransactionHash_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.spentByTransactionIndex_ = spentByTransactionIndex_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.mygeopay.core.protos.Protos.TransactionOutput) { return mergeFrom((com.mygeopay.core.protos.Protos.TransactionOutput)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.mygeopay.core.protos.Protos.TransactionOutput other) { if (other ==com.mygeopay.core.protos.Protos.TransactionOutput.getDefaultInstance()) return this; if (other.hasValue()) { setValue(other.getValue()); } if (other.hasScriptBytes()) { setScriptBytes(other.getScriptBytes()); } if (other.hasSpentByTransactionHash()) { setSpentByTransactionHash(other.getSpentByTransactionHash()); } if (other.hasSpentByTransactionIndex()) { setSpentByTransactionIndex(other.getSpentByTransactionIndex()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasValue()) { return false; } if (!hasScriptBytes()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.mygeopay.core.protos.Protos.TransactionOutput parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.mygeopay.core.protos.Protos.TransactionOutput) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long value_ ; /** * <code>required int64 value = 1;</code> */ public boolean hasValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required int64 value = 1;</code> */ public long getValue() { return value_; } /** * <code>required int64 value = 1;</code> */ public Builder setValue(long value) { bitField0_ |= 0x00000001; value_ = value; onChanged(); return this; } /** * <code>required int64 value = 1;</code> */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000001); value_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString scriptBytes_ = com.google.protobuf.ByteString.EMPTY; /** * <code>required bytes script_bytes = 2;</code> * * <pre> * script of transaction output * </pre> */ public boolean hasScriptBytes() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required bytes script_bytes = 2;</code> * * <pre> * script of transaction output * </pre> */ public com.google.protobuf.ByteString getScriptBytes() { return scriptBytes_; } /** * <code>required bytes script_bytes = 2;</code> * * <pre> * script of transaction output * </pre> */ public Builder setScriptBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; scriptBytes_ = value; onChanged(); return this; } /** * <code>required bytes script_bytes = 2;</code> * * <pre> * script of transaction output * </pre> */ public Builder clearScriptBytes() { bitField0_ = (bitField0_ & ~0x00000002); scriptBytes_ = getDefaultInstance().getScriptBytes(); onChanged(); return this; } private com.google.protobuf.ByteString spentByTransactionHash_ = com.google.protobuf.ByteString.EMPTY; /** * <code>optional bytes spent_by_transaction_hash = 3;</code> * * <pre> * If spent, the hash of the transaction doing the spend. * </pre> */ public boolean hasSpentByTransactionHash() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional bytes spent_by_transaction_hash = 3;</code> * * <pre> * If spent, the hash of the transaction doing the spend. * </pre> */ public com.google.protobuf.ByteString getSpentByTransactionHash() { return spentByTransactionHash_; } /** * <code>optional bytes spent_by_transaction_hash = 3;</code> * * <pre> * If spent, the hash of the transaction doing the spend. * </pre> */ public Builder setSpentByTransactionHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; spentByTransactionHash_ = value; onChanged(); return this; } /** * <code>optional bytes spent_by_transaction_hash = 3;</code> * * <pre> * If spent, the hash of the transaction doing the spend. * </pre> */ public Builder clearSpentByTransactionHash() { bitField0_ = (bitField0_ & ~0x00000004); spentByTransactionHash_ = getDefaultInstance().getSpentByTransactionHash(); onChanged(); return this; } private int spentByTransactionIndex_ ; /** * <code>optional int32 spent_by_transaction_index = 4;</code> * * <pre> * If spent, the index of the transaction input of the transaction doing the spend. * </pre> */ public boolean hasSpentByTransactionIndex() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional int32 spent_by_transaction_index = 4;</code> * * <pre> * If spent, the index of the transaction input of the transaction doing the spend. * </pre> */ public int getSpentByTransactionIndex() { return spentByTransactionIndex_; } /** * <code>optional int32 spent_by_transaction_index = 4;</code> * * <pre> * If spent, the index of the transaction input of the transaction doing the spend. * </pre> */ public Builder setSpentByTransactionIndex(int value) { bitField0_ |= 0x00000008; spentByTransactionIndex_ = value; onChanged(); return this; } /** * <code>optional int32 spent_by_transaction_index = 4;</code> * * <pre> * If spent, the index of the transaction input of the transaction doing the spend. * </pre> */ public Builder clearSpentByTransactionIndex() { bitField0_ = (bitField0_ & ~0x00000008); spentByTransactionIndex_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.mygeopay.core.protos.TransactionOutput) } static { defaultInstance = new TransactionOutput(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.mygeopay.core.protos.TransactionOutput) } public interface TransactionConfidenceOrBuilder extends // @@protoc_insertion_point(interface_extends:com.mygeopay.core.protos.TransactionConfidence) com.google.protobuf.MessageOrBuilder { /** * <code>optional .com.mygeopay.core.protos.TransactionConfidence.Type type = 1;</code> * * <pre> * This is optional in case we add confidence types to prevent parse errors - backwards compatible. * </pre> */ boolean hasType(); /** * <code>optional .com.mygeopay.core.protos.TransactionConfidence.Type type = 1;</code> * * <pre> * This is optional in case we add confidence types to prevent parse errors - backwards compatible. * </pre> */ com.mygeopay.core.protos.Protos.TransactionConfidence.Type getType(); /** * <code>optional int32 appeared_at_height = 2;</code> * * <pre> * If type == BUILDING then this is the chain height at which the transaction was included. * </pre> */ boolean hasAppearedAtHeight(); /** * <code>optional int32 appeared_at_height = 2;</code> * * <pre> * If type == BUILDING then this is the chain height at which the transaction was included. * </pre> */ int getAppearedAtHeight(); /** * <code>optional bytes overriding_transaction = 3;</code> * * <pre> * If set, hash of the transaction that double spent this one into oblivion. A transaction can be double spent by * multiple transactions in the case of several inputs being re-spent by several transactions but we don't * bother to track them all, just the first. This only makes sense if type = DEAD. * </pre> */ boolean hasOverridingTransaction(); /** * <code>optional bytes overriding_transaction = 3;</code> * * <pre> * If set, hash of the transaction that double spent this one into oblivion. A transaction can be double spent by * multiple transactions in the case of several inputs being re-spent by several transactions but we don't * bother to track them all, just the first. This only makes sense if type = DEAD. * </pre> */ com.google.protobuf.ByteString getOverridingTransaction(); /** * <code>optional int32 depth = 4;</code> * * <pre> * If type == BUILDING then this is the depth of the transaction in the blockchain. * Zero confirmations: depth = 0, one confirmation: depth = 1 etc. * </pre> */ boolean hasDepth(); /** * <code>optional int32 depth = 4;</code> * * <pre> * If type == BUILDING then this is the depth of the transaction in the blockchain. * Zero confirmations: depth = 0, one confirmation: depth = 1 etc. * </pre> */ int getDepth(); /** * <code>repeated .com.mygeopay.core.protos.PeerAddress broadcast_by = 5;</code> */ java.util.List<com.mygeopay.core.protos.Protos.PeerAddress> getBroadcastByList(); /** * <code>repeated .com.mygeopay.core.protos.PeerAddress broadcast_by = 5;</code> */ com.mygeopay.core.protos.Protos.PeerAddress getBroadcastBy(int index); /** * <code>repeated .com.mygeopay.core.protos.PeerAddress broadcast_by = 5;</code> */ int getBroadcastByCount(); /** * <code>repeated .com.mygeopay.core.protos.PeerAddress broadcast_by = 5;</code> */ java.util.List<? extends com.mygeopay.core.protos.Protos.PeerAddressOrBuilder> getBroadcastByOrBuilderList(); /** * <code>repeated .com.mygeopay.core.protos.PeerAddress broadcast_by = 5;</code> */ com.mygeopay.core.protos.Protos.PeerAddressOrBuilder getBroadcastByOrBuilder( int index); /** * <code>optional .com.mygeopay.core.protos.TransactionConfidence.Source source = 6;</code> */ boolean hasSource(); /** * <code>optional .com.mygeopay.core.protos.TransactionConfidence.Source source = 6;</code> */ com.mygeopay.core.protos.Protos.TransactionConfidence.Source getSource(); } /** * Protobuf type {@codecom.mygeopay.core.protos.TransactionConfidence} * * <pre> ** * A description of the confidence we have that a transaction cannot be reversed in the future. * Parsing should be lenient, since this could change for different applications yet we should * maintain backward compatibility. * </pre> */ public static final class TransactionConfidence extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:com.mygeopay.core.protos.TransactionConfidence) TransactionConfidenceOrBuilder { // Use TransactionConfidence.newBuilder() to construct. private TransactionConfidence(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TransactionConfidence(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TransactionConfidence defaultInstance; public static TransactionConfidence getDefaultInstance() { return defaultInstance; } public TransactionConfidence getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TransactionConfidence( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); com.mygeopay.core.protos.Protos.TransactionConfidence.Type value =com.mygeopay.core.protos.Protos.TransactionConfidence.Type.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; type_ = value; } break; } case 16: { bitField0_ |= 0x00000002; appearedAtHeight_ = input.readInt32(); break; } case 26: { bitField0_ |= 0x00000004; overridingTransaction_ = input.readBytes(); break; } case 32: { bitField0_ |= 0x00000008; depth_ = input.readInt32(); break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { broadcastBy_ = new java.util.ArrayList<com.mygeopay.core.protos.Protos.PeerAddress>(); mutable_bitField0_ |= 0x00000010; } broadcastBy_.add(input.readMessage(com.mygeopay.core.protos.Protos.PeerAddress.PARSER, extensionRegistry)); break; } case 48: { int rawValue = input.readEnum(); com.mygeopay.core.protos.Protos.TransactionConfidence.Source value =com.mygeopay.core.protos.Protos.TransactionConfidence.Source.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(6, rawValue); } else { bitField0_ |= 0x00000010; source_ = value; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { broadcastBy_ = java.util.Collections.unmodifiableList(broadcastBy_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_TransactionConfidence_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_TransactionConfidence_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mygeopay.core.protos.Protos.TransactionConfidence.class,com.mygeopay.core.protos.Protos.TransactionConfidence.Builder.class); } public static final com.google.protobuf.Parser<TransactionConfidence> PARSER = new com.google.protobuf.AbstractParser<TransactionConfidence>() { public TransactionConfidence parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TransactionConfidence(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<TransactionConfidence> getParserForType() { return PARSER; } /** * Protobuf enum {@codecom.mygeopay.core.protos.TransactionConfidence.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * <code>UNKNOWN = 0;</code> */ UNKNOWN(0, 0), /** * <code>BUILDING = 1;</code> * * <pre> * In best chain. If and only if appeared_at_height is present. * </pre> */ BUILDING(1, 1), /** * <code>PENDING = 2;</code> * * <pre> * Unconfirmed and sitting in the networks memory pools, waiting to be included in the chain. * </pre> */ PENDING(2, 2), /** * <code>DEAD = 3;</code> * * <pre> * Either if overriding_transaction is present or transaction is dead coinbase * </pre> */ DEAD(3, 3), ; /** * <code>UNKNOWN = 0;</code> */ public static final int UNKNOWN_VALUE = 0; /** * <code>BUILDING = 1;</code> * * <pre> * In best chain. If and only if appeared_at_height is present. * </pre> */ public static final int BUILDING_VALUE = 1; /** * <code>PENDING = 2;</code> * * <pre> * Unconfirmed and sitting in the networks memory pools, waiting to be included in the chain. * </pre> */ public static final int PENDING_VALUE = 2; /** * <code>DEAD = 3;</code> * * <pre> * Either if overriding_transaction is present or transaction is dead coinbase * </pre> */ public static final int DEAD_VALUE = 3; public final int getNumber() { return value; } public static Type valueOf(int value) { switch (value) { case 0: return UNKNOWN; case 1: return BUILDING; case 2: return PENDING; case 3: return DEAD; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<Type> internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap<Type> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<Type>() { public Type findValueByNumber(int number) { return Type.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.mygeopay.core.protos.Protos.TransactionConfidence.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private Type(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:com.mygeopay.core.protos.TransactionConfidence.Type) } /** * Protobuf enum {@codecom.mygeopay.core.protos.TransactionConfidence.Source} * * <pre> * Where did we get this transaction from? Knowing the source may help us to risk analyze pending transactions. * </pre> */ public enum Source implements com.google.protobuf.ProtocolMessageEnum { /** * <code>SOURCE_UNKNOWN = 0;</code> * * <pre> * We don't know where it came from, or this is a wallet from the future. * </pre> */ SOURCE_UNKNOWN(0, 0), /** * <code>SOURCE_NETWORK = 1;</code> * * <pre> * We received it from a network broadcast. This is the normal way to get payments. * </pre> */ SOURCE_NETWORK(1, 1), /** * <code>SOURCE_SELF = 2;</code> * * <pre> * We made it ourselves, so we know it should be valid. * </pre> */ SOURCE_SELF(2, 2), /** * <code>SOURCE_TRUSTED = 3;</code> * * <pre> * We received it from a trusted source. * </pre> */ SOURCE_TRUSTED(3, 3), ; /** * <code>SOURCE_UNKNOWN = 0;</code> * * <pre> * We don't know where it came from, or this is a wallet from the future. * </pre> */ public static final int SOURCE_UNKNOWN_VALUE = 0; /** * <code>SOURCE_NETWORK = 1;</code> * * <pre> * We received it from a network broadcast. This is the normal way to get payments. * </pre> */ public static final int SOURCE_NETWORK_VALUE = 1; /** * <code>SOURCE_SELF = 2;</code> * * <pre> * We made it ourselves, so we know it should be valid. * </pre> */ public static final int SOURCE_SELF_VALUE = 2; /** * <code>SOURCE_TRUSTED = 3;</code> * * <pre> * We received it from a trusted source. * </pre> */ public static final int SOURCE_TRUSTED_VALUE = 3; public final int getNumber() { return value; } public static Source valueOf(int value) { switch (value) { case 0: return SOURCE_UNKNOWN; case 1: return SOURCE_NETWORK; case 2: return SOURCE_SELF; case 3: return SOURCE_TRUSTED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<Source> internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap<Source> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<Source>() { public Source findValueByNumber(int number) { return Source.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.mygeopay.core.protos.Protos.TransactionConfidence.getDescriptor().getEnumTypes().get(1); } private static final Source[] VALUES = values(); public static Source valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private Source(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:com.mygeopay.core.protos.TransactionConfidence.Source) } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private com.mygeopay.core.protos.Protos.TransactionConfidence.Type type_; /** * <code>optional .com.mygeopay.core.protos.TransactionConfidence.Type type = 1;</code> * * <pre> * This is optional in case we add confidence types to prevent parse errors - backwards compatible. * </pre> */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .com.mygeopay.core.protos.TransactionConfidence.Type type = 1;</code> * * <pre> * This is optional in case we add confidence types to prevent parse errors - backwards compatible. * </pre> */ public com.mygeopay.core.protos.Protos.TransactionConfidence.Type getType() { return type_; } public static final int APPEARED_AT_HEIGHT_FIELD_NUMBER = 2; private int appearedAtHeight_; /** * <code>optional int32 appeared_at_height = 2;</code> * * <pre> * If type == BUILDING then this is the chain height at which the transaction was included. * </pre> */ public boolean hasAppearedAtHeight() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int32 appeared_at_height = 2;</code> * * <pre> * If type == BUILDING then this is the chain height at which the transaction was included. * </pre> */ public int getAppearedAtHeight() { return appearedAtHeight_; } public static final int OVERRIDING_TRANSACTION_FIELD_NUMBER = 3; private com.google.protobuf.ByteString overridingTransaction_; /** * <code>optional bytes overriding_transaction = 3;</code> * * <pre> * If set, hash of the transaction that double spent this one into oblivion. A transaction can be double spent by * multiple transactions in the case of several inputs being re-spent by several transactions but we don't * bother to track them all, just the first. This only makes sense if type = DEAD. * </pre> */ public boolean hasOverridingTransaction() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional bytes overriding_transaction = 3;</code> * * <pre> * If set, hash of the transaction that double spent this one into oblivion. A transaction can be double spent by * multiple transactions in the case of several inputs being re-spent by several transactions but we don't * bother to track them all, just the first. This only makes sense if type = DEAD. * </pre> */ public com.google.protobuf.ByteString getOverridingTransaction() { return overridingTransaction_; } public static final int DEPTH_FIELD_NUMBER = 4; private int depth_; /** * <code>optional int32 depth = 4;</code> * * <pre> * If type == BUILDING then this is the depth of the transaction in the blockchain. * Zero confirmations: depth = 0, one confirmation: depth = 1 etc. * </pre> */ public boolean hasDepth() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional int32 depth = 4;</code> * * <pre> * If type == BUILDING then this is the depth of the transaction in the blockchain. * Zero confirmations: depth = 0, one confirmation: depth = 1 etc. * </pre> */ public int getDepth() { return depth_; } public static final int BROADCAST_BY_FIELD_NUMBER = 5; private java.util.List<com.mygeopay.core.protos.Protos.PeerAddress> broadcastBy_; /** * <code>repeated .com.mygeopay.core.protos.PeerAddress broadcast_by = 5;</code> */ public java.util.List<com.mygeopay.core.protos.Protos.PeerAddress> getBroadcastByList() { return broadcastBy_; } /** * <code>repeated .com.mygeopay.core.protos.PeerAddress broadcast_by = 5;</code> */ public java.util.List<? extends com.mygeopay.core.protos.Protos.PeerAddressOrBuilder> getBroadcastByOrBuilderList() { return broadcastBy_; } /** * <code>repeated .com.mygeopay.core.protos.PeerAddress broadcast_by = 5;</code> */ public int getBroadcastByCount() { return broadcastBy_.size(); } /** * <code>repeated .com.mygeopay.core.protos.PeerAddress broadcast_by = 5;</code> */ public com.mygeopay.core.protos.Protos.PeerAddress getBroadcastBy(int index) { return broadcastBy_.get(index); } /** * <code>repeated .com.mygeopay.core.protos.PeerAddress broadcast_by = 5;</code> */ public com.mygeopay.core.protos.Protos.PeerAddressOrBuilder getBroadcastByOrBuilder( int index) { return broadcastBy_.get(index); } public static final int SOURCE_FIELD_NUMBER = 6; private com.mygeopay.core.protos.Protos.TransactionConfidence.Source source_; /** * <code>optional .com.mygeopay.core.protos.TransactionConfidence.Source source = 6;</code> */ public boolean hasSource() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional .com.mygeopay.core.protos.TransactionConfidence.Source source = 6;</code> */ public com.mygeopay.core.protos.Protos.TransactionConfidence.Source getSource() { return source_; } private void initFields() { type_ =com.mygeopay.core.protos.Protos.TransactionConfidence.Type.UNKNOWN; appearedAtHeight_ = 0; overridingTransaction_ = com.google.protobuf.ByteString.EMPTY; depth_ = 0; broadcastBy_ = java.util.Collections.emptyList(); source_ =com.mygeopay.core.protos.Protos.TransactionConfidence.Source.SOURCE_UNKNOWN; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getBroadcastByCount(); i++) { if (!getBroadcastBy(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, type_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, appearedAtHeight_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, overridingTransaction_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt32(4, depth_); } for (int i = 0; i < broadcastBy_.size(); i++) { output.writeMessage(5, broadcastBy_.get(i)); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeEnum(6, source_.getNumber()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, appearedAtHeight_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, overridingTransaction_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, depth_); } for (int i = 0; i < broadcastBy_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, broadcastBy_.get(i)); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, source_.getNumber()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.mygeopay.core.protos.Protos.TransactionConfidence parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mygeopay.core.protos.Protos.TransactionConfidence parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mygeopay.core.protos.Protos.TransactionConfidence parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mygeopay.core.protos.Protos.TransactionConfidence parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mygeopay.core.protos.Protos.TransactionConfidence parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.mygeopay.core.protos.Protos.TransactionConfidence parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.mygeopay.core.protos.Protos.TransactionConfidence parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.mygeopay.core.protos.Protos.TransactionConfidence parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.mygeopay.core.protos.Protos.TransactionConfidence parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.mygeopay.core.protos.Protos.TransactionConfidence parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.mygeopay.core.protos.Protos.TransactionConfidence prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@codecom.mygeopay.core.protos.TransactionConfidence} * * <pre> ** * A description of the confidence we have that a transaction cannot be reversed in the future. * Parsing should be lenient, since this could change for different applications yet we should * maintain backward compatibility. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:com.mygeopay.core.protos.TransactionConfidence) com.mygeopay.core.protos.Protos.TransactionConfidenceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_TransactionConfidence_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_TransactionConfidence_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mygeopay.core.protos.Protos.TransactionConfidence.class,com.mygeopay.core.protos.Protos.TransactionConfidence.Builder.class); } // Construct usingcom.mygeopay.core.protos.Protos.TransactionConfidence.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getBroadcastByFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); type_ =com.mygeopay.core.protos.Protos.TransactionConfidence.Type.UNKNOWN; bitField0_ = (bitField0_ & ~0x00000001); appearedAtHeight_ = 0; bitField0_ = (bitField0_ & ~0x00000002); overridingTransaction_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); depth_ = 0; bitField0_ = (bitField0_ & ~0x00000008); if (broadcastByBuilder_ == null) { broadcastBy_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { broadcastByBuilder_.clear(); } source_ =com.mygeopay.core.protos.Protos.TransactionConfidence.Source.SOURCE_UNKNOWN; bitField0_ = (bitField0_ & ~0x00000020); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_TransactionConfidence_descriptor; } public com.mygeopay.core.protos.Protos.TransactionConfidence getDefaultInstanceForType() { return com.mygeopay.core.protos.Protos.TransactionConfidence.getDefaultInstance(); } public com.mygeopay.core.protos.Protos.TransactionConfidence build() { com.mygeopay.core.protos.Protos.TransactionConfidence result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.mygeopay.core.protos.Protos.TransactionConfidence buildPartial() { com.mygeopay.core.protos.Protos.TransactionConfidence result = new com.mygeopay.core.protos.Protos.TransactionConfidence(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.type_ = type_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.appearedAtHeight_ = appearedAtHeight_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.overridingTransaction_ = overridingTransaction_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.depth_ = depth_; if (broadcastByBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010)) { broadcastBy_ = java.util.Collections.unmodifiableList(broadcastBy_); bitField0_ = (bitField0_ & ~0x00000010); } result.broadcastBy_ = broadcastBy_; } else { result.broadcastBy_ = broadcastByBuilder_.build(); } if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000010; } result.source_ = source_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.mygeopay.core.protos.Protos.TransactionConfidence) { return mergeFrom((com.mygeopay.core.protos.Protos.TransactionConfidence)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.mygeopay.core.protos.Protos.TransactionConfidence other) { if (other ==com.mygeopay.core.protos.Protos.TransactionConfidence.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasAppearedAtHeight()) { setAppearedAtHeight(other.getAppearedAtHeight()); } if (other.hasOverridingTransaction()) { setOverridingTransaction(other.getOverridingTransaction()); } if (other.hasDepth()) { setDepth(other.getDepth()); } if (broadcastByBuilder_ == null) { if (!other.broadcastBy_.isEmpty()) { if (broadcastBy_.isEmpty()) { broadcastBy_ = other.broadcastBy_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureBroadcastByIsMutable(); broadcastBy_.addAll(other.broadcastBy_); } onChanged(); } } else { if (!other.broadcastBy_.isEmpty()) { if (broadcastByBuilder_.isEmpty()) { broadcastByBuilder_.dispose(); broadcastByBuilder_ = null; broadcastBy_ = other.broadcastBy_; bitField0_ = (bitField0_ & ~0x00000010); broadcastByBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getBroadcastByFieldBuilder() : null; } else { broadcastByBuilder_.addAllMessages(other.broadcastBy_); } } } if (other.hasSource()) { setSource(other.getSource()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getBroadcastByCount(); i++) { if (!getBroadcastBy(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.mygeopay.core.protos.Protos.TransactionConfidence parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.mygeopay.core.protos.Protos.TransactionConfidence) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.mygeopay.core.protos.Protos.TransactionConfidence.Type type_ =com.mygeopay.core.protos.Protos.TransactionConfidence.Type.UNKNOWN; /** * <code>optional .com.mygeopay.core.protos.TransactionConfidence.Type type = 1;</code> * * <pre> * This is optional in case we add confidence types to prevent parse errors - backwards compatible. * </pre> */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .com.mygeopay.core.protos.TransactionConfidence.Type type = 1;</code> * * <pre> * This is optional in case we add confidence types to prevent parse errors - backwards compatible. * </pre> */ public com.mygeopay.core.protos.Protos.TransactionConfidence.Type getType() { return type_; } /** * <code>optional .com.mygeopay.core.protos.TransactionConfidence.Type type = 1;</code> * * <pre> * This is optional in case we add confidence types to prevent parse errors - backwards compatible. * </pre> */ public Builder setType(com.mygeopay.core.protos.Protos.TransactionConfidence.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } /** * <code>optional .com.mygeopay.core.protos.TransactionConfidence.Type type = 1;</code> * * <pre> * This is optional in case we add confidence types to prevent parse errors - backwards compatible. * </pre> */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ =com.mygeopay.core.protos.Protos.TransactionConfidence.Type.UNKNOWN; onChanged(); return this; } private int appearedAtHeight_ ; /** * <code>optional int32 appeared_at_height = 2;</code> * * <pre> * If type == BUILDING then this is the chain height at which the transaction was included. * </pre> */ public boolean hasAppearedAtHeight() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int32 appeared_at_height = 2;</code> * * <pre> * If type == BUILDING then this is the chain height at which the transaction was included. * </pre> */ public int getAppearedAtHeight() { return appearedAtHeight_; } /** * <code>optional int32 appeared_at_height = 2;</code> * * <pre> * If type == BUILDING then this is the chain height at which the transaction was included. * </pre> */ public Builder setAppearedAtHeight(int value) { bitField0_ |= 0x00000002; appearedAtHeight_ = value; onChanged(); return this; } /** * <code>optional int32 appeared_at_height = 2;</code> * * <pre> * If type == BUILDING then this is the chain height at which the transaction was included. * </pre> */ public Builder clearAppearedAtHeight() { bitField0_ = (bitField0_ & ~0x00000002); appearedAtHeight_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString overridingTransaction_ = com.google.protobuf.ByteString.EMPTY; /** * <code>optional bytes overriding_transaction = 3;</code> * * <pre> * If set, hash of the transaction that double spent this one into oblivion. A transaction can be double spent by * multiple transactions in the case of several inputs being re-spent by several transactions but we don't * bother to track them all, just the first. This only makes sense if type = DEAD. * </pre> */ public boolean hasOverridingTransaction() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional bytes overriding_transaction = 3;</code> * * <pre> * If set, hash of the transaction that double spent this one into oblivion. A transaction can be double spent by * multiple transactions in the case of several inputs being re-spent by several transactions but we don't * bother to track them all, just the first. This only makes sense if type = DEAD. * </pre> */ public com.google.protobuf.ByteString getOverridingTransaction() { return overridingTransaction_; } /** * <code>optional bytes overriding_transaction = 3;</code> * * <pre> * If set, hash of the transaction that double spent this one into oblivion. A transaction can be double spent by * multiple transactions in the case of several inputs being re-spent by several transactions but we don't * bother to track them all, just the first. This only makes sense if type = DEAD. * </pre> */ public Builder setOverridingTransaction(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; overridingTransaction_ = value; onChanged(); return this; } /** * <code>optional bytes overriding_transaction = 3;</code> * * <pre> * If set, hash of the transaction that double spent this one into oblivion. A transaction can be double spent by * multiple transactions in the case of several inputs being re-spent by several transactions but we don't * bother to track them all, just the first. This only makes sense if type = DEAD. * </pre> */ public Builder clearOverridingTransaction() { bitField0_ = (bitField0_ & ~0x00000004); overridingTransaction_ = getDefaultInstance().getOverridingTransaction(); onChanged(); return this; } private int depth_ ; /** * <code>optional int32 depth = 4;</code> * * <pre> * If type == BUILDING then this is the depth of the transaction in the blockchain. * Zero confirmations: depth = 0, one confirmation: depth = 1 etc. * </pre> */ public boolean hasDepth() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional int32 depth = 4;</code> * * <pre> * If type == BUILDING then this is the depth of the transaction in the blockchain. * Zero confirmations: depth = 0, one confirmation: depth = 1 etc. * </pre> */ public int getDepth() { return depth_; } /** * <code>optional int32 depth = 4;</code> * * <pre> * If type == BUILDING then this is the depth of the transaction in the blockchain. * Zero confirmations: depth = 0, one confirmation: depth = 1 etc. * </pre> */ public Builder setDepth(int value) { bitField0_ |= 0x00000008; depth_ = value; onChanged(); return this; } /** * <code>optional int32 depth = 4;</code> * * <pre> * If type == BUILDING then this is the depth of the transaction in the blockchain. * Zero confirmations: depth = 0, one confirmation: depth = 1 etc. * </pre> */ public Builder clearDepth() { bitField0_ = (bitField0_ & ~0x00000008); depth_ = 0; onChanged(); return this; } private java.util.List<com.mygeopay.core.protos.Protos.PeerAddress> broadcastBy_ = java.util.Collections.emptyList(); private void ensureBroadcastByIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { broadcastBy_ = new java.util.ArrayList<com.mygeopay.core.protos.Protos.PeerAddress>(broadcastBy_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilder< com.mygeopay.core.protos.Protos.PeerAddress,com.mygeopay.core.protos.Protos.PeerAddress.Builder,com.mygeopay.core.protos.Protos.PeerAddressOrBuilder> broadcastByBuilder_; /** * <code>repeated .com.mygeopay.core.protos.PeerAddress broadcast_by = 5;</code> */ public java.util.List<com.mygeopay.core.protos.Protos.PeerAddress> getBroadcastByList() { if (broadcastByBuilder_ == null) { return java.util.Collections.unmodifiableList(broadcastBy_); } else { return broadcastByBuilder_.getMessageList(); } } /** * <code>repeated .com.mygeopay.core.protos.PeerAddress broadcast_by = 5;</code> */ public int getBroadcastByCount() { if (broadcastByBuilder_ == null) { return broadcastBy_.size(); } else { return broadcastByBuilder_.getCount(); } } /** * <code>repeated .com.mygeopay.core.protos.PeerAddress broadcast_by = 5;</code> */ public com.mygeopay.core.protos.Protos.PeerAddress getBroadcastBy(int index) { if (broadcastByBuilder_ == null) { return broadcastBy_.get(index); } else { return broadcastByBuilder_.getMessage(index); } } /** * <code>repeated .com.mygeopay.core.protos.PeerAddress broadcast_by = 5;</code> */ public Builder setBroadcastBy( int index,com.mygeopay.core.protos.Protos.PeerAddress value) { if (broadcastByBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBroadcastByIsMutable(); broadcastBy_.set(index, value); onChanged(); } else { broadcastByBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .com.mygeopay.core.protos.PeerAddress broadcast_by = 5;</code> */ public Builder setBroadcastBy( int index,com.mygeopay.core.protos.Protos.PeerAddress.Builder builderForValue) { if (broadcastByBuilder_ == null) { ensureBroadcastByIsMutable(); broadcastBy_.set(index, builderForValue.build()); onChanged(); } else { broadcastByBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .com.mygeopay.core.protos.PeerAddress broadcast_by = 5;</code> */ public Builder addBroadcastBy(com.mygeopay.core.protos.Protos.PeerAddress value) { if (broadcastByBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBroadcastByIsMutable(); broadcastBy_.add(value); onChanged(); } else { broadcastByBuilder_.addMessage(value); } return this; } /** * <code>repeated .com.mygeopay.core.protos.PeerAddress broadcast_by = 5;</code> */ public Builder addBroadcastBy( int index,com.mygeopay.core.protos.Protos.PeerAddress value) { if (broadcastByBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBroadcastByIsMutable(); broadcastBy_.add(index, value); onChanged(); } else { broadcastByBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .com.mygeopay.core.protos.PeerAddress broadcast_by = 5;</code> */ public Builder addBroadcastBy( com.mygeopay.core.protos.Protos.PeerAddress.Builder builderForValue) { if (broadcastByBuilder_ == null) { ensureBroadcastByIsMutable(); broadcastBy_.add(builderForValue.build()); onChanged(); } else { broadcastByBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .com.mygeopay.core.protos.PeerAddress broadcast_by = 5;</code> */ public Builder addBroadcastBy( int index,com.mygeopay.core.protos.Protos.PeerAddress.Builder builderForValue) { if (broadcastByBuilder_ == null) { ensureBroadcastByIsMutable(); broadcastBy_.add(index, builderForValue.build()); onChanged(); } else { broadcastByBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .com.mygeopay.core.protos.PeerAddress broadcast_by = 5;</code> */ public Builder addAllBroadcastBy( java.lang.Iterable<? extends com.mygeopay.core.protos.Protos.PeerAddress> values) { if (broadcastByBuilder_ == null) { ensureBroadcastByIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, broadcastBy_); onChanged(); } else { broadcastByBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .com.mygeopay.core.protos.PeerAddress broadcast_by = 5;</code> */ public Builder clearBroadcastBy() { if (broadcastByBuilder_ == null) { broadcastBy_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { broadcastByBuilder_.clear(); } return this; } /** * <code>repeated .com.mygeopay.core.protos.PeerAddress broadcast_by = 5;</code> */ public Builder removeBroadcastBy(int index) { if (broadcastByBuilder_ == null) { ensureBroadcastByIsMutable(); broadcastBy_.remove(index); onChanged(); } else { broadcastByBuilder_.remove(index); } return this; } /** * <code>repeated .com.mygeopay.core.protos.PeerAddress broadcast_by = 5;</code> */ public com.mygeopay.core.protos.Protos.PeerAddress.Builder getBroadcastByBuilder( int index) { return getBroadcastByFieldBuilder().getBuilder(index); } /** * <code>repeated .com.mygeopay.core.protos.PeerAddress broadcast_by = 5;</code> */ public com.mygeopay.core.protos.Protos.PeerAddressOrBuilder getBroadcastByOrBuilder( int index) { if (broadcastByBuilder_ == null) { return broadcastBy_.get(index); } else { return broadcastByBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .com.mygeopay.core.protos.PeerAddress broadcast_by = 5;</code> */ public java.util.List<? extends com.mygeopay.core.protos.Protos.PeerAddressOrBuilder> getBroadcastByOrBuilderList() { if (broadcastByBuilder_ != null) { return broadcastByBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(broadcastBy_); } } /** * <code>repeated .com.mygeopay.core.protos.PeerAddress broadcast_by = 5;</code> */ public com.mygeopay.core.protos.Protos.PeerAddress.Builder addBroadcastByBuilder() { return getBroadcastByFieldBuilder().addBuilder( com.mygeopay.core.protos.Protos.PeerAddress.getDefaultInstance()); } /** * <code>repeated .com.mygeopay.core.protos.PeerAddress broadcast_by = 5;</code> */ public com.mygeopay.core.protos.Protos.PeerAddress.Builder addBroadcastByBuilder( int index) { return getBroadcastByFieldBuilder().addBuilder( index,com.mygeopay.core.protos.Protos.PeerAddress.getDefaultInstance()); } /** * <code>repeated .com.mygeopay.core.protos.PeerAddress broadcast_by = 5;</code> */ public java.util.List<com.mygeopay.core.protos.Protos.PeerAddress.Builder> getBroadcastByBuilderList() { return getBroadcastByFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.mygeopay.core.protos.Protos.PeerAddress,com.mygeopay.core.protos.Protos.PeerAddress.Builder,com.mygeopay.core.protos.Protos.PeerAddressOrBuilder> getBroadcastByFieldBuilder() { if (broadcastByBuilder_ == null) { broadcastByBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.mygeopay.core.protos.Protos.PeerAddress,com.mygeopay.core.protos.Protos.PeerAddress.Builder,com.mygeopay.core.protos.Protos.PeerAddressOrBuilder>( broadcastBy_, ((bitField0_ & 0x00000010) == 0x00000010), getParentForChildren(), isClean()); broadcastBy_ = null; } return broadcastByBuilder_; } private com.mygeopay.core.protos.Protos.TransactionConfidence.Source source_ =com.mygeopay.core.protos.Protos.TransactionConfidence.Source.SOURCE_UNKNOWN; /** * <code>optional .com.mygeopay.core.protos.TransactionConfidence.Source source = 6;</code> */ public boolean hasSource() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional .com.mygeopay.core.protos.TransactionConfidence.Source source = 6;</code> */ public com.mygeopay.core.protos.Protos.TransactionConfidence.Source getSource() { return source_; } /** * <code>optional .com.mygeopay.core.protos.TransactionConfidence.Source source = 6;</code> */ public Builder setSource(com.mygeopay.core.protos.Protos.TransactionConfidence.Source value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; source_ = value; onChanged(); return this; } /** * <code>optional .com.mygeopay.core.protos.TransactionConfidence.Source source = 6;</code> */ public Builder clearSource() { bitField0_ = (bitField0_ & ~0x00000020); source_ =com.mygeopay.core.protos.Protos.TransactionConfidence.Source.SOURCE_UNKNOWN; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.mygeopay.core.protos.TransactionConfidence) } static { defaultInstance = new TransactionConfidence(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.mygeopay.core.protos.TransactionConfidence) } public interface TransactionOrBuilder extends // @@protoc_insertion_point(interface_extends:com.mygeopay.core.protos.Transaction) com.google.protobuf.MessageOrBuilder { /** * <code>required int32 version = 1;</code> * * <pre> * See Wallet.java for detailed description of pool semantics * </pre> */ boolean hasVersion(); /** * <code>required int32 version = 1;</code> * * <pre> * See Wallet.java for detailed description of pool semantics * </pre> */ int getVersion(); /** * <code>optional int32 time = 11;</code> * * <pre> * Used by Peercoin family * </pre> */ boolean hasTime(); /** * <code>optional int32 time = 11;</code> * * <pre> * Used by Peercoin family * </pre> */ int getTime(); /** * <code>required bytes hash = 2;</code> */ boolean hasHash(); /** * <code>required bytes hash = 2;</code> */ com.google.protobuf.ByteString getHash(); /** * <code>optional .com.mygeopay.core.protos.Transaction.Pool pool = 3;</code> * * <pre> * If pool is not present, that means either: * - This Transaction is either not in a wallet at all (the proto is re-used elsewhere) * - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend. * - Or the Pool enum got a new value which your software is too old to parse. * </pre> */ boolean hasPool(); /** * <code>optional .com.mygeopay.core.protos.Transaction.Pool pool = 3;</code> * * <pre> * If pool is not present, that means either: * - This Transaction is either not in a wallet at all (the proto is re-used elsewhere) * - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend. * - Or the Pool enum got a new value which your software is too old to parse. * </pre> */ com.mygeopay.core.protos.Protos.Transaction.Pool getPool(); /** * <code>optional uint32 lock_time = 4;</code> * * <pre> * The nLockTime field is useful for contracts. * </pre> */ boolean hasLockTime(); /** * <code>optional uint32 lock_time = 4;</code> * * <pre> * The nLockTime field is useful for contracts. * </pre> */ int getLockTime(); /** * <code>optional int64 updated_at = 5;</code> * * <pre> * millis since epoch the transaction was last updated * </pre> */ boolean hasUpdatedAt(); /** * <code>optional int64 updated_at = 5;</code> * * <pre> * millis since epoch the transaction was last updated * </pre> */ long getUpdatedAt(); /** * <code>repeated .com.mygeopay.core.protos.TransactionInput transaction_input = 6;</code> */ java.util.List<com.mygeopay.core.protos.Protos.TransactionInput> getTransactionInputList(); /** * <code>repeated .com.mygeopay.core.protos.TransactionInput transaction_input = 6;</code> */ com.mygeopay.core.protos.Protos.TransactionInput getTransactionInput(int index); /** * <code>repeated .com.mygeopay.core.protos.TransactionInput transaction_input = 6;</code> */ int getTransactionInputCount(); /** * <code>repeated .com.mygeopay.core.protos.TransactionInput transaction_input = 6;</code> */ java.util.List<? extends com.mygeopay.core.protos.Protos.TransactionInputOrBuilder> getTransactionInputOrBuilderList(); /** * <code>repeated .com.mygeopay.core.protos.TransactionInput transaction_input = 6;</code> */ com.mygeopay.core.protos.Protos.TransactionInputOrBuilder getTransactionInputOrBuilder( int index); /** * <code>repeated .com.mygeopay.core.protos.TransactionOutput transaction_output = 7;</code> */ java.util.List<com.mygeopay.core.protos.Protos.TransactionOutput> getTransactionOutputList(); /** * <code>repeated .com.mygeopay.core.protos.TransactionOutput transaction_output = 7;</code> */ com.mygeopay.core.protos.Protos.TransactionOutput getTransactionOutput(int index); /** * <code>repeated .com.mygeopay.core.protos.TransactionOutput transaction_output = 7;</code> */ int getTransactionOutputCount(); /** * <code>repeated .com.mygeopay.core.protos.TransactionOutput transaction_output = 7;</code> */ java.util.List<? extends com.mygeopay.core.protos.Protos.TransactionOutputOrBuilder> getTransactionOutputOrBuilderList(); /** * <code>repeated .com.mygeopay.core.protos.TransactionOutput transaction_output = 7;</code> */ com.mygeopay.core.protos.Protos.TransactionOutputOrBuilder getTransactionOutputOrBuilder( int index); /** * <code>repeated bytes block_hash = 8;</code> * * <pre> * A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate * ordering within a block. * </pre> */ java.util.List<com.google.protobuf.ByteString> getBlockHashList(); /** * <code>repeated bytes block_hash = 8;</code> * * <pre> * A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate * ordering within a block. * </pre> */ int getBlockHashCount(); /** * <code>repeated bytes block_hash = 8;</code> * * <pre> * A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate * ordering within a block. * </pre> */ com.google.protobuf.ByteString getBlockHash(int index); /** * <code>repeated int32 block_relativity_offsets = 9;</code> */ java.util.List<java.lang.Integer> getBlockRelativityOffsetsList(); /** * <code>repeated int32 block_relativity_offsets = 9;</code> */ int getBlockRelativityOffsetsCount(); /** * <code>repeated int32 block_relativity_offsets = 9;</code> */ int getBlockRelativityOffsets(int index); /** * <code>optional .com.mygeopay.core.protos.TransactionConfidence confidence = 10;</code> * * <pre> * Data describing where the transaction is in the chain. * </pre> */ boolean hasConfidence(); /** * <code>optional .com.mygeopay.core.protos.TransactionConfidence confidence = 10;</code> * * <pre> * Data describing where the transaction is in the chain. * </pre> */ com.mygeopay.core.protos.Protos.TransactionConfidence getConfidence(); /** * <code>optional .com.mygeopay.core.protos.TransactionConfidence confidence = 10;</code> * * <pre> * Data describing where the transaction is in the chain. * </pre> */ com.mygeopay.core.protos.Protos.TransactionConfidenceOrBuilder getConfidenceOrBuilder(); /** * <code>optional int32 token_id = 12;</code> */ boolean hasTokenId(); /** * <code>optional int32 token_id = 12;</code> */ int getTokenId(); } /** * Protobuf type {@codecom.mygeopay.core.protos.Transaction} */ public static final class Transaction extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:com.mygeopay.core.protos.Transaction) TransactionOrBuilder { // Use Transaction.newBuilder() to construct. private Transaction(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Transaction(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Transaction defaultInstance; public static Transaction getDefaultInstance() { return defaultInstance; } public Transaction getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Transaction( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; version_ = input.readInt32(); break; } case 18: { bitField0_ |= 0x00000004; hash_ = input.readBytes(); break; } case 24: { int rawValue = input.readEnum(); com.mygeopay.core.protos.Protos.Transaction.Pool value =com.mygeopay.core.protos.Protos.Transaction.Pool.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(3, rawValue); } else { bitField0_ |= 0x00000008; pool_ = value; } break; } case 32: { bitField0_ |= 0x00000010; lockTime_ = input.readUInt32(); break; } case 40: { bitField0_ |= 0x00000020; updatedAt_ = input.readInt64(); break; } case 50: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { transactionInput_ = new java.util.ArrayList<com.mygeopay.core.protos.Protos.TransactionInput>(); mutable_bitField0_ |= 0x00000040; } transactionInput_.add(input.readMessage(com.mygeopay.core.protos.Protos.TransactionInput.PARSER, extensionRegistry)); break; } case 58: { if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { transactionOutput_ = new java.util.ArrayList<com.mygeopay.core.protos.Protos.TransactionOutput>(); mutable_bitField0_ |= 0x00000080; } transactionOutput_.add(input.readMessage(com.mygeopay.core.protos.Protos.TransactionOutput.PARSER, extensionRegistry)); break; } case 66: { if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { blockHash_ = new java.util.ArrayList<com.google.protobuf.ByteString>(); mutable_bitField0_ |= 0x00000100; } blockHash_.add(input.readBytes()); break; } case 72: { if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { blockRelativityOffsets_ = new java.util.ArrayList<java.lang.Integer>(); mutable_bitField0_ |= 0x00000200; } blockRelativityOffsets_.add(input.readInt32()); break; } case 74: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000200) == 0x00000200) && input.getBytesUntilLimit() > 0) { blockRelativityOffsets_ = new java.util.ArrayList<java.lang.Integer>(); mutable_bitField0_ |= 0x00000200; } while (input.getBytesUntilLimit() > 0) { blockRelativityOffsets_.add(input.readInt32()); } input.popLimit(limit); break; } case 82: { com.mygeopay.core.protos.Protos.TransactionConfidence.Builder subBuilder = null; if (((bitField0_ & 0x00000040) == 0x00000040)) { subBuilder = confidence_.toBuilder(); } confidence_ = input.readMessage(com.mygeopay.core.protos.Protos.TransactionConfidence.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(confidence_); confidence_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000040; break; } case 88: { bitField0_ |= 0x00000002; time_ = input.readInt32(); break; } case 96: { bitField0_ |= 0x00000080; tokenId_ = input.readInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { transactionInput_ = java.util.Collections.unmodifiableList(transactionInput_); } if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { transactionOutput_ = java.util.Collections.unmodifiableList(transactionOutput_); } if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { blockHash_ = java.util.Collections.unmodifiableList(blockHash_); } if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { blockRelativityOffsets_ = java.util.Collections.unmodifiableList(blockRelativityOffsets_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_Transaction_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_Transaction_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mygeopay.core.protos.Protos.Transaction.class,com.mygeopay.core.protos.Protos.Transaction.Builder.class); } public static final com.google.protobuf.Parser<Transaction> PARSER = new com.google.protobuf.AbstractParser<Transaction>() { public Transaction parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Transaction(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<Transaction> getParserForType() { return PARSER; } /** * Protobuf enum {@codecom.mygeopay.core.protos.Transaction.Pool} * * <pre> ** * This is a bitfield oriented enum, with the following bits: * bit 0 - spent * bit 1 - appears in alt chain * bit 2 - appears in best chain * bit 3 - double-spent * bit 4 - pending (we would like the tx to go into the best chain) * Not all combinations are interesting, just the ones actually used in the enum. * </pre> */ public enum Pool implements com.google.protobuf.ProtocolMessageEnum { /** * <code>UNSPENT = 4;</code> * * <pre> * In best chain, not all outputs spent * </pre> */ UNSPENT(0, 4), /** * <code>SPENT = 5;</code> * * <pre> * In best chain, all outputs spent * </pre> */ SPENT(1, 5), /** * <code>DEAD = 10;</code> * * <pre> * Double-spent by a transaction in the best chain * </pre> */ DEAD(2, 10), /** * <code>PENDING = 16;</code> * * <pre> * Our transaction, not in any chain * </pre> */ PENDING(3, 16), ; /** * <code>UNSPENT = 4;</code> * * <pre> * In best chain, not all outputs spent * </pre> */ public static final int UNSPENT_VALUE = 4; /** * <code>SPENT = 5;</code> * * <pre> * In best chain, all outputs spent * </pre> */ public static final int SPENT_VALUE = 5; /** * <code>DEAD = 10;</code> * * <pre> * Double-spent by a transaction in the best chain * </pre> */ public static final int DEAD_VALUE = 10; /** * <code>PENDING = 16;</code> * * <pre> * Our transaction, not in any chain * </pre> */ public static final int PENDING_VALUE = 16; public final int getNumber() { return value; } public static Pool valueOf(int value) { switch (value) { case 4: return UNSPENT; case 5: return SPENT; case 10: return DEAD; case 16: return PENDING; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<Pool> internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap<Pool> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<Pool>() { public Pool findValueByNumber(int number) { return Pool.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.mygeopay.core.protos.Protos.Transaction.getDescriptor().getEnumTypes().get(0); } private static final Pool[] VALUES = values(); public static Pool valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private Pool(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:com.mygeopay.core.protos.Transaction.Pool) } private int bitField0_; public static final int VERSION_FIELD_NUMBER = 1; private int version_; /** * <code>required int32 version = 1;</code> * * <pre> * See Wallet.java for detailed description of pool semantics * </pre> */ public boolean hasVersion() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required int32 version = 1;</code> * * <pre> * See Wallet.java for detailed description of pool semantics * </pre> */ public int getVersion() { return version_; } public static final int TIME_FIELD_NUMBER = 11; private int time_; /** * <code>optional int32 time = 11;</code> * * <pre> * Used by Peercoin family * </pre> */ public boolean hasTime() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int32 time = 11;</code> * * <pre> * Used by Peercoin family * </pre> */ public int getTime() { return time_; } public static final int HASH_FIELD_NUMBER = 2; private com.google.protobuf.ByteString hash_; /** * <code>required bytes hash = 2;</code> */ public boolean hasHash() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>required bytes hash = 2;</code> */ public com.google.protobuf.ByteString getHash() { return hash_; } public static final int POOL_FIELD_NUMBER = 3; private com.mygeopay.core.protos.Protos.Transaction.Pool pool_; /** * <code>optional .com.mygeopay.core.protos.Transaction.Pool pool = 3;</code> * * <pre> * If pool is not present, that means either: * - This Transaction is either not in a wallet at all (the proto is re-used elsewhere) * - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend. * - Or the Pool enum got a new value which your software is too old to parse. * </pre> */ public boolean hasPool() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional .com.mygeopay.core.protos.Transaction.Pool pool = 3;</code> * * <pre> * If pool is not present, that means either: * - This Transaction is either not in a wallet at all (the proto is re-used elsewhere) * - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend. * - Or the Pool enum got a new value which your software is too old to parse. * </pre> */ public com.mygeopay.core.protos.Protos.Transaction.Pool getPool() { return pool_; } public static final int LOCK_TIME_FIELD_NUMBER = 4; private int lockTime_; /** * <code>optional uint32 lock_time = 4;</code> * * <pre> * The nLockTime field is useful for contracts. * </pre> */ public boolean hasLockTime() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional uint32 lock_time = 4;</code> * * <pre> * The nLockTime field is useful for contracts. * </pre> */ public int getLockTime() { return lockTime_; } public static final int UPDATED_AT_FIELD_NUMBER = 5; private long updatedAt_; /** * <code>optional int64 updated_at = 5;</code> * * <pre> * millis since epoch the transaction was last updated * </pre> */ public boolean hasUpdatedAt() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional int64 updated_at = 5;</code> * * <pre> * millis since epoch the transaction was last updated * </pre> */ public long getUpdatedAt() { return updatedAt_; } public static final int TRANSACTION_INPUT_FIELD_NUMBER = 6; private java.util.List<com.mygeopay.core.protos.Protos.TransactionInput> transactionInput_; /** * <code>repeated .com.mygeopay.core.protos.TransactionInput transaction_input = 6;</code> */ public java.util.List<com.mygeopay.core.protos.Protos.TransactionInput> getTransactionInputList() { return transactionInput_; } /** * <code>repeated .com.mygeopay.core.protos.TransactionInput transaction_input = 6;</code> */ public java.util.List<? extends com.mygeopay.core.protos.Protos.TransactionInputOrBuilder> getTransactionInputOrBuilderList() { return transactionInput_; } /** * <code>repeated .com.mygeopay.core.protos.TransactionInput transaction_input = 6;</code> */ public int getTransactionInputCount() { return transactionInput_.size(); } /** * <code>repeated .com.mygeopay.core.protos.TransactionInput transaction_input = 6;</code> */ public com.mygeopay.core.protos.Protos.TransactionInput getTransactionInput(int index) { return transactionInput_.get(index); } /** * <code>repeated .com.mygeopay.core.protos.TransactionInput transaction_input = 6;</code> */ public com.mygeopay.core.protos.Protos.TransactionInputOrBuilder getTransactionInputOrBuilder( int index) { return transactionInput_.get(index); } public static final int TRANSACTION_OUTPUT_FIELD_NUMBER = 7; private java.util.List<com.mygeopay.core.protos.Protos.TransactionOutput> transactionOutput_; /** * <code>repeated .com.mygeopay.core.protos.TransactionOutput transaction_output = 7;</code> */ public java.util.List<com.mygeopay.core.protos.Protos.TransactionOutput> getTransactionOutputList() { return transactionOutput_; } /** * <code>repeated .com.mygeopay.core.protos.TransactionOutput transaction_output = 7;</code> */ public java.util.List<? extends com.mygeopay.core.protos.Protos.TransactionOutputOrBuilder> getTransactionOutputOrBuilderList() { return transactionOutput_; } /** * <code>repeated .com.mygeopay.core.protos.TransactionOutput transaction_output = 7;</code> */ public int getTransactionOutputCount() { return transactionOutput_.size(); } /** * <code>repeated .com.mygeopay.core.protos.TransactionOutput transaction_output = 7;</code> */ public com.mygeopay.core.protos.Protos.TransactionOutput getTransactionOutput(int index) { return transactionOutput_.get(index); } /** * <code>repeated .com.mygeopay.core.protos.TransactionOutput transaction_output = 7;</code> */ public com.mygeopay.core.protos.Protos.TransactionOutputOrBuilder getTransactionOutputOrBuilder( int index) { return transactionOutput_.get(index); } public static final int BLOCK_HASH_FIELD_NUMBER = 8; private java.util.List<com.google.protobuf.ByteString> blockHash_; /** * <code>repeated bytes block_hash = 8;</code> * * <pre> * A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate * ordering within a block. * </pre> */ public java.util.List<com.google.protobuf.ByteString> getBlockHashList() { return blockHash_; } /** * <code>repeated bytes block_hash = 8;</code> * * <pre> * A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate * ordering within a block. * </pre> */ public int getBlockHashCount() { return blockHash_.size(); } /** * <code>repeated bytes block_hash = 8;</code> * * <pre> * A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate * ordering within a block. * </pre> */ public com.google.protobuf.ByteString getBlockHash(int index) { return blockHash_.get(index); } public static final int BLOCK_RELATIVITY_OFFSETS_FIELD_NUMBER = 9; private java.util.List<java.lang.Integer> blockRelativityOffsets_; /** * <code>repeated int32 block_relativity_offsets = 9;</code> */ public java.util.List<java.lang.Integer> getBlockRelativityOffsetsList() { return blockRelativityOffsets_; } /** * <code>repeated int32 block_relativity_offsets = 9;</code> */ public int getBlockRelativityOffsetsCount() { return blockRelativityOffsets_.size(); } /** * <code>repeated int32 block_relativity_offsets = 9;</code> */ public int getBlockRelativityOffsets(int index) { return blockRelativityOffsets_.get(index); } public static final int CONFIDENCE_FIELD_NUMBER = 10; private com.mygeopay.core.protos.Protos.TransactionConfidence confidence_; /** * <code>optional .com.mygeopay.core.protos.TransactionConfidence confidence = 10;</code> * * <pre> * Data describing where the transaction is in the chain. * </pre> */ public boolean hasConfidence() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional .com.mygeopay.core.protos.TransactionConfidence confidence = 10;</code> * * <pre> * Data describing where the transaction is in the chain. * </pre> */ public com.mygeopay.core.protos.Protos.TransactionConfidence getConfidence() { return confidence_; } /** * <code>optional .com.mygeopay.core.protos.TransactionConfidence confidence = 10;</code> * * <pre> * Data describing where the transaction is in the chain. * </pre> */ public com.mygeopay.core.protos.Protos.TransactionConfidenceOrBuilder getConfidenceOrBuilder() { return confidence_; } public static final int TOKEN_ID_FIELD_NUMBER = 12; private int tokenId_; /** * <code>optional int32 token_id = 12;</code> */ public boolean hasTokenId() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional int32 token_id = 12;</code> */ public int getTokenId() { return tokenId_; } private void initFields() { version_ = 0; time_ = 0; hash_ = com.google.protobuf.ByteString.EMPTY; pool_ =com.mygeopay.core.protos.Protos.Transaction.Pool.UNSPENT; lockTime_ = 0; updatedAt_ = 0L; transactionInput_ = java.util.Collections.emptyList(); transactionOutput_ = java.util.Collections.emptyList(); blockHash_ = java.util.Collections.emptyList(); blockRelativityOffsets_ = java.util.Collections.emptyList(); confidence_ =com.mygeopay.core.protos.Protos.TransactionConfidence.getDefaultInstance(); tokenId_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasVersion()) { memoizedIsInitialized = 0; return false; } if (!hasHash()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getTransactionInputCount(); i++) { if (!getTransactionInput(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getTransactionOutputCount(); i++) { if (!getTransactionOutput(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasConfidence() && !getConfidence().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, version_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(2, hash_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeEnum(3, pool_.getNumber()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeUInt32(4, lockTime_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeInt64(5, updatedAt_); } for (int i = 0; i < transactionInput_.size(); i++) { output.writeMessage(6, transactionInput_.get(i)); } for (int i = 0; i < transactionOutput_.size(); i++) { output.writeMessage(7, transactionOutput_.get(i)); } for (int i = 0; i < blockHash_.size(); i++) { output.writeBytes(8, blockHash_.get(i)); } for (int i = 0; i < blockRelativityOffsets_.size(); i++) { output.writeInt32(9, blockRelativityOffsets_.get(i)); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeMessage(10, confidence_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(11, time_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeInt32(12, tokenId_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, version_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, hash_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, pool_.getNumber()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, lockTime_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, updatedAt_); } for (int i = 0; i < transactionInput_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, transactionInput_.get(i)); } for (int i = 0; i < transactionOutput_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, transactionOutput_.get(i)); } { int dataSize = 0; for (int i = 0; i < blockHash_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(blockHash_.get(i)); } size += dataSize; size += 1 * getBlockHashList().size(); } { int dataSize = 0; for (int i = 0; i < blockRelativityOffsets_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(blockRelativityOffsets_.get(i)); } size += dataSize; size += 1 * getBlockRelativityOffsetsList().size(); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, confidence_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(11, time_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(12, tokenId_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.mygeopay.core.protos.Protos.Transaction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mygeopay.core.protos.Protos.Transaction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mygeopay.core.protos.Protos.Transaction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mygeopay.core.protos.Protos.Transaction parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mygeopay.core.protos.Protos.Transaction parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.mygeopay.core.protos.Protos.Transaction parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.mygeopay.core.protos.Protos.Transaction parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.mygeopay.core.protos.Protos.Transaction parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.mygeopay.core.protos.Protos.Transaction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.mygeopay.core.protos.Protos.Transaction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.mygeopay.core.protos.Protos.Transaction prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@codecom.mygeopay.core.protos.Transaction} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:com.mygeopay.core.protos.Transaction) com.mygeopay.core.protos.Protos.TransactionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_Transaction_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_Transaction_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mygeopay.core.protos.Protos.Transaction.class,com.mygeopay.core.protos.Protos.Transaction.Builder.class); } // Construct usingcom.mygeopay.core.protos.Protos.Transaction.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getTransactionInputFieldBuilder(); getTransactionOutputFieldBuilder(); getConfidenceFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); version_ = 0; bitField0_ = (bitField0_ & ~0x00000001); time_ = 0; bitField0_ = (bitField0_ & ~0x00000002); hash_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); pool_ =com.mygeopay.core.protos.Protos.Transaction.Pool.UNSPENT; bitField0_ = (bitField0_ & ~0x00000008); lockTime_ = 0; bitField0_ = (bitField0_ & ~0x00000010); updatedAt_ = 0L; bitField0_ = (bitField0_ & ~0x00000020); if (transactionInputBuilder_ == null) { transactionInput_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { transactionInputBuilder_.clear(); } if (transactionOutputBuilder_ == null) { transactionOutput_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); } else { transactionOutputBuilder_.clear(); } blockHash_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); blockRelativityOffsets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); if (confidenceBuilder_ == null) { confidence_ =com.mygeopay.core.protos.Protos.TransactionConfidence.getDefaultInstance(); } else { confidenceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); tokenId_ = 0; bitField0_ = (bitField0_ & ~0x00000800); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_Transaction_descriptor; } public com.mygeopay.core.protos.Protos.Transaction getDefaultInstanceForType() { return com.mygeopay.core.protos.Protos.Transaction.getDefaultInstance(); } public com.mygeopay.core.protos.Protos.Transaction build() { com.mygeopay.core.protos.Protos.Transaction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.mygeopay.core.protos.Protos.Transaction buildPartial() { com.mygeopay.core.protos.Protos.Transaction result = new com.mygeopay.core.protos.Protos.Transaction(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.version_ = version_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.time_ = time_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.hash_ = hash_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.pool_ = pool_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.lockTime_ = lockTime_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.updatedAt_ = updatedAt_; if (transactionInputBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040)) { transactionInput_ = java.util.Collections.unmodifiableList(transactionInput_); bitField0_ = (bitField0_ & ~0x00000040); } result.transactionInput_ = transactionInput_; } else { result.transactionInput_ = transactionInputBuilder_.build(); } if (transactionOutputBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080)) { transactionOutput_ = java.util.Collections.unmodifiableList(transactionOutput_); bitField0_ = (bitField0_ & ~0x00000080); } result.transactionOutput_ = transactionOutput_; } else { result.transactionOutput_ = transactionOutputBuilder_.build(); } if (((bitField0_ & 0x00000100) == 0x00000100)) { blockHash_ = java.util.Collections.unmodifiableList(blockHash_); bitField0_ = (bitField0_ & ~0x00000100); } result.blockHash_ = blockHash_; if (((bitField0_ & 0x00000200) == 0x00000200)) { blockRelativityOffsets_ = java.util.Collections.unmodifiableList(blockRelativityOffsets_); bitField0_ = (bitField0_ & ~0x00000200); } result.blockRelativityOffsets_ = blockRelativityOffsets_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000040; } if (confidenceBuilder_ == null) { result.confidence_ = confidence_; } else { result.confidence_ = confidenceBuilder_.build(); } if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000080; } result.tokenId_ = tokenId_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.mygeopay.core.protos.Protos.Transaction) { return mergeFrom((com.mygeopay.core.protos.Protos.Transaction)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.mygeopay.core.protos.Protos.Transaction other) { if (other ==com.mygeopay.core.protos.Protos.Transaction.getDefaultInstance()) return this; if (other.hasVersion()) { setVersion(other.getVersion()); } if (other.hasTime()) { setTime(other.getTime()); } if (other.hasHash()) { setHash(other.getHash()); } if (other.hasPool()) { setPool(other.getPool()); } if (other.hasLockTime()) { setLockTime(other.getLockTime()); } if (other.hasUpdatedAt()) { setUpdatedAt(other.getUpdatedAt()); } if (transactionInputBuilder_ == null) { if (!other.transactionInput_.isEmpty()) { if (transactionInput_.isEmpty()) { transactionInput_ = other.transactionInput_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureTransactionInputIsMutable(); transactionInput_.addAll(other.transactionInput_); } onChanged(); } } else { if (!other.transactionInput_.isEmpty()) { if (transactionInputBuilder_.isEmpty()) { transactionInputBuilder_.dispose(); transactionInputBuilder_ = null; transactionInput_ = other.transactionInput_; bitField0_ = (bitField0_ & ~0x00000040); transactionInputBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getTransactionInputFieldBuilder() : null; } else { transactionInputBuilder_.addAllMessages(other.transactionInput_); } } } if (transactionOutputBuilder_ == null) { if (!other.transactionOutput_.isEmpty()) { if (transactionOutput_.isEmpty()) { transactionOutput_ = other.transactionOutput_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureTransactionOutputIsMutable(); transactionOutput_.addAll(other.transactionOutput_); } onChanged(); } } else { if (!other.transactionOutput_.isEmpty()) { if (transactionOutputBuilder_.isEmpty()) { transactionOutputBuilder_.dispose(); transactionOutputBuilder_ = null; transactionOutput_ = other.transactionOutput_; bitField0_ = (bitField0_ & ~0x00000080); transactionOutputBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getTransactionOutputFieldBuilder() : null; } else { transactionOutputBuilder_.addAllMessages(other.transactionOutput_); } } } if (!other.blockHash_.isEmpty()) { if (blockHash_.isEmpty()) { blockHash_ = other.blockHash_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensureBlockHashIsMutable(); blockHash_.addAll(other.blockHash_); } onChanged(); } if (!other.blockRelativityOffsets_.isEmpty()) { if (blockRelativityOffsets_.isEmpty()) { blockRelativityOffsets_ = other.blockRelativityOffsets_; bitField0_ = (bitField0_ & ~0x00000200); } else { ensureBlockRelativityOffsetsIsMutable(); blockRelativityOffsets_.addAll(other.blockRelativityOffsets_); } onChanged(); } if (other.hasConfidence()) { mergeConfidence(other.getConfidence()); } if (other.hasTokenId()) { setTokenId(other.getTokenId()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasVersion()) { return false; } if (!hasHash()) { return false; } for (int i = 0; i < getTransactionInputCount(); i++) { if (!getTransactionInput(i).isInitialized()) { return false; } } for (int i = 0; i < getTransactionOutputCount(); i++) { if (!getTransactionOutput(i).isInitialized()) { return false; } } if (hasConfidence()) { if (!getConfidence().isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.mygeopay.core.protos.Protos.Transaction parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.mygeopay.core.protos.Protos.Transaction) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int version_ ; /** * <code>required int32 version = 1;</code> * * <pre> * See Wallet.java for detailed description of pool semantics * </pre> */ public boolean hasVersion() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required int32 version = 1;</code> * * <pre> * See Wallet.java for detailed description of pool semantics * </pre> */ public int getVersion() { return version_; } /** * <code>required int32 version = 1;</code> * * <pre> * See Wallet.java for detailed description of pool semantics * </pre> */ public Builder setVersion(int value) { bitField0_ |= 0x00000001; version_ = value; onChanged(); return this; } /** * <code>required int32 version = 1;</code> * * <pre> * See Wallet.java for detailed description of pool semantics * </pre> */ public Builder clearVersion() { bitField0_ = (bitField0_ & ~0x00000001); version_ = 0; onChanged(); return this; } private int time_ ; /** * <code>optional int32 time = 11;</code> * * <pre> * Used by Peercoin family * </pre> */ public boolean hasTime() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int32 time = 11;</code> * * <pre> * Used by Peercoin family * </pre> */ public int getTime() { return time_; } /** * <code>optional int32 time = 11;</code> * * <pre> * Used by Peercoin family * </pre> */ public Builder setTime(int value) { bitField0_ |= 0x00000002; time_ = value; onChanged(); return this; } /** * <code>optional int32 time = 11;</code> * * <pre> * Used by Peercoin family * </pre> */ public Builder clearTime() { bitField0_ = (bitField0_ & ~0x00000002); time_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; /** * <code>required bytes hash = 2;</code> */ public boolean hasHash() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>required bytes hash = 2;</code> */ public com.google.protobuf.ByteString getHash() { return hash_; } /** * <code>required bytes hash = 2;</code> */ public Builder setHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; hash_ = value; onChanged(); return this; } /** * <code>required bytes hash = 2;</code> */ public Builder clearHash() { bitField0_ = (bitField0_ & ~0x00000004); hash_ = getDefaultInstance().getHash(); onChanged(); return this; } private com.mygeopay.core.protos.Protos.Transaction.Pool pool_ =com.mygeopay.core.protos.Protos.Transaction.Pool.UNSPENT; /** * <code>optional .com.mygeopay.core.protos.Transaction.Pool pool = 3;</code> * * <pre> * If pool is not present, that means either: * - This Transaction is either not in a wallet at all (the proto is re-used elsewhere) * - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend. * - Or the Pool enum got a new value which your software is too old to parse. * </pre> */ public boolean hasPool() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional .com.mygeopay.core.protos.Transaction.Pool pool = 3;</code> * * <pre> * If pool is not present, that means either: * - This Transaction is either not in a wallet at all (the proto is re-used elsewhere) * - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend. * - Or the Pool enum got a new value which your software is too old to parse. * </pre> */ public com.mygeopay.core.protos.Protos.Transaction.Pool getPool() { return pool_; } /** * <code>optional .com.mygeopay.core.protos.Transaction.Pool pool = 3;</code> * * <pre> * If pool is not present, that means either: * - This Transaction is either not in a wallet at all (the proto is re-used elsewhere) * - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend. * - Or the Pool enum got a new value which your software is too old to parse. * </pre> */ public Builder setPool(com.mygeopay.core.protos.Protos.Transaction.Pool value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; pool_ = value; onChanged(); return this; } /** * <code>optional .com.mygeopay.core.protos.Transaction.Pool pool = 3;</code> * * <pre> * If pool is not present, that means either: * - This Transaction is either not in a wallet at all (the proto is re-used elsewhere) * - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend. * - Or the Pool enum got a new value which your software is too old to parse. * </pre> */ public Builder clearPool() { bitField0_ = (bitField0_ & ~0x00000008); pool_ =com.mygeopay.core.protos.Protos.Transaction.Pool.UNSPENT; onChanged(); return this; } private int lockTime_ ; /** * <code>optional uint32 lock_time = 4;</code> * * <pre> * The nLockTime field is useful for contracts. * </pre> */ public boolean hasLockTime() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional uint32 lock_time = 4;</code> * * <pre> * The nLockTime field is useful for contracts. * </pre> */ public int getLockTime() { return lockTime_; } /** * <code>optional uint32 lock_time = 4;</code> * * <pre> * The nLockTime field is useful for contracts. * </pre> */ public Builder setLockTime(int value) { bitField0_ |= 0x00000010; lockTime_ = value; onChanged(); return this; } /** * <code>optional uint32 lock_time = 4;</code> * * <pre> * The nLockTime field is useful for contracts. * </pre> */ public Builder clearLockTime() { bitField0_ = (bitField0_ & ~0x00000010); lockTime_ = 0; onChanged(); return this; } private long updatedAt_ ; /** * <code>optional int64 updated_at = 5;</code> * * <pre> * millis since epoch the transaction was last updated * </pre> */ public boolean hasUpdatedAt() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional int64 updated_at = 5;</code> * * <pre> * millis since epoch the transaction was last updated * </pre> */ public long getUpdatedAt() { return updatedAt_; } /** * <code>optional int64 updated_at = 5;</code> * * <pre> * millis since epoch the transaction was last updated * </pre> */ public Builder setUpdatedAt(long value) { bitField0_ |= 0x00000020; updatedAt_ = value; onChanged(); return this; } /** * <code>optional int64 updated_at = 5;</code> * * <pre> * millis since epoch the transaction was last updated * </pre> */ public Builder clearUpdatedAt() { bitField0_ = (bitField0_ & ~0x00000020); updatedAt_ = 0L; onChanged(); return this; } private java.util.List<com.mygeopay.core.protos.Protos.TransactionInput> transactionInput_ = java.util.Collections.emptyList(); private void ensureTransactionInputIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { transactionInput_ = new java.util.ArrayList<com.mygeopay.core.protos.Protos.TransactionInput>(transactionInput_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilder< com.mygeopay.core.protos.Protos.TransactionInput,com.mygeopay.core.protos.Protos.TransactionInput.Builder,com.mygeopay.core.protos.Protos.TransactionInputOrBuilder> transactionInputBuilder_; /** * <code>repeated .com.mygeopay.core.protos.TransactionInput transaction_input = 6;</code> */ public java.util.List<com.mygeopay.core.protos.Protos.TransactionInput> getTransactionInputList() { if (transactionInputBuilder_ == null) { return java.util.Collections.unmodifiableList(transactionInput_); } else { return transactionInputBuilder_.getMessageList(); } } /** * <code>repeated .com.mygeopay.core.protos.TransactionInput transaction_input = 6;</code> */ public int getTransactionInputCount() { if (transactionInputBuilder_ == null) { return transactionInput_.size(); } else { return transactionInputBuilder_.getCount(); } } /** * <code>repeated .com.mygeopay.core.protos.TransactionInput transaction_input = 6;</code> */ public com.mygeopay.core.protos.Protos.TransactionInput getTransactionInput(int index) { if (transactionInputBuilder_ == null) { return transactionInput_.get(index); } else { return transactionInputBuilder_.getMessage(index); } } /** * <code>repeated .com.mygeopay.core.protos.TransactionInput transaction_input = 6;</code> */ public Builder setTransactionInput( int index,com.mygeopay.core.protos.Protos.TransactionInput value) { if (transactionInputBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransactionInputIsMutable(); transactionInput_.set(index, value); onChanged(); } else { transactionInputBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .com.mygeopay.core.protos.TransactionInput transaction_input = 6;</code> */ public Builder setTransactionInput( int index,com.mygeopay.core.protos.Protos.TransactionInput.Builder builderForValue) { if (transactionInputBuilder_ == null) { ensureTransactionInputIsMutable(); transactionInput_.set(index, builderForValue.build()); onChanged(); } else { transactionInputBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .com.mygeopay.core.protos.TransactionInput transaction_input = 6;</code> */ public Builder addTransactionInput(com.mygeopay.core.protos.Protos.TransactionInput value) { if (transactionInputBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransactionInputIsMutable(); transactionInput_.add(value); onChanged(); } else { transactionInputBuilder_.addMessage(value); } return this; } /** * <code>repeated .com.mygeopay.core.protos.TransactionInput transaction_input = 6;</code> */ public Builder addTransactionInput( int index,com.mygeopay.core.protos.Protos.TransactionInput value) { if (transactionInputBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransactionInputIsMutable(); transactionInput_.add(index, value); onChanged(); } else { transactionInputBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .com.mygeopay.core.protos.TransactionInput transaction_input = 6;</code> */ public Builder addTransactionInput( com.mygeopay.core.protos.Protos.TransactionInput.Builder builderForValue) { if (transactionInputBuilder_ == null) { ensureTransactionInputIsMutable(); transactionInput_.add(builderForValue.build()); onChanged(); } else { transactionInputBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .com.mygeopay.core.protos.TransactionInput transaction_input = 6;</code> */ public Builder addTransactionInput( int index,com.mygeopay.core.protos.Protos.TransactionInput.Builder builderForValue) { if (transactionInputBuilder_ == null) { ensureTransactionInputIsMutable(); transactionInput_.add(index, builderForValue.build()); onChanged(); } else { transactionInputBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .com.mygeopay.core.protos.TransactionInput transaction_input = 6;</code> */ public Builder addAllTransactionInput( java.lang.Iterable<? extends com.mygeopay.core.protos.Protos.TransactionInput> values) { if (transactionInputBuilder_ == null) { ensureTransactionInputIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, transactionInput_); onChanged(); } else { transactionInputBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .com.mygeopay.core.protos.TransactionInput transaction_input = 6;</code> */ public Builder clearTransactionInput() { if (transactionInputBuilder_ == null) { transactionInput_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { transactionInputBuilder_.clear(); } return this; } /** * <code>repeated .com.mygeopay.core.protos.TransactionInput transaction_input = 6;</code> */ public Builder removeTransactionInput(int index) { if (transactionInputBuilder_ == null) { ensureTransactionInputIsMutable(); transactionInput_.remove(index); onChanged(); } else { transactionInputBuilder_.remove(index); } return this; } /** * <code>repeated .com.mygeopay.core.protos.TransactionInput transaction_input = 6;</code> */ public com.mygeopay.core.protos.Protos.TransactionInput.Builder getTransactionInputBuilder( int index) { return getTransactionInputFieldBuilder().getBuilder(index); } /** * <code>repeated .com.mygeopay.core.protos.TransactionInput transaction_input = 6;</code> */ public com.mygeopay.core.protos.Protos.TransactionInputOrBuilder getTransactionInputOrBuilder( int index) { if (transactionInputBuilder_ == null) { return transactionInput_.get(index); } else { return transactionInputBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .com.mygeopay.core.protos.TransactionInput transaction_input = 6;</code> */ public java.util.List<? extends com.mygeopay.core.protos.Protos.TransactionInputOrBuilder> getTransactionInputOrBuilderList() { if (transactionInputBuilder_ != null) { return transactionInputBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(transactionInput_); } } /** * <code>repeated .com.mygeopay.core.protos.TransactionInput transaction_input = 6;</code> */ public com.mygeopay.core.protos.Protos.TransactionInput.Builder addTransactionInputBuilder() { return getTransactionInputFieldBuilder().addBuilder( com.mygeopay.core.protos.Protos.TransactionInput.getDefaultInstance()); } /** * <code>repeated .com.mygeopay.core.protos.TransactionInput transaction_input = 6;</code> */ public com.mygeopay.core.protos.Protos.TransactionInput.Builder addTransactionInputBuilder( int index) { return getTransactionInputFieldBuilder().addBuilder( index,com.mygeopay.core.protos.Protos.TransactionInput.getDefaultInstance()); } /** * <code>repeated .com.mygeopay.core.protos.TransactionInput transaction_input = 6;</code> */ public java.util.List<com.mygeopay.core.protos.Protos.TransactionInput.Builder> getTransactionInputBuilderList() { return getTransactionInputFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.mygeopay.core.protos.Protos.TransactionInput,com.mygeopay.core.protos.Protos.TransactionInput.Builder,com.mygeopay.core.protos.Protos.TransactionInputOrBuilder> getTransactionInputFieldBuilder() { if (transactionInputBuilder_ == null) { transactionInputBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.mygeopay.core.protos.Protos.TransactionInput,com.mygeopay.core.protos.Protos.TransactionInput.Builder,com.mygeopay.core.protos.Protos.TransactionInputOrBuilder>( transactionInput_, ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), isClean()); transactionInput_ = null; } return transactionInputBuilder_; } private java.util.List<com.mygeopay.core.protos.Protos.TransactionOutput> transactionOutput_ = java.util.Collections.emptyList(); private void ensureTransactionOutputIsMutable() { if (!((bitField0_ & 0x00000080) == 0x00000080)) { transactionOutput_ = new java.util.ArrayList<com.mygeopay.core.protos.Protos.TransactionOutput>(transactionOutput_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilder< com.mygeopay.core.protos.Protos.TransactionOutput,com.mygeopay.core.protos.Protos.TransactionOutput.Builder,com.mygeopay.core.protos.Protos.TransactionOutputOrBuilder> transactionOutputBuilder_; /** * <code>repeated .com.mygeopay.core.protos.TransactionOutput transaction_output = 7;</code> */ public java.util.List<com.mygeopay.core.protos.Protos.TransactionOutput> getTransactionOutputList() { if (transactionOutputBuilder_ == null) { return java.util.Collections.unmodifiableList(transactionOutput_); } else { return transactionOutputBuilder_.getMessageList(); } } /** * <code>repeated .com.mygeopay.core.protos.TransactionOutput transaction_output = 7;</code> */ public int getTransactionOutputCount() { if (transactionOutputBuilder_ == null) { return transactionOutput_.size(); } else { return transactionOutputBuilder_.getCount(); } } /** * <code>repeated .com.mygeopay.core.protos.TransactionOutput transaction_output = 7;</code> */ public com.mygeopay.core.protos.Protos.TransactionOutput getTransactionOutput(int index) { if (transactionOutputBuilder_ == null) { return transactionOutput_.get(index); } else { return transactionOutputBuilder_.getMessage(index); } } /** * <code>repeated .com.mygeopay.core.protos.TransactionOutput transaction_output = 7;</code> */ public Builder setTransactionOutput( int index,com.mygeopay.core.protos.Protos.TransactionOutput value) { if (transactionOutputBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransactionOutputIsMutable(); transactionOutput_.set(index, value); onChanged(); } else { transactionOutputBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .com.mygeopay.core.protos.TransactionOutput transaction_output = 7;</code> */ public Builder setTransactionOutput( int index,com.mygeopay.core.protos.Protos.TransactionOutput.Builder builderForValue) { if (transactionOutputBuilder_ == null) { ensureTransactionOutputIsMutable(); transactionOutput_.set(index, builderForValue.build()); onChanged(); } else { transactionOutputBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .com.mygeopay.core.protos.TransactionOutput transaction_output = 7;</code> */ public Builder addTransactionOutput(com.mygeopay.core.protos.Protos.TransactionOutput value) { if (transactionOutputBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransactionOutputIsMutable(); transactionOutput_.add(value); onChanged(); } else { transactionOutputBuilder_.addMessage(value); } return this; } /** * <code>repeated .com.mygeopay.core.protos.TransactionOutput transaction_output = 7;</code> */ public Builder addTransactionOutput( int index,com.mygeopay.core.protos.Protos.TransactionOutput value) { if (transactionOutputBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransactionOutputIsMutable(); transactionOutput_.add(index, value); onChanged(); } else { transactionOutputBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .com.mygeopay.core.protos.TransactionOutput transaction_output = 7;</code> */ public Builder addTransactionOutput( com.mygeopay.core.protos.Protos.TransactionOutput.Builder builderForValue) { if (transactionOutputBuilder_ == null) { ensureTransactionOutputIsMutable(); transactionOutput_.add(builderForValue.build()); onChanged(); } else { transactionOutputBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .com.mygeopay.core.protos.TransactionOutput transaction_output = 7;</code> */ public Builder addTransactionOutput( int index,com.mygeopay.core.protos.Protos.TransactionOutput.Builder builderForValue) { if (transactionOutputBuilder_ == null) { ensureTransactionOutputIsMutable(); transactionOutput_.add(index, builderForValue.build()); onChanged(); } else { transactionOutputBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .com.mygeopay.core.protos.TransactionOutput transaction_output = 7;</code> */ public Builder addAllTransactionOutput( java.lang.Iterable<? extends com.mygeopay.core.protos.Protos.TransactionOutput> values) { if (transactionOutputBuilder_ == null) { ensureTransactionOutputIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, transactionOutput_); onChanged(); } else { transactionOutputBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .com.mygeopay.core.protos.TransactionOutput transaction_output = 7;</code> */ public Builder clearTransactionOutput() { if (transactionOutputBuilder_ == null) { transactionOutput_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { transactionOutputBuilder_.clear(); } return this; } /** * <code>repeated .com.mygeopay.core.protos.TransactionOutput transaction_output = 7;</code> */ public Builder removeTransactionOutput(int index) { if (transactionOutputBuilder_ == null) { ensureTransactionOutputIsMutable(); transactionOutput_.remove(index); onChanged(); } else { transactionOutputBuilder_.remove(index); } return this; } /** * <code>repeated .com.mygeopay.core.protos.TransactionOutput transaction_output = 7;</code> */ public com.mygeopay.core.protos.Protos.TransactionOutput.Builder getTransactionOutputBuilder( int index) { return getTransactionOutputFieldBuilder().getBuilder(index); } /** * <code>repeated .com.mygeopay.core.protos.TransactionOutput transaction_output = 7;</code> */ public com.mygeopay.core.protos.Protos.TransactionOutputOrBuilder getTransactionOutputOrBuilder( int index) { if (transactionOutputBuilder_ == null) { return transactionOutput_.get(index); } else { return transactionOutputBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .com.mygeopay.core.protos.TransactionOutput transaction_output = 7;</code> */ public java.util.List<? extends com.mygeopay.core.protos.Protos.TransactionOutputOrBuilder> getTransactionOutputOrBuilderList() { if (transactionOutputBuilder_ != null) { return transactionOutputBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(transactionOutput_); } } /** * <code>repeated .com.mygeopay.core.protos.TransactionOutput transaction_output = 7;</code> */ public com.mygeopay.core.protos.Protos.TransactionOutput.Builder addTransactionOutputBuilder() { return getTransactionOutputFieldBuilder().addBuilder( com.mygeopay.core.protos.Protos.TransactionOutput.getDefaultInstance()); } /** * <code>repeated .com.mygeopay.core.protos.TransactionOutput transaction_output = 7;</code> */ public com.mygeopay.core.protos.Protos.TransactionOutput.Builder addTransactionOutputBuilder( int index) { return getTransactionOutputFieldBuilder().addBuilder( index,com.mygeopay.core.protos.Protos.TransactionOutput.getDefaultInstance()); } /** * <code>repeated .com.mygeopay.core.protos.TransactionOutput transaction_output = 7;</code> */ public java.util.List<com.mygeopay.core.protos.Protos.TransactionOutput.Builder> getTransactionOutputBuilderList() { return getTransactionOutputFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.mygeopay.core.protos.Protos.TransactionOutput,com.mygeopay.core.protos.Protos.TransactionOutput.Builder,com.mygeopay.core.protos.Protos.TransactionOutputOrBuilder> getTransactionOutputFieldBuilder() { if (transactionOutputBuilder_ == null) { transactionOutputBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.mygeopay.core.protos.Protos.TransactionOutput,com.mygeopay.core.protos.Protos.TransactionOutput.Builder,com.mygeopay.core.protos.Protos.TransactionOutputOrBuilder>( transactionOutput_, ((bitField0_ & 0x00000080) == 0x00000080), getParentForChildren(), isClean()); transactionOutput_ = null; } return transactionOutputBuilder_; } private java.util.List<com.google.protobuf.ByteString> blockHash_ = java.util.Collections.emptyList(); private void ensureBlockHashIsMutable() { if (!((bitField0_ & 0x00000100) == 0x00000100)) { blockHash_ = new java.util.ArrayList<com.google.protobuf.ByteString>(blockHash_); bitField0_ |= 0x00000100; } } /** * <code>repeated bytes block_hash = 8;</code> * * <pre> * A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate * ordering within a block. * </pre> */ public java.util.List<com.google.protobuf.ByteString> getBlockHashList() { return java.util.Collections.unmodifiableList(blockHash_); } /** * <code>repeated bytes block_hash = 8;</code> * * <pre> * A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate * ordering within a block. * </pre> */ public int getBlockHashCount() { return blockHash_.size(); } /** * <code>repeated bytes block_hash = 8;</code> * * <pre> * A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate * ordering within a block. * </pre> */ public com.google.protobuf.ByteString getBlockHash(int index) { return blockHash_.get(index); } /** * <code>repeated bytes block_hash = 8;</code> * * <pre> * A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate * ordering within a block. * </pre> */ public Builder setBlockHash( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureBlockHashIsMutable(); blockHash_.set(index, value); onChanged(); return this; } /** * <code>repeated bytes block_hash = 8;</code> * * <pre> * A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate * ordering within a block. * </pre> */ public Builder addBlockHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureBlockHashIsMutable(); blockHash_.add(value); onChanged(); return this; } /** * <code>repeated bytes block_hash = 8;</code> * * <pre> * A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate * ordering within a block. * </pre> */ public Builder addAllBlockHash( java.lang.Iterable<? extends com.google.protobuf.ByteString> values) { ensureBlockHashIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, blockHash_); onChanged(); return this; } /** * <code>repeated bytes block_hash = 8;</code> * * <pre> * A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate * ordering within a block. * </pre> */ public Builder clearBlockHash() { blockHash_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } private java.util.List<java.lang.Integer> blockRelativityOffsets_ = java.util.Collections.emptyList(); private void ensureBlockRelativityOffsetsIsMutable() { if (!((bitField0_ & 0x00000200) == 0x00000200)) { blockRelativityOffsets_ = new java.util.ArrayList<java.lang.Integer>(blockRelativityOffsets_); bitField0_ |= 0x00000200; } } /** * <code>repeated int32 block_relativity_offsets = 9;</code> */ public java.util.List<java.lang.Integer> getBlockRelativityOffsetsList() { return java.util.Collections.unmodifiableList(blockRelativityOffsets_); } /** * <code>repeated int32 block_relativity_offsets = 9;</code> */ public int getBlockRelativityOffsetsCount() { return blockRelativityOffsets_.size(); } /** * <code>repeated int32 block_relativity_offsets = 9;</code> */ public int getBlockRelativityOffsets(int index) { return blockRelativityOffsets_.get(index); } /** * <code>repeated int32 block_relativity_offsets = 9;</code> */ public Builder setBlockRelativityOffsets( int index, int value) { ensureBlockRelativityOffsetsIsMutable(); blockRelativityOffsets_.set(index, value); onChanged(); return this; } /** * <code>repeated int32 block_relativity_offsets = 9;</code> */ public Builder addBlockRelativityOffsets(int value) { ensureBlockRelativityOffsetsIsMutable(); blockRelativityOffsets_.add(value); onChanged(); return this; } /** * <code>repeated int32 block_relativity_offsets = 9;</code> */ public Builder addAllBlockRelativityOffsets( java.lang.Iterable<? extends java.lang.Integer> values) { ensureBlockRelativityOffsetsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, blockRelativityOffsets_); onChanged(); return this; } /** * <code>repeated int32 block_relativity_offsets = 9;</code> */ public Builder clearBlockRelativityOffsets() { blockRelativityOffsets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } private com.mygeopay.core.protos.Protos.TransactionConfidence confidence_ =com.mygeopay.core.protos.Protos.TransactionConfidence.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< com.mygeopay.core.protos.Protos.TransactionConfidence,com.mygeopay.core.protos.Protos.TransactionConfidence.Builder,com.mygeopay.core.protos.Protos.TransactionConfidenceOrBuilder> confidenceBuilder_; /** * <code>optional .com.mygeopay.core.protos.TransactionConfidence confidence = 10;</code> * * <pre> * Data describing where the transaction is in the chain. * </pre> */ public boolean hasConfidence() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * <code>optional .com.mygeopay.core.protos.TransactionConfidence confidence = 10;</code> * * <pre> * Data describing where the transaction is in the chain. * </pre> */ public com.mygeopay.core.protos.Protos.TransactionConfidence getConfidence() { if (confidenceBuilder_ == null) { return confidence_; } else { return confidenceBuilder_.getMessage(); } } /** * <code>optional .com.mygeopay.core.protos.TransactionConfidence confidence = 10;</code> * * <pre> * Data describing where the transaction is in the chain. * </pre> */ public Builder setConfidence(com.mygeopay.core.protos.Protos.TransactionConfidence value) { if (confidenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } confidence_ = value; onChanged(); } else { confidenceBuilder_.setMessage(value); } bitField0_ |= 0x00000400; return this; } /** * <code>optional .com.mygeopay.core.protos.TransactionConfidence confidence = 10;</code> * * <pre> * Data describing where the transaction is in the chain. * </pre> */ public Builder setConfidence( com.mygeopay.core.protos.Protos.TransactionConfidence.Builder builderForValue) { if (confidenceBuilder_ == null) { confidence_ = builderForValue.build(); onChanged(); } else { confidenceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000400; return this; } /** * <code>optional .com.mygeopay.core.protos.TransactionConfidence confidence = 10;</code> * * <pre> * Data describing where the transaction is in the chain. * </pre> */ public Builder mergeConfidence(com.mygeopay.core.protos.Protos.TransactionConfidence value) { if (confidenceBuilder_ == null) { if (((bitField0_ & 0x00000400) == 0x00000400) && confidence_ !=com.mygeopay.core.protos.Protos.TransactionConfidence.getDefaultInstance()) { confidence_ = com.mygeopay.core.protos.Protos.TransactionConfidence.newBuilder(confidence_).mergeFrom(value).buildPartial(); } else { confidence_ = value; } onChanged(); } else { confidenceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000400; return this; } /** * <code>optional .com.mygeopay.core.protos.TransactionConfidence confidence = 10;</code> * * <pre> * Data describing where the transaction is in the chain. * </pre> */ public Builder clearConfidence() { if (confidenceBuilder_ == null) { confidence_ =com.mygeopay.core.protos.Protos.TransactionConfidence.getDefaultInstance(); onChanged(); } else { confidenceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); return this; } /** * <code>optional .com.mygeopay.core.protos.TransactionConfidence confidence = 10;</code> * * <pre> * Data describing where the transaction is in the chain. * </pre> */ public com.mygeopay.core.protos.Protos.TransactionConfidence.Builder getConfidenceBuilder() { bitField0_ |= 0x00000400; onChanged(); return getConfidenceFieldBuilder().getBuilder(); } /** * <code>optional .com.mygeopay.core.protos.TransactionConfidence confidence = 10;</code> * * <pre> * Data describing where the transaction is in the chain. * </pre> */ public com.mygeopay.core.protos.Protos.TransactionConfidenceOrBuilder getConfidenceOrBuilder() { if (confidenceBuilder_ != null) { return confidenceBuilder_.getMessageOrBuilder(); } else { return confidence_; } } /** * <code>optional .com.mygeopay.core.protos.TransactionConfidence confidence = 10;</code> * * <pre> * Data describing where the transaction is in the chain. * </pre> */ private com.google.protobuf.SingleFieldBuilder< com.mygeopay.core.protos.Protos.TransactionConfidence,com.mygeopay.core.protos.Protos.TransactionConfidence.Builder,com.mygeopay.core.protos.Protos.TransactionConfidenceOrBuilder> getConfidenceFieldBuilder() { if (confidenceBuilder_ == null) { confidenceBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.mygeopay.core.protos.Protos.TransactionConfidence,com.mygeopay.core.protos.Protos.TransactionConfidence.Builder,com.mygeopay.core.protos.Protos.TransactionConfidenceOrBuilder>( getConfidence(), getParentForChildren(), isClean()); confidence_ = null; } return confidenceBuilder_; } private int tokenId_ ; /** * <code>optional int32 token_id = 12;</code> */ public boolean hasTokenId() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * <code>optional int32 token_id = 12;</code> */ public int getTokenId() { return tokenId_; } /** * <code>optional int32 token_id = 12;</code> */ public Builder setTokenId(int value) { bitField0_ |= 0x00000800; tokenId_ = value; onChanged(); return this; } /** * <code>optional int32 token_id = 12;</code> */ public Builder clearTokenId() { bitField0_ = (bitField0_ & ~0x00000800); tokenId_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.mygeopay.core.protos.Transaction) } static { defaultInstance = new Transaction(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.mygeopay.core.protos.Transaction) } public interface AddressStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:com.mygeopay.core.protos.AddressStatus) com.google.protobuf.MessageOrBuilder { /** * <code>required string address = 1;</code> * * <pre> * The address that the wallet watches * </pre> */ boolean hasAddress(); /** * <code>required string address = 1;</code> * * <pre> * The address that the wallet watches * </pre> */ java.lang.String getAddress(); /** * <code>required string address = 1;</code> * * <pre> * The address that the wallet watches * </pre> */ com.google.protobuf.ByteString getAddressBytes(); /** * <code>required string status = 2;</code> * * <pre> * The address status * </pre> */ boolean hasStatus(); /** * <code>required string status = 2;</code> * * <pre> * The address status * </pre> */ java.lang.String getStatus(); /** * <code>required string status = 2;</code> * * <pre> * The address status * </pre> */ com.google.protobuf.ByteString getStatusBytes(); } /** * Protobuf type {@codecom.mygeopay.core.protos.AddressStatus} */ public static final class AddressStatus extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:com.mygeopay.core.protos.AddressStatus) AddressStatusOrBuilder { // Use AddressStatus.newBuilder() to construct. private AddressStatus(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private AddressStatus(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final AddressStatus defaultInstance; public static AddressStatus getDefaultInstance() { return defaultInstance; } public AddressStatus getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AddressStatus( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; address_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; status_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_AddressStatus_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_AddressStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mygeopay.core.protos.Protos.AddressStatus.class,com.mygeopay.core.protos.Protos.AddressStatus.Builder.class); } public static final com.google.protobuf.Parser<AddressStatus> PARSER = new com.google.protobuf.AbstractParser<AddressStatus>() { public AddressStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AddressStatus(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<AddressStatus> getParserForType() { return PARSER; } private int bitField0_; public static final int ADDRESS_FIELD_NUMBER = 1; private java.lang.Object address_; /** * <code>required string address = 1;</code> * * <pre> * The address that the wallet watches * </pre> */ public boolean hasAddress() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string address = 1;</code> * * <pre> * The address that the wallet watches * </pre> */ public java.lang.String getAddress() { java.lang.Object ref = address_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { address_ = s; } return s; } } /** * <code>required string address = 1;</code> * * <pre> * The address that the wallet watches * </pre> */ public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); address_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STATUS_FIELD_NUMBER = 2; private java.lang.Object status_; /** * <code>required string status = 2;</code> * * <pre> * The address status * </pre> */ public boolean hasStatus() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required string status = 2;</code> * * <pre> * The address status * </pre> */ public java.lang.String getStatus() { java.lang.Object ref = status_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { status_ = s; } return s; } } /** * <code>required string status = 2;</code> * * <pre> * The address status * </pre> */ public com.google.protobuf.ByteString getStatusBytes() { java.lang.Object ref = status_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); status_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { address_ = ""; status_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasAddress()) { memoizedIsInitialized = 0; return false; } if (!hasStatus()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getAddressBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getStatusBytes()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getAddressBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getStatusBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.mygeopay.core.protos.Protos.AddressStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mygeopay.core.protos.Protos.AddressStatus parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mygeopay.core.protos.Protos.AddressStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mygeopay.core.protos.Protos.AddressStatus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mygeopay.core.protos.Protos.AddressStatus parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.mygeopay.core.protos.Protos.AddressStatus parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.mygeopay.core.protos.Protos.AddressStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.mygeopay.core.protos.Protos.AddressStatus parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.mygeopay.core.protos.Protos.AddressStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.mygeopay.core.protos.Protos.AddressStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.mygeopay.core.protos.Protos.AddressStatus prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@codecom.mygeopay.core.protos.AddressStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:com.mygeopay.core.protos.AddressStatus) com.mygeopay.core.protos.Protos.AddressStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_AddressStatus_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_AddressStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mygeopay.core.protos.Protos.AddressStatus.class,com.mygeopay.core.protos.Protos.AddressStatus.Builder.class); } // Construct usingcom.mygeopay.core.protos.Protos.AddressStatus.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); address_ = ""; bitField0_ = (bitField0_ & ~0x00000001); status_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_AddressStatus_descriptor; } public com.mygeopay.core.protos.Protos.AddressStatus getDefaultInstanceForType() { return com.mygeopay.core.protos.Protos.AddressStatus.getDefaultInstance(); } public com.mygeopay.core.protos.Protos.AddressStatus build() { com.mygeopay.core.protos.Protos.AddressStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.mygeopay.core.protos.Protos.AddressStatus buildPartial() { com.mygeopay.core.protos.Protos.AddressStatus result = new com.mygeopay.core.protos.Protos.AddressStatus(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.address_ = address_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.status_ = status_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.mygeopay.core.protos.Protos.AddressStatus) { return mergeFrom((com.mygeopay.core.protos.Protos.AddressStatus)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.mygeopay.core.protos.Protos.AddressStatus other) { if (other ==com.mygeopay.core.protos.Protos.AddressStatus.getDefaultInstance()) return this; if (other.hasAddress()) { bitField0_ |= 0x00000001; address_ = other.address_; onChanged(); } if (other.hasStatus()) { bitField0_ |= 0x00000002; status_ = other.status_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasAddress()) { return false; } if (!hasStatus()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.mygeopay.core.protos.Protos.AddressStatus parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.mygeopay.core.protos.Protos.AddressStatus) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object address_ = ""; /** * <code>required string address = 1;</code> * * <pre> * The address that the wallet watches * </pre> */ public boolean hasAddress() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string address = 1;</code> * * <pre> * The address that the wallet watches * </pre> */ public java.lang.String getAddress() { java.lang.Object ref = address_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { address_ = s; } return s; } else { return (java.lang.String) ref; } } /** * <code>required string address = 1;</code> * * <pre> * The address that the wallet watches * </pre> */ public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); address_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>required string address = 1;</code> * * <pre> * The address that the wallet watches * </pre> */ public Builder setAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; address_ = value; onChanged(); return this; } /** * <code>required string address = 1;</code> * * <pre> * The address that the wallet watches * </pre> */ public Builder clearAddress() { bitField0_ = (bitField0_ & ~0x00000001); address_ = getDefaultInstance().getAddress(); onChanged(); return this; } /** * <code>required string address = 1;</code> * * <pre> * The address that the wallet watches * </pre> */ public Builder setAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; address_ = value; onChanged(); return this; } private java.lang.Object status_ = ""; /** * <code>required string status = 2;</code> * * <pre> * The address status * </pre> */ public boolean hasStatus() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required string status = 2;</code> * * <pre> * The address status * </pre> */ public java.lang.String getStatus() { java.lang.Object ref = status_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { status_ = s; } return s; } else { return (java.lang.String) ref; } } /** * <code>required string status = 2;</code> * * <pre> * The address status * </pre> */ public com.google.protobuf.ByteString getStatusBytes() { java.lang.Object ref = status_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); status_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>required string status = 2;</code> * * <pre> * The address status * </pre> */ public Builder setStatus( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; status_ = value; onChanged(); return this; } /** * <code>required string status = 2;</code> * * <pre> * The address status * </pre> */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000002); status_ = getDefaultInstance().getStatus(); onChanged(); return this; } /** * <code>required string status = 2;</code> * * <pre> * The address status * </pre> */ public Builder setStatusBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; status_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.mygeopay.core.protos.AddressStatus) } static { defaultInstance = new AddressStatus(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.mygeopay.core.protos.AddressStatus) } public interface WalletPocketOrBuilder extends // @@protoc_insertion_point(interface_extends:com.mygeopay.core.protos.WalletPocket) com.google.protobuf.MessageOrBuilder { /** * <code>required string network_identifier = 1;</code> * * <pre> * the network used by this wallet * </pre> */ boolean hasNetworkIdentifier(); /** * <code>required string network_identifier = 1;</code> * * <pre> * the network used by this wallet * </pre> */ java.lang.String getNetworkIdentifier(); /** * <code>required string network_identifier = 1;</code> * * <pre> * the network used by this wallet * </pre> */ com.google.protobuf.ByteString getNetworkIdentifierBytes(); /** * <code>optional string description = 2;</code> * * <pre> * A UTF8 encoded text description of the wallet that is intended for end user provided text. * </pre> */ boolean hasDescription(); /** * <code>optional string description = 2;</code> * * <pre> * A UTF8 encoded text description of the wallet that is intended for end user provided text. * </pre> */ java.lang.String getDescription(); /** * <code>optional string description = 2;</code> * * <pre> * A UTF8 encoded text description of the wallet that is intended for end user provided text. * </pre> */ com.google.protobuf.ByteString getDescriptionBytes(); /** * <code>repeated .com.mygeopay.core.protos.Key key = 3;</code> */ java.util.List<com.mygeopay.core.protos.Protos.Key> getKeyList(); /** * <code>repeated .com.mygeopay.core.protos.Key key = 3;</code> */ com.mygeopay.core.protos.Protos.Key getKey(int index); /** * <code>repeated .com.mygeopay.core.protos.Key key = 3;</code> */ int getKeyCount(); /** * <code>repeated .com.mygeopay.core.protos.Key key = 3;</code> */ java.util.List<? extends com.mygeopay.core.protos.Protos.KeyOrBuilder> getKeyOrBuilderList(); /** * <code>repeated .com.mygeopay.core.protos.Key key = 3;</code> */ com.mygeopay.core.protos.Protos.KeyOrBuilder getKeyOrBuilder( int index); /** * <code>optional bytes last_seen_block_hash = 4;</code> * * <pre> * The SHA256 hash of the head of the best chain seen by this wallet. * </pre> */ boolean hasLastSeenBlockHash(); /** * <code>optional bytes last_seen_block_hash = 4;</code> * * <pre> * The SHA256 hash of the head of the best chain seen by this wallet. * </pre> */ com.google.protobuf.ByteString getLastSeenBlockHash(); /** * <code>optional uint32 last_seen_block_height = 5;</code> * * <pre> * The height in the chain of the last seen block. * </pre> */ boolean hasLastSeenBlockHeight(); /** * <code>optional uint32 last_seen_block_height = 5;</code> * * <pre> * The height in the chain of the last seen block. * </pre> */ int getLastSeenBlockHeight(); /** * <code>optional int64 last_seen_block_time_secs = 6;</code> */ boolean hasLastSeenBlockTimeSecs(); /** * <code>optional int64 last_seen_block_time_secs = 6;</code> */ long getLastSeenBlockTimeSecs(); /** * <code>repeated .com.mygeopay.core.protos.Transaction transaction = 7;</code> */ java.util.List<com.mygeopay.core.protos.Protos.Transaction> getTransactionList(); /** * <code>repeated .com.mygeopay.core.protos.Transaction transaction = 7;</code> */ com.mygeopay.core.protos.Protos.Transaction getTransaction(int index); /** * <code>repeated .com.mygeopay.core.protos.Transaction transaction = 7;</code> */ int getTransactionCount(); /** * <code>repeated .com.mygeopay.core.protos.Transaction transaction = 7;</code> */ java.util.List<? extends com.mygeopay.core.protos.Protos.TransactionOrBuilder> getTransactionOrBuilderList(); /** * <code>repeated .com.mygeopay.core.protos.Transaction transaction = 7;</code> */ com.mygeopay.core.protos.Protos.TransactionOrBuilder getTransactionOrBuilder( int index); /** * <code>repeated .com.mygeopay.core.protos.AddressStatus address_status = 8;</code> */ java.util.List<com.mygeopay.core.protos.Protos.AddressStatus> getAddressStatusList(); /** * <code>repeated .com.mygeopay.core.protos.AddressStatus address_status = 8;</code> */ com.mygeopay.core.protos.Protos.AddressStatus getAddressStatus(int index); /** * <code>repeated .com.mygeopay.core.protos.AddressStatus address_status = 8;</code> */ int getAddressStatusCount(); /** * <code>repeated .com.mygeopay.core.protos.AddressStatus address_status = 8;</code> */ java.util.List<? extends com.mygeopay.core.protos.Protos.AddressStatusOrBuilder> getAddressStatusOrBuilderList(); /** * <code>repeated .com.mygeopay.core.protos.AddressStatus address_status = 8;</code> */ com.mygeopay.core.protos.Protos.AddressStatusOrBuilder getAddressStatusOrBuilder( int index); /** * <code>optional string id = 9;</code> */ boolean hasId(); /** * <code>optional string id = 9;</code> */ java.lang.String getId(); /** * <code>optional string id = 9;</code> */ com.google.protobuf.ByteString getIdBytes(); } /** * Protobuf type {@codecom.mygeopay.core.protos.WalletPocket} * * <pre> ** A wallet pocket * </pre> */ public static final class WalletPocket extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:com.mygeopay.core.protos.WalletPocket) WalletPocketOrBuilder { // Use WalletPocket.newBuilder() to construct. private WalletPocket(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private WalletPocket(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final WalletPocket defaultInstance; public static WalletPocket getDefaultInstance() { return defaultInstance; } public WalletPocket getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private WalletPocket( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; networkIdentifier_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; description_ = bs; break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { key_ = new java.util.ArrayList<com.mygeopay.core.protos.Protos.Key>(); mutable_bitField0_ |= 0x00000004; } key_.add(input.readMessage(com.mygeopay.core.protos.Protos.Key.PARSER, extensionRegistry)); break; } case 34: { bitField0_ |= 0x00000004; lastSeenBlockHash_ = input.readBytes(); break; } case 40: { bitField0_ |= 0x00000008; lastSeenBlockHeight_ = input.readUInt32(); break; } case 48: { bitField0_ |= 0x00000010; lastSeenBlockTimeSecs_ = input.readInt64(); break; } case 58: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { transaction_ = new java.util.ArrayList<com.mygeopay.core.protos.Protos.Transaction>(); mutable_bitField0_ |= 0x00000040; } transaction_.add(input.readMessage(com.mygeopay.core.protos.Protos.Transaction.PARSER, extensionRegistry)); break; } case 66: { if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { addressStatus_ = new java.util.ArrayList<com.mygeopay.core.protos.Protos.AddressStatus>(); mutable_bitField0_ |= 0x00000080; } addressStatus_.add(input.readMessage(com.mygeopay.core.protos.Protos.AddressStatus.PARSER, extensionRegistry)); break; } case 74: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; id_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { key_ = java.util.Collections.unmodifiableList(key_); } if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { transaction_ = java.util.Collections.unmodifiableList(transaction_); } if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { addressStatus_ = java.util.Collections.unmodifiableList(addressStatus_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_WalletPocket_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_WalletPocket_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mygeopay.core.protos.Protos.WalletPocket.class,com.mygeopay.core.protos.Protos.WalletPocket.Builder.class); } public static final com.google.protobuf.Parser<WalletPocket> PARSER = new com.google.protobuf.AbstractParser<WalletPocket>() { public WalletPocket parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new WalletPocket(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<WalletPocket> getParserForType() { return PARSER; } private int bitField0_; public static final int NETWORK_IDENTIFIER_FIELD_NUMBER = 1; private java.lang.Object networkIdentifier_; /** * <code>required string network_identifier = 1;</code> * * <pre> * the network used by this wallet * </pre> */ public boolean hasNetworkIdentifier() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string network_identifier = 1;</code> * * <pre> * the network used by this wallet * </pre> */ public java.lang.String getNetworkIdentifier() { java.lang.Object ref = networkIdentifier_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { networkIdentifier_ = s; } return s; } } /** * <code>required string network_identifier = 1;</code> * * <pre> * the network used by this wallet * </pre> */ public com.google.protobuf.ByteString getNetworkIdentifierBytes() { java.lang.Object ref = networkIdentifier_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); networkIdentifier_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 2; private java.lang.Object description_; /** * <code>optional string description = 2;</code> * * <pre> * A UTF8 encoded text description of the wallet that is intended for end user provided text. * </pre> */ public boolean hasDescription() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string description = 2;</code> * * <pre> * A UTF8 encoded text description of the wallet that is intended for end user provided text. * </pre> */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { description_ = s; } return s; } } /** * <code>optional string description = 2;</code> * * <pre> * A UTF8 encoded text description of the wallet that is intended for end user provided text. * </pre> */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int KEY_FIELD_NUMBER = 3; private java.util.List<com.mygeopay.core.protos.Protos.Key> key_; /** * <code>repeated .com.mygeopay.core.protos.Key key = 3;</code> */ public java.util.List<com.mygeopay.core.protos.Protos.Key> getKeyList() { return key_; } /** * <code>repeated .com.mygeopay.core.protos.Key key = 3;</code> */ public java.util.List<? extends com.mygeopay.core.protos.Protos.KeyOrBuilder> getKeyOrBuilderList() { return key_; } /** * <code>repeated .com.mygeopay.core.protos.Key key = 3;</code> */ public int getKeyCount() { return key_.size(); } /** * <code>repeated .com.mygeopay.core.protos.Key key = 3;</code> */ public com.mygeopay.core.protos.Protos.Key getKey(int index) { return key_.get(index); } /** * <code>repeated .com.mygeopay.core.protos.Key key = 3;</code> */ public com.mygeopay.core.protos.Protos.KeyOrBuilder getKeyOrBuilder( int index) { return key_.get(index); } public static final int LAST_SEEN_BLOCK_HASH_FIELD_NUMBER = 4; private com.google.protobuf.ByteString lastSeenBlockHash_; /** * <code>optional bytes last_seen_block_hash = 4;</code> * * <pre> * The SHA256 hash of the head of the best chain seen by this wallet. * </pre> */ public boolean hasLastSeenBlockHash() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional bytes last_seen_block_hash = 4;</code> * * <pre> * The SHA256 hash of the head of the best chain seen by this wallet. * </pre> */ public com.google.protobuf.ByteString getLastSeenBlockHash() { return lastSeenBlockHash_; } public static final int LAST_SEEN_BLOCK_HEIGHT_FIELD_NUMBER = 5; private int lastSeenBlockHeight_; /** * <code>optional uint32 last_seen_block_height = 5;</code> * * <pre> * The height in the chain of the last seen block. * </pre> */ public boolean hasLastSeenBlockHeight() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional uint32 last_seen_block_height = 5;</code> * * <pre> * The height in the chain of the last seen block. * </pre> */ public int getLastSeenBlockHeight() { return lastSeenBlockHeight_; } public static final int LAST_SEEN_BLOCK_TIME_SECS_FIELD_NUMBER = 6; private long lastSeenBlockTimeSecs_; /** * <code>optional int64 last_seen_block_time_secs = 6;</code> */ public boolean hasLastSeenBlockTimeSecs() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional int64 last_seen_block_time_secs = 6;</code> */ public long getLastSeenBlockTimeSecs() { return lastSeenBlockTimeSecs_; } public static final int TRANSACTION_FIELD_NUMBER = 7; private java.util.List<com.mygeopay.core.protos.Protos.Transaction> transaction_; /** * <code>repeated .com.mygeopay.core.protos.Transaction transaction = 7;</code> */ public java.util.List<com.mygeopay.core.protos.Protos.Transaction> getTransactionList() { return transaction_; } /** * <code>repeated .com.mygeopay.core.protos.Transaction transaction = 7;</code> */ public java.util.List<? extends com.mygeopay.core.protos.Protos.TransactionOrBuilder> getTransactionOrBuilderList() { return transaction_; } /** * <code>repeated .com.mygeopay.core.protos.Transaction transaction = 7;</code> */ public int getTransactionCount() { return transaction_.size(); } /** * <code>repeated .com.mygeopay.core.protos.Transaction transaction = 7;</code> */ public com.mygeopay.core.protos.Protos.Transaction getTransaction(int index) { return transaction_.get(index); } /** * <code>repeated .com.mygeopay.core.protos.Transaction transaction = 7;</code> */ public com.mygeopay.core.protos.Protos.TransactionOrBuilder getTransactionOrBuilder( int index) { return transaction_.get(index); } public static final int ADDRESS_STATUS_FIELD_NUMBER = 8; private java.util.List<com.mygeopay.core.protos.Protos.AddressStatus> addressStatus_; /** * <code>repeated .com.mygeopay.core.protos.AddressStatus address_status = 8;</code> */ public java.util.List<com.mygeopay.core.protos.Protos.AddressStatus> getAddressStatusList() { return addressStatus_; } /** * <code>repeated .com.mygeopay.core.protos.AddressStatus address_status = 8;</code> */ public java.util.List<? extends com.mygeopay.core.protos.Protos.AddressStatusOrBuilder> getAddressStatusOrBuilderList() { return addressStatus_; } /** * <code>repeated .com.mygeopay.core.protos.AddressStatus address_status = 8;</code> */ public int getAddressStatusCount() { return addressStatus_.size(); } /** * <code>repeated .com.mygeopay.core.protos.AddressStatus address_status = 8;</code> */ public com.mygeopay.core.protos.Protos.AddressStatus getAddressStatus(int index) { return addressStatus_.get(index); } /** * <code>repeated .com.mygeopay.core.protos.AddressStatus address_status = 8;</code> */ public com.mygeopay.core.protos.Protos.AddressStatusOrBuilder getAddressStatusOrBuilder( int index) { return addressStatus_.get(index); } public static final int ID_FIELD_NUMBER = 9; private java.lang.Object id_; /** * <code>optional string id = 9;</code> */ public boolean hasId() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional string id = 9;</code> */ public java.lang.String getId() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { id_ = s; } return s; } } /** * <code>optional string id = 9;</code> */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { networkIdentifier_ = ""; description_ = ""; key_ = java.util.Collections.emptyList(); lastSeenBlockHash_ = com.google.protobuf.ByteString.EMPTY; lastSeenBlockHeight_ = 0; lastSeenBlockTimeSecs_ = 0L; transaction_ = java.util.Collections.emptyList(); addressStatus_ = java.util.Collections.emptyList(); id_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasNetworkIdentifier()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getKeyCount(); i++) { if (!getKey(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getTransactionCount(); i++) { if (!getTransaction(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getAddressStatusCount(); i++) { if (!getAddressStatus(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getNetworkIdentifierBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getDescriptionBytes()); } for (int i = 0; i < key_.size(); i++) { output.writeMessage(3, key_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(4, lastSeenBlockHash_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt32(5, lastSeenBlockHeight_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt64(6, lastSeenBlockTimeSecs_); } for (int i = 0; i < transaction_.size(); i++) { output.writeMessage(7, transaction_.get(i)); } for (int i = 0; i < addressStatus_.size(); i++) { output.writeMessage(8, addressStatus_.get(i)); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(9, getIdBytes()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getNetworkIdentifierBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getDescriptionBytes()); } for (int i = 0; i < key_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, key_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, lastSeenBlockHash_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, lastSeenBlockHeight_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, lastSeenBlockTimeSecs_); } for (int i = 0; i < transaction_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, transaction_.get(i)); } for (int i = 0; i < addressStatus_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, addressStatus_.get(i)); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(9, getIdBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.mygeopay.core.protos.Protos.WalletPocket parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mygeopay.core.protos.Protos.WalletPocket parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mygeopay.core.protos.Protos.WalletPocket parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mygeopay.core.protos.Protos.WalletPocket parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mygeopay.core.protos.Protos.WalletPocket parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.mygeopay.core.protos.Protos.WalletPocket parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.mygeopay.core.protos.Protos.WalletPocket parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.mygeopay.core.protos.Protos.WalletPocket parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.mygeopay.core.protos.Protos.WalletPocket parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.mygeopay.core.protos.Protos.WalletPocket parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.mygeopay.core.protos.Protos.WalletPocket prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@codecom.mygeopay.core.protos.WalletPocket} * * <pre> ** A wallet pocket * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:com.mygeopay.core.protos.WalletPocket) com.mygeopay.core.protos.Protos.WalletPocketOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_WalletPocket_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_WalletPocket_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mygeopay.core.protos.Protos.WalletPocket.class,com.mygeopay.core.protos.Protos.WalletPocket.Builder.class); } // Construct usingcom.mygeopay.core.protos.Protos.WalletPocket.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getKeyFieldBuilder(); getTransactionFieldBuilder(); getAddressStatusFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); networkIdentifier_ = ""; bitField0_ = (bitField0_ & ~0x00000001); description_ = ""; bitField0_ = (bitField0_ & ~0x00000002); if (keyBuilder_ == null) { key_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { keyBuilder_.clear(); } lastSeenBlockHash_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); lastSeenBlockHeight_ = 0; bitField0_ = (bitField0_ & ~0x00000010); lastSeenBlockTimeSecs_ = 0L; bitField0_ = (bitField0_ & ~0x00000020); if (transactionBuilder_ == null) { transaction_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { transactionBuilder_.clear(); } if (addressStatusBuilder_ == null) { addressStatus_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); } else { addressStatusBuilder_.clear(); } id_ = ""; bitField0_ = (bitField0_ & ~0x00000100); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_WalletPocket_descriptor; } public com.mygeopay.core.protos.Protos.WalletPocket getDefaultInstanceForType() { return com.mygeopay.core.protos.Protos.WalletPocket.getDefaultInstance(); } public com.mygeopay.core.protos.Protos.WalletPocket build() { com.mygeopay.core.protos.Protos.WalletPocket result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.mygeopay.core.protos.Protos.WalletPocket buildPartial() { com.mygeopay.core.protos.Protos.WalletPocket result = new com.mygeopay.core.protos.Protos.WalletPocket(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.networkIdentifier_ = networkIdentifier_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.description_ = description_; if (keyBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { key_ = java.util.Collections.unmodifiableList(key_); bitField0_ = (bitField0_ & ~0x00000004); } result.key_ = key_; } else { result.key_ = keyBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } result.lastSeenBlockHash_ = lastSeenBlockHash_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000008; } result.lastSeenBlockHeight_ = lastSeenBlockHeight_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000010; } result.lastSeenBlockTimeSecs_ = lastSeenBlockTimeSecs_; if (transactionBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040)) { transaction_ = java.util.Collections.unmodifiableList(transaction_); bitField0_ = (bitField0_ & ~0x00000040); } result.transaction_ = transaction_; } else { result.transaction_ = transactionBuilder_.build(); } if (addressStatusBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080)) { addressStatus_ = java.util.Collections.unmodifiableList(addressStatus_); bitField0_ = (bitField0_ & ~0x00000080); } result.addressStatus_ = addressStatus_; } else { result.addressStatus_ = addressStatusBuilder_.build(); } if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000020; } result.id_ = id_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.mygeopay.core.protos.Protos.WalletPocket) { return mergeFrom((com.mygeopay.core.protos.Protos.WalletPocket)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.mygeopay.core.protos.Protos.WalletPocket other) { if (other ==com.mygeopay.core.protos.Protos.WalletPocket.getDefaultInstance()) return this; if (other.hasNetworkIdentifier()) { bitField0_ |= 0x00000001; networkIdentifier_ = other.networkIdentifier_; onChanged(); } if (other.hasDescription()) { bitField0_ |= 0x00000002; description_ = other.description_; onChanged(); } if (keyBuilder_ == null) { if (!other.key_.isEmpty()) { if (key_.isEmpty()) { key_ = other.key_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureKeyIsMutable(); key_.addAll(other.key_); } onChanged(); } } else { if (!other.key_.isEmpty()) { if (keyBuilder_.isEmpty()) { keyBuilder_.dispose(); keyBuilder_ = null; key_ = other.key_; bitField0_ = (bitField0_ & ~0x00000004); keyBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getKeyFieldBuilder() : null; } else { keyBuilder_.addAllMessages(other.key_); } } } if (other.hasLastSeenBlockHash()) { setLastSeenBlockHash(other.getLastSeenBlockHash()); } if (other.hasLastSeenBlockHeight()) { setLastSeenBlockHeight(other.getLastSeenBlockHeight()); } if (other.hasLastSeenBlockTimeSecs()) { setLastSeenBlockTimeSecs(other.getLastSeenBlockTimeSecs()); } if (transactionBuilder_ == null) { if (!other.transaction_.isEmpty()) { if (transaction_.isEmpty()) { transaction_ = other.transaction_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureTransactionIsMutable(); transaction_.addAll(other.transaction_); } onChanged(); } } else { if (!other.transaction_.isEmpty()) { if (transactionBuilder_.isEmpty()) { transactionBuilder_.dispose(); transactionBuilder_ = null; transaction_ = other.transaction_; bitField0_ = (bitField0_ & ~0x00000040); transactionBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getTransactionFieldBuilder() : null; } else { transactionBuilder_.addAllMessages(other.transaction_); } } } if (addressStatusBuilder_ == null) { if (!other.addressStatus_.isEmpty()) { if (addressStatus_.isEmpty()) { addressStatus_ = other.addressStatus_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureAddressStatusIsMutable(); addressStatus_.addAll(other.addressStatus_); } onChanged(); } } else { if (!other.addressStatus_.isEmpty()) { if (addressStatusBuilder_.isEmpty()) { addressStatusBuilder_.dispose(); addressStatusBuilder_ = null; addressStatus_ = other.addressStatus_; bitField0_ = (bitField0_ & ~0x00000080); addressStatusBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getAddressStatusFieldBuilder() : null; } else { addressStatusBuilder_.addAllMessages(other.addressStatus_); } } } if (other.hasId()) { bitField0_ |= 0x00000100; id_ = other.id_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasNetworkIdentifier()) { return false; } for (int i = 0; i < getKeyCount(); i++) { if (!getKey(i).isInitialized()) { return false; } } for (int i = 0; i < getTransactionCount(); i++) { if (!getTransaction(i).isInitialized()) { return false; } } for (int i = 0; i < getAddressStatusCount(); i++) { if (!getAddressStatus(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.mygeopay.core.protos.Protos.WalletPocket parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.mygeopay.core.protos.Protos.WalletPocket) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object networkIdentifier_ = ""; /** * <code>required string network_identifier = 1;</code> * * <pre> * the network used by this wallet * </pre> */ public boolean hasNetworkIdentifier() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string network_identifier = 1;</code> * * <pre> * the network used by this wallet * </pre> */ public java.lang.String getNetworkIdentifier() { java.lang.Object ref = networkIdentifier_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { networkIdentifier_ = s; } return s; } else { return (java.lang.String) ref; } } /** * <code>required string network_identifier = 1;</code> * * <pre> * the network used by this wallet * </pre> */ public com.google.protobuf.ByteString getNetworkIdentifierBytes() { java.lang.Object ref = networkIdentifier_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); networkIdentifier_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>required string network_identifier = 1;</code> * * <pre> * the network used by this wallet * </pre> */ public Builder setNetworkIdentifier( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; networkIdentifier_ = value; onChanged(); return this; } /** * <code>required string network_identifier = 1;</code> * * <pre> * the network used by this wallet * </pre> */ public Builder clearNetworkIdentifier() { bitField0_ = (bitField0_ & ~0x00000001); networkIdentifier_ = getDefaultInstance().getNetworkIdentifier(); onChanged(); return this; } /** * <code>required string network_identifier = 1;</code> * * <pre> * the network used by this wallet * </pre> */ public Builder setNetworkIdentifierBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; networkIdentifier_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** * <code>optional string description = 2;</code> * * <pre> * A UTF8 encoded text description of the wallet that is intended for end user provided text. * </pre> */ public boolean hasDescription() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string description = 2;</code> * * <pre> * A UTF8 encoded text description of the wallet that is intended for end user provided text. * </pre> */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { description_ = s; } return s; } else { return (java.lang.String) ref; } } /** * <code>optional string description = 2;</code> * * <pre> * A UTF8 encoded text description of the wallet that is intended for end user provided text. * </pre> */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string description = 2;</code> * * <pre> * A UTF8 encoded text description of the wallet that is intended for end user provided text. * </pre> */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; description_ = value; onChanged(); return this; } /** * <code>optional string description = 2;</code> * * <pre> * A UTF8 encoded text description of the wallet that is intended for end user provided text. * </pre> */ public Builder clearDescription() { bitField0_ = (bitField0_ & ~0x00000002); description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** * <code>optional string description = 2;</code> * * <pre> * A UTF8 encoded text description of the wallet that is intended for end user provided text. * </pre> */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; description_ = value; onChanged(); return this; } private java.util.List<com.mygeopay.core.protos.Protos.Key> key_ = java.util.Collections.emptyList(); private void ensureKeyIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { key_ = new java.util.ArrayList<com.mygeopay.core.protos.Protos.Key>(key_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilder< com.mygeopay.core.protos.Protos.Key,com.mygeopay.core.protos.Protos.Key.Builder,com.mygeopay.core.protos.Protos.KeyOrBuilder> keyBuilder_; /** * <code>repeated .com.mygeopay.core.protos.Key key = 3;</code> */ public java.util.List<com.mygeopay.core.protos.Protos.Key> getKeyList() { if (keyBuilder_ == null) { return java.util.Collections.unmodifiableList(key_); } else { return keyBuilder_.getMessageList(); } } /** * <code>repeated .com.mygeopay.core.protos.Key key = 3;</code> */ public int getKeyCount() { if (keyBuilder_ == null) { return key_.size(); } else { return keyBuilder_.getCount(); } } /** * <code>repeated .com.mygeopay.core.protos.Key key = 3;</code> */ public com.mygeopay.core.protos.Protos.Key getKey(int index) { if (keyBuilder_ == null) { return key_.get(index); } else { return keyBuilder_.getMessage(index); } } /** * <code>repeated .com.mygeopay.core.protos.Key key = 3;</code> */ public Builder setKey( int index,com.mygeopay.core.protos.Protos.Key value) { if (keyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKeyIsMutable(); key_.set(index, value); onChanged(); } else { keyBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .com.mygeopay.core.protos.Key key = 3;</code> */ public Builder setKey( int index,com.mygeopay.core.protos.Protos.Key.Builder builderForValue) { if (keyBuilder_ == null) { ensureKeyIsMutable(); key_.set(index, builderForValue.build()); onChanged(); } else { keyBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .com.mygeopay.core.protos.Key key = 3;</code> */ public Builder addKey(com.mygeopay.core.protos.Protos.Key value) { if (keyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKeyIsMutable(); key_.add(value); onChanged(); } else { keyBuilder_.addMessage(value); } return this; } /** * <code>repeated .com.mygeopay.core.protos.Key key = 3;</code> */ public Builder addKey( int index,com.mygeopay.core.protos.Protos.Key value) { if (keyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKeyIsMutable(); key_.add(index, value); onChanged(); } else { keyBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .com.mygeopay.core.protos.Key key = 3;</code> */ public Builder addKey( com.mygeopay.core.protos.Protos.Key.Builder builderForValue) { if (keyBuilder_ == null) { ensureKeyIsMutable(); key_.add(builderForValue.build()); onChanged(); } else { keyBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .com.mygeopay.core.protos.Key key = 3;</code> */ public Builder addKey( int index,com.mygeopay.core.protos.Protos.Key.Builder builderForValue) { if (keyBuilder_ == null) { ensureKeyIsMutable(); key_.add(index, builderForValue.build()); onChanged(); } else { keyBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .com.mygeopay.core.protos.Key key = 3;</code> */ public Builder addAllKey( java.lang.Iterable<? extends com.mygeopay.core.protos.Protos.Key> values) { if (keyBuilder_ == null) { ensureKeyIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, key_); onChanged(); } else { keyBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .com.mygeopay.core.protos.Key key = 3;</code> */ public Builder clearKey() { if (keyBuilder_ == null) { key_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { keyBuilder_.clear(); } return this; } /** * <code>repeated .com.mygeopay.core.protos.Key key = 3;</code> */ public Builder removeKey(int index) { if (keyBuilder_ == null) { ensureKeyIsMutable(); key_.remove(index); onChanged(); } else { keyBuilder_.remove(index); } return this; } /** * <code>repeated .com.mygeopay.core.protos.Key key = 3;</code> */ public com.mygeopay.core.protos.Protos.Key.Builder getKeyBuilder( int index) { return getKeyFieldBuilder().getBuilder(index); } /** * <code>repeated .com.mygeopay.core.protos.Key key = 3;</code> */ public com.mygeopay.core.protos.Protos.KeyOrBuilder getKeyOrBuilder( int index) { if (keyBuilder_ == null) { return key_.get(index); } else { return keyBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .com.mygeopay.core.protos.Key key = 3;</code> */ public java.util.List<? extends com.mygeopay.core.protos.Protos.KeyOrBuilder> getKeyOrBuilderList() { if (keyBuilder_ != null) { return keyBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(key_); } } /** * <code>repeated .com.mygeopay.core.protos.Key key = 3;</code> */ public com.mygeopay.core.protos.Protos.Key.Builder addKeyBuilder() { return getKeyFieldBuilder().addBuilder( com.mygeopay.core.protos.Protos.Key.getDefaultInstance()); } /** * <code>repeated .com.mygeopay.core.protos.Key key = 3;</code> */ public com.mygeopay.core.protos.Protos.Key.Builder addKeyBuilder( int index) { return getKeyFieldBuilder().addBuilder( index,com.mygeopay.core.protos.Protos.Key.getDefaultInstance()); } /** * <code>repeated .com.mygeopay.core.protos.Key key = 3;</code> */ public java.util.List<com.mygeopay.core.protos.Protos.Key.Builder> getKeyBuilderList() { return getKeyFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.mygeopay.core.protos.Protos.Key,com.mygeopay.core.protos.Protos.Key.Builder,com.mygeopay.core.protos.Protos.KeyOrBuilder> getKeyFieldBuilder() { if (keyBuilder_ == null) { keyBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.mygeopay.core.protos.Protos.Key,com.mygeopay.core.protos.Protos.Key.Builder,com.mygeopay.core.protos.Protos.KeyOrBuilder>( key_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); key_ = null; } return keyBuilder_; } private com.google.protobuf.ByteString lastSeenBlockHash_ = com.google.protobuf.ByteString.EMPTY; /** * <code>optional bytes last_seen_block_hash = 4;</code> * * <pre> * The SHA256 hash of the head of the best chain seen by this wallet. * </pre> */ public boolean hasLastSeenBlockHash() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional bytes last_seen_block_hash = 4;</code> * * <pre> * The SHA256 hash of the head of the best chain seen by this wallet. * </pre> */ public com.google.protobuf.ByteString getLastSeenBlockHash() { return lastSeenBlockHash_; } /** * <code>optional bytes last_seen_block_hash = 4;</code> * * <pre> * The SHA256 hash of the head of the best chain seen by this wallet. * </pre> */ public Builder setLastSeenBlockHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; lastSeenBlockHash_ = value; onChanged(); return this; } /** * <code>optional bytes last_seen_block_hash = 4;</code> * * <pre> * The SHA256 hash of the head of the best chain seen by this wallet. * </pre> */ public Builder clearLastSeenBlockHash() { bitField0_ = (bitField0_ & ~0x00000008); lastSeenBlockHash_ = getDefaultInstance().getLastSeenBlockHash(); onChanged(); return this; } private int lastSeenBlockHeight_ ; /** * <code>optional uint32 last_seen_block_height = 5;</code> * * <pre> * The height in the chain of the last seen block. * </pre> */ public boolean hasLastSeenBlockHeight() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional uint32 last_seen_block_height = 5;</code> * * <pre> * The height in the chain of the last seen block. * </pre> */ public int getLastSeenBlockHeight() { return lastSeenBlockHeight_; } /** * <code>optional uint32 last_seen_block_height = 5;</code> * * <pre> * The height in the chain of the last seen block. * </pre> */ public Builder setLastSeenBlockHeight(int value) { bitField0_ |= 0x00000010; lastSeenBlockHeight_ = value; onChanged(); return this; } /** * <code>optional uint32 last_seen_block_height = 5;</code> * * <pre> * The height in the chain of the last seen block. * </pre> */ public Builder clearLastSeenBlockHeight() { bitField0_ = (bitField0_ & ~0x00000010); lastSeenBlockHeight_ = 0; onChanged(); return this; } private long lastSeenBlockTimeSecs_ ; /** * <code>optional int64 last_seen_block_time_secs = 6;</code> */ public boolean hasLastSeenBlockTimeSecs() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional int64 last_seen_block_time_secs = 6;</code> */ public long getLastSeenBlockTimeSecs() { return lastSeenBlockTimeSecs_; } /** * <code>optional int64 last_seen_block_time_secs = 6;</code> */ public Builder setLastSeenBlockTimeSecs(long value) { bitField0_ |= 0x00000020; lastSeenBlockTimeSecs_ = value; onChanged(); return this; } /** * <code>optional int64 last_seen_block_time_secs = 6;</code> */ public Builder clearLastSeenBlockTimeSecs() { bitField0_ = (bitField0_ & ~0x00000020); lastSeenBlockTimeSecs_ = 0L; onChanged(); return this; } private java.util.List<com.mygeopay.core.protos.Protos.Transaction> transaction_ = java.util.Collections.emptyList(); private void ensureTransactionIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { transaction_ = new java.util.ArrayList<com.mygeopay.core.protos.Protos.Transaction>(transaction_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilder< com.mygeopay.core.protos.Protos.Transaction,com.mygeopay.core.protos.Protos.Transaction.Builder,com.mygeopay.core.protos.Protos.TransactionOrBuilder> transactionBuilder_; /** * <code>repeated .com.mygeopay.core.protos.Transaction transaction = 7;</code> */ public java.util.List<com.mygeopay.core.protos.Protos.Transaction> getTransactionList() { if (transactionBuilder_ == null) { return java.util.Collections.unmodifiableList(transaction_); } else { return transactionBuilder_.getMessageList(); } } /** * <code>repeated .com.mygeopay.core.protos.Transaction transaction = 7;</code> */ public int getTransactionCount() { if (transactionBuilder_ == null) { return transaction_.size(); } else { return transactionBuilder_.getCount(); } } /** * <code>repeated .com.mygeopay.core.protos.Transaction transaction = 7;</code> */ public com.mygeopay.core.protos.Protos.Transaction getTransaction(int index) { if (transactionBuilder_ == null) { return transaction_.get(index); } else { return transactionBuilder_.getMessage(index); } } /** * <code>repeated .com.mygeopay.core.protos.Transaction transaction = 7;</code> */ public Builder setTransaction( int index,com.mygeopay.core.protos.Protos.Transaction value) { if (transactionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransactionIsMutable(); transaction_.set(index, value); onChanged(); } else { transactionBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .com.mygeopay.core.protos.Transaction transaction = 7;</code> */ public Builder setTransaction( int index,com.mygeopay.core.protos.Protos.Transaction.Builder builderForValue) { if (transactionBuilder_ == null) { ensureTransactionIsMutable(); transaction_.set(index, builderForValue.build()); onChanged(); } else { transactionBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .com.mygeopay.core.protos.Transaction transaction = 7;</code> */ public Builder addTransaction(com.mygeopay.core.protos.Protos.Transaction value) { if (transactionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransactionIsMutable(); transaction_.add(value); onChanged(); } else { transactionBuilder_.addMessage(value); } return this; } /** * <code>repeated .com.mygeopay.core.protos.Transaction transaction = 7;</code> */ public Builder addTransaction( int index,com.mygeopay.core.protos.Protos.Transaction value) { if (transactionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransactionIsMutable(); transaction_.add(index, value); onChanged(); } else { transactionBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .com.mygeopay.core.protos.Transaction transaction = 7;</code> */ public Builder addTransaction( com.mygeopay.core.protos.Protos.Transaction.Builder builderForValue) { if (transactionBuilder_ == null) { ensureTransactionIsMutable(); transaction_.add(builderForValue.build()); onChanged(); } else { transactionBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .com.mygeopay.core.protos.Transaction transaction = 7;</code> */ public Builder addTransaction( int index,com.mygeopay.core.protos.Protos.Transaction.Builder builderForValue) { if (transactionBuilder_ == null) { ensureTransactionIsMutable(); transaction_.add(index, builderForValue.build()); onChanged(); } else { transactionBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .com.mygeopay.core.protos.Transaction transaction = 7;</code> */ public Builder addAllTransaction( java.lang.Iterable<? extends com.mygeopay.core.protos.Protos.Transaction> values) { if (transactionBuilder_ == null) { ensureTransactionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, transaction_); onChanged(); } else { transactionBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .com.mygeopay.core.protos.Transaction transaction = 7;</code> */ public Builder clearTransaction() { if (transactionBuilder_ == null) { transaction_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { transactionBuilder_.clear(); } return this; } /** * <code>repeated .com.mygeopay.core.protos.Transaction transaction = 7;</code> */ public Builder removeTransaction(int index) { if (transactionBuilder_ == null) { ensureTransactionIsMutable(); transaction_.remove(index); onChanged(); } else { transactionBuilder_.remove(index); } return this; } /** * <code>repeated .com.mygeopay.core.protos.Transaction transaction = 7;</code> */ public com.mygeopay.core.protos.Protos.Transaction.Builder getTransactionBuilder( int index) { return getTransactionFieldBuilder().getBuilder(index); } /** * <code>repeated .com.mygeopay.core.protos.Transaction transaction = 7;</code> */ public com.mygeopay.core.protos.Protos.TransactionOrBuilder getTransactionOrBuilder( int index) { if (transactionBuilder_ == null) { return transaction_.get(index); } else { return transactionBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .com.mygeopay.core.protos.Transaction transaction = 7;</code> */ public java.util.List<? extends com.mygeopay.core.protos.Protos.TransactionOrBuilder> getTransactionOrBuilderList() { if (transactionBuilder_ != null) { return transactionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(transaction_); } } /** * <code>repeated .com.mygeopay.core.protos.Transaction transaction = 7;</code> */ public com.mygeopay.core.protos.Protos.Transaction.Builder addTransactionBuilder() { return getTransactionFieldBuilder().addBuilder( com.mygeopay.core.protos.Protos.Transaction.getDefaultInstance()); } /** * <code>repeated .com.mygeopay.core.protos.Transaction transaction = 7;</code> */ public com.mygeopay.core.protos.Protos.Transaction.Builder addTransactionBuilder( int index) { return getTransactionFieldBuilder().addBuilder( index,com.mygeopay.core.protos.Protos.Transaction.getDefaultInstance()); } /** * <code>repeated .com.mygeopay.core.protos.Transaction transaction = 7;</code> */ public java.util.List<com.mygeopay.core.protos.Protos.Transaction.Builder> getTransactionBuilderList() { return getTransactionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.mygeopay.core.protos.Protos.Transaction,com.mygeopay.core.protos.Protos.Transaction.Builder,com.mygeopay.core.protos.Protos.TransactionOrBuilder> getTransactionFieldBuilder() { if (transactionBuilder_ == null) { transactionBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.mygeopay.core.protos.Protos.Transaction,com.mygeopay.core.protos.Protos.Transaction.Builder,com.mygeopay.core.protos.Protos.TransactionOrBuilder>( transaction_, ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), isClean()); transaction_ = null; } return transactionBuilder_; } private java.util.List<com.mygeopay.core.protos.Protos.AddressStatus> addressStatus_ = java.util.Collections.emptyList(); private void ensureAddressStatusIsMutable() { if (!((bitField0_ & 0x00000080) == 0x00000080)) { addressStatus_ = new java.util.ArrayList<com.mygeopay.core.protos.Protos.AddressStatus>(addressStatus_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilder< com.mygeopay.core.protos.Protos.AddressStatus,com.mygeopay.core.protos.Protos.AddressStatus.Builder,com.mygeopay.core.protos.Protos.AddressStatusOrBuilder> addressStatusBuilder_; /** * <code>repeated .com.mygeopay.core.protos.AddressStatus address_status = 8;</code> */ public java.util.List<com.mygeopay.core.protos.Protos.AddressStatus> getAddressStatusList() { if (addressStatusBuilder_ == null) { return java.util.Collections.unmodifiableList(addressStatus_); } else { return addressStatusBuilder_.getMessageList(); } } /** * <code>repeated .com.mygeopay.core.protos.AddressStatus address_status = 8;</code> */ public int getAddressStatusCount() { if (addressStatusBuilder_ == null) { return addressStatus_.size(); } else { return addressStatusBuilder_.getCount(); } } /** * <code>repeated .com.mygeopay.core.protos.AddressStatus address_status = 8;</code> */ public com.mygeopay.core.protos.Protos.AddressStatus getAddressStatus(int index) { if (addressStatusBuilder_ == null) { return addressStatus_.get(index); } else { return addressStatusBuilder_.getMessage(index); } } /** * <code>repeated .com.mygeopay.core.protos.AddressStatus address_status = 8;</code> */ public Builder setAddressStatus( int index,com.mygeopay.core.protos.Protos.AddressStatus value) { if (addressStatusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAddressStatusIsMutable(); addressStatus_.set(index, value); onChanged(); } else { addressStatusBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .com.mygeopay.core.protos.AddressStatus address_status = 8;</code> */ public Builder setAddressStatus( int index,com.mygeopay.core.protos.Protos.AddressStatus.Builder builderForValue) { if (addressStatusBuilder_ == null) { ensureAddressStatusIsMutable(); addressStatus_.set(index, builderForValue.build()); onChanged(); } else { addressStatusBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .com.mygeopay.core.protos.AddressStatus address_status = 8;</code> */ public Builder addAddressStatus(com.mygeopay.core.protos.Protos.AddressStatus value) { if (addressStatusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAddressStatusIsMutable(); addressStatus_.add(value); onChanged(); } else { addressStatusBuilder_.addMessage(value); } return this; } /** * <code>repeated .com.mygeopay.core.protos.AddressStatus address_status = 8;</code> */ public Builder addAddressStatus( int index,com.mygeopay.core.protos.Protos.AddressStatus value) { if (addressStatusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAddressStatusIsMutable(); addressStatus_.add(index, value); onChanged(); } else { addressStatusBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .com.mygeopay.core.protos.AddressStatus address_status = 8;</code> */ public Builder addAddressStatus( com.mygeopay.core.protos.Protos.AddressStatus.Builder builderForValue) { if (addressStatusBuilder_ == null) { ensureAddressStatusIsMutable(); addressStatus_.add(builderForValue.build()); onChanged(); } else { addressStatusBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .com.mygeopay.core.protos.AddressStatus address_status = 8;</code> */ public Builder addAddressStatus( int index,com.mygeopay.core.protos.Protos.AddressStatus.Builder builderForValue) { if (addressStatusBuilder_ == null) { ensureAddressStatusIsMutable(); addressStatus_.add(index, builderForValue.build()); onChanged(); } else { addressStatusBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .com.mygeopay.core.protos.AddressStatus address_status = 8;</code> */ public Builder addAllAddressStatus( java.lang.Iterable<? extends com.mygeopay.core.protos.Protos.AddressStatus> values) { if (addressStatusBuilder_ == null) { ensureAddressStatusIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, addressStatus_); onChanged(); } else { addressStatusBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .com.mygeopay.core.protos.AddressStatus address_status = 8;</code> */ public Builder clearAddressStatus() { if (addressStatusBuilder_ == null) { addressStatus_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { addressStatusBuilder_.clear(); } return this; } /** * <code>repeated .com.mygeopay.core.protos.AddressStatus address_status = 8;</code> */ public Builder removeAddressStatus(int index) { if (addressStatusBuilder_ == null) { ensureAddressStatusIsMutable(); addressStatus_.remove(index); onChanged(); } else { addressStatusBuilder_.remove(index); } return this; } /** * <code>repeated .com.mygeopay.core.protos.AddressStatus address_status = 8;</code> */ public com.mygeopay.core.protos.Protos.AddressStatus.Builder getAddressStatusBuilder( int index) { return getAddressStatusFieldBuilder().getBuilder(index); } /** * <code>repeated .com.mygeopay.core.protos.AddressStatus address_status = 8;</code> */ public com.mygeopay.core.protos.Protos.AddressStatusOrBuilder getAddressStatusOrBuilder( int index) { if (addressStatusBuilder_ == null) { return addressStatus_.get(index); } else { return addressStatusBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .com.mygeopay.core.protos.AddressStatus address_status = 8;</code> */ public java.util.List<? extends com.mygeopay.core.protos.Protos.AddressStatusOrBuilder> getAddressStatusOrBuilderList() { if (addressStatusBuilder_ != null) { return addressStatusBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(addressStatus_); } } /** * <code>repeated .com.mygeopay.core.protos.AddressStatus address_status = 8;</code> */ public com.mygeopay.core.protos.Protos.AddressStatus.Builder addAddressStatusBuilder() { return getAddressStatusFieldBuilder().addBuilder( com.mygeopay.core.protos.Protos.AddressStatus.getDefaultInstance()); } /** * <code>repeated .com.mygeopay.core.protos.AddressStatus address_status = 8;</code> */ public com.mygeopay.core.protos.Protos.AddressStatus.Builder addAddressStatusBuilder( int index) { return getAddressStatusFieldBuilder().addBuilder( index,com.mygeopay.core.protos.Protos.AddressStatus.getDefaultInstance()); } /** * <code>repeated .com.mygeopay.core.protos.AddressStatus address_status = 8;</code> */ public java.util.List<com.mygeopay.core.protos.Protos.AddressStatus.Builder> getAddressStatusBuilderList() { return getAddressStatusFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.mygeopay.core.protos.Protos.AddressStatus,com.mygeopay.core.protos.Protos.AddressStatus.Builder,com.mygeopay.core.protos.Protos.AddressStatusOrBuilder> getAddressStatusFieldBuilder() { if (addressStatusBuilder_ == null) { addressStatusBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.mygeopay.core.protos.Protos.AddressStatus,com.mygeopay.core.protos.Protos.AddressStatus.Builder,com.mygeopay.core.protos.Protos.AddressStatusOrBuilder>( addressStatus_, ((bitField0_ & 0x00000080) == 0x00000080), getParentForChildren(), isClean()); addressStatus_ = null; } return addressStatusBuilder_; } private java.lang.Object id_ = ""; /** * <code>optional string id = 9;</code> */ public boolean hasId() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * <code>optional string id = 9;</code> */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { id_ = s; } return s; } else { return (java.lang.String) ref; } } /** * <code>optional string id = 9;</code> */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string id = 9;</code> */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; id_ = value; onChanged(); return this; } /** * <code>optional string id = 9;</code> */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000100); id_ = getDefaultInstance().getId(); onChanged(); return this; } /** * <code>optional string id = 9;</code> */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; id_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.mygeopay.core.protos.WalletPocket) } static { defaultInstance = new WalletPocket(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.mygeopay.core.protos.WalletPocket) } public interface ScryptParametersOrBuilder extends // @@protoc_insertion_point(interface_extends:com.mygeopay.core.protos.ScryptParameters) com.google.protobuf.MessageOrBuilder { /** * <code>required bytes salt = 1;</code> * * <pre> * Salt to use in generation of the wallet password (8 bytes) * </pre> */ boolean hasSalt(); /** * <code>required bytes salt = 1;</code> * * <pre> * Salt to use in generation of the wallet password (8 bytes) * </pre> */ com.google.protobuf.ByteString getSalt(); /** * <code>optional int64 n = 2 [default = 16384];</code> * * <pre> * CPU/ memory cost parameter * </pre> */ boolean hasN(); /** * <code>optional int64 n = 2 [default = 16384];</code> * * <pre> * CPU/ memory cost parameter * </pre> */ long getN(); /** * <code>optional int32 r = 3 [default = 8];</code> * * <pre> * Block size parameter * </pre> */ boolean hasR(); /** * <code>optional int32 r = 3 [default = 8];</code> * * <pre> * Block size parameter * </pre> */ int getR(); /** * <code>optional int32 p = 4 [default = 1];</code> * * <pre> * Parallelisation parameter * </pre> */ boolean hasP(); /** * <code>optional int32 p = 4 [default = 1];</code> * * <pre> * Parallelisation parameter * </pre> */ int getP(); } /** * Protobuf type {@codecom.mygeopay.core.protos.ScryptParameters} * * <pre> ** The parameters used in the scrypt key derivation function. * The default values are taken from http://www.tarsnap.com/scrypt/scrypt-slides.pdf. * They can be increased - n is the number of iterations performed and * r and p can be used to tweak the algorithm - see: * http://stackoverflow.com/questions/11126315/what-are-optimal-scrypt-work-factors * </pre> */ public static final class ScryptParameters extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:com.mygeopay.core.protos.ScryptParameters) ScryptParametersOrBuilder { // Use ScryptParameters.newBuilder() to construct. private ScryptParameters(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ScryptParameters(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ScryptParameters defaultInstance; public static ScryptParameters getDefaultInstance() { return defaultInstance; } public ScryptParameters getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ScryptParameters( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; salt_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; n_ = input.readInt64(); break; } case 24: { bitField0_ |= 0x00000004; r_ = input.readInt32(); break; } case 32: { bitField0_ |= 0x00000008; p_ = input.readInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_ScryptParameters_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_ScryptParameters_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mygeopay.core.protos.Protos.ScryptParameters.class,com.mygeopay.core.protos.Protos.ScryptParameters.Builder.class); } public static final com.google.protobuf.Parser<ScryptParameters> PARSER = new com.google.protobuf.AbstractParser<ScryptParameters>() { public ScryptParameters parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ScryptParameters(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<ScryptParameters> getParserForType() { return PARSER; } private int bitField0_; public static final int SALT_FIELD_NUMBER = 1; private com.google.protobuf.ByteString salt_; /** * <code>required bytes salt = 1;</code> * * <pre> * Salt to use in generation of the wallet password (8 bytes) * </pre> */ public boolean hasSalt() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required bytes salt = 1;</code> * * <pre> * Salt to use in generation of the wallet password (8 bytes) * </pre> */ public com.google.protobuf.ByteString getSalt() { return salt_; } public static final int N_FIELD_NUMBER = 2; private long n_; /** * <code>optional int64 n = 2 [default = 16384];</code> * * <pre> * CPU/ memory cost parameter * </pre> */ public boolean hasN() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int64 n = 2 [default = 16384];</code> * * <pre> * CPU/ memory cost parameter * </pre> */ public long getN() { return n_; } public static final int R_FIELD_NUMBER = 3; private int r_; /** * <code>optional int32 r = 3 [default = 8];</code> * * <pre> * Block size parameter * </pre> */ public boolean hasR() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional int32 r = 3 [default = 8];</code> * * <pre> * Block size parameter * </pre> */ public int getR() { return r_; } public static final int P_FIELD_NUMBER = 4; private int p_; /** * <code>optional int32 p = 4 [default = 1];</code> * * <pre> * Parallelisation parameter * </pre> */ public boolean hasP() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional int32 p = 4 [default = 1];</code> * * <pre> * Parallelisation parameter * </pre> */ public int getP() { return p_; } private void initFields() { salt_ = com.google.protobuf.ByteString.EMPTY; n_ = 16384L; r_ = 8; p_ = 1; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasSalt()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, salt_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt64(2, n_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, r_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt32(4, p_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, salt_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, n_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, r_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, p_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.mygeopay.core.protos.Protos.ScryptParameters parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mygeopay.core.protos.Protos.ScryptParameters parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mygeopay.core.protos.Protos.ScryptParameters parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mygeopay.core.protos.Protos.ScryptParameters parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mygeopay.core.protos.Protos.ScryptParameters parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.mygeopay.core.protos.Protos.ScryptParameters parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.mygeopay.core.protos.Protos.ScryptParameters parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.mygeopay.core.protos.Protos.ScryptParameters parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.mygeopay.core.protos.Protos.ScryptParameters parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.mygeopay.core.protos.Protos.ScryptParameters parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.mygeopay.core.protos.Protos.ScryptParameters prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@codecom.mygeopay.core.protos.ScryptParameters} * * <pre> ** The parameters used in the scrypt key derivation function. * The default values are taken from http://www.tarsnap.com/scrypt/scrypt-slides.pdf. * They can be increased - n is the number of iterations performed and * r and p can be used to tweak the algorithm - see: * http://stackoverflow.com/questions/11126315/what-are-optimal-scrypt-work-factors * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:com.mygeopay.core.protos.ScryptParameters) com.mygeopay.core.protos.Protos.ScryptParametersOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_ScryptParameters_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_ScryptParameters_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mygeopay.core.protos.Protos.ScryptParameters.class,com.mygeopay.core.protos.Protos.ScryptParameters.Builder.class); } // Construct usingcom.mygeopay.core.protos.Protos.ScryptParameters.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); salt_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); n_ = 16384L; bitField0_ = (bitField0_ & ~0x00000002); r_ = 8; bitField0_ = (bitField0_ & ~0x00000004); p_ = 1; bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_ScryptParameters_descriptor; } public com.mygeopay.core.protos.Protos.ScryptParameters getDefaultInstanceForType() { return com.mygeopay.core.protos.Protos.ScryptParameters.getDefaultInstance(); } public com.mygeopay.core.protos.Protos.ScryptParameters build() { com.mygeopay.core.protos.Protos.ScryptParameters result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.mygeopay.core.protos.Protos.ScryptParameters buildPartial() { com.mygeopay.core.protos.Protos.ScryptParameters result = new com.mygeopay.core.protos.Protos.ScryptParameters(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.salt_ = salt_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.n_ = n_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.r_ = r_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.p_ = p_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.mygeopay.core.protos.Protos.ScryptParameters) { return mergeFrom((com.mygeopay.core.protos.Protos.ScryptParameters)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.mygeopay.core.protos.Protos.ScryptParameters other) { if (other ==com.mygeopay.core.protos.Protos.ScryptParameters.getDefaultInstance()) return this; if (other.hasSalt()) { setSalt(other.getSalt()); } if (other.hasN()) { setN(other.getN()); } if (other.hasR()) { setR(other.getR()); } if (other.hasP()) { setP(other.getP()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasSalt()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.mygeopay.core.protos.Protos.ScryptParameters parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.mygeopay.core.protos.Protos.ScryptParameters) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString salt_ = com.google.protobuf.ByteString.EMPTY; /** * <code>required bytes salt = 1;</code> * * <pre> * Salt to use in generation of the wallet password (8 bytes) * </pre> */ public boolean hasSalt() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required bytes salt = 1;</code> * * <pre> * Salt to use in generation of the wallet password (8 bytes) * </pre> */ public com.google.protobuf.ByteString getSalt() { return salt_; } /** * <code>required bytes salt = 1;</code> * * <pre> * Salt to use in generation of the wallet password (8 bytes) * </pre> */ public Builder setSalt(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; salt_ = value; onChanged(); return this; } /** * <code>required bytes salt = 1;</code> * * <pre> * Salt to use in generation of the wallet password (8 bytes) * </pre> */ public Builder clearSalt() { bitField0_ = (bitField0_ & ~0x00000001); salt_ = getDefaultInstance().getSalt(); onChanged(); return this; } private long n_ = 16384L; /** * <code>optional int64 n = 2 [default = 16384];</code> * * <pre> * CPU/ memory cost parameter * </pre> */ public boolean hasN() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int64 n = 2 [default = 16384];</code> * * <pre> * CPU/ memory cost parameter * </pre> */ public long getN() { return n_; } /** * <code>optional int64 n = 2 [default = 16384];</code> * * <pre> * CPU/ memory cost parameter * </pre> */ public Builder setN(long value) { bitField0_ |= 0x00000002; n_ = value; onChanged(); return this; } /** * <code>optional int64 n = 2 [default = 16384];</code> * * <pre> * CPU/ memory cost parameter * </pre> */ public Builder clearN() { bitField0_ = (bitField0_ & ~0x00000002); n_ = 16384L; onChanged(); return this; } private int r_ = 8; /** * <code>optional int32 r = 3 [default = 8];</code> * * <pre> * Block size parameter * </pre> */ public boolean hasR() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional int32 r = 3 [default = 8];</code> * * <pre> * Block size parameter * </pre> */ public int getR() { return r_; } /** * <code>optional int32 r = 3 [default = 8];</code> * * <pre> * Block size parameter * </pre> */ public Builder setR(int value) { bitField0_ |= 0x00000004; r_ = value; onChanged(); return this; } /** * <code>optional int32 r = 3 [default = 8];</code> * * <pre> * Block size parameter * </pre> */ public Builder clearR() { bitField0_ = (bitField0_ & ~0x00000004); r_ = 8; onChanged(); return this; } private int p_ = 1; /** * <code>optional int32 p = 4 [default = 1];</code> * * <pre> * Parallelisation parameter * </pre> */ public boolean hasP() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional int32 p = 4 [default = 1];</code> * * <pre> * Parallelisation parameter * </pre> */ public int getP() { return p_; } /** * <code>optional int32 p = 4 [default = 1];</code> * * <pre> * Parallelisation parameter * </pre> */ public Builder setP(int value) { bitField0_ |= 0x00000008; p_ = value; onChanged(); return this; } /** * <code>optional int32 p = 4 [default = 1];</code> * * <pre> * Parallelisation parameter * </pre> */ public Builder clearP() { bitField0_ = (bitField0_ & ~0x00000008); p_ = 1; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.mygeopay.core.protos.ScryptParameters) } static { defaultInstance = new ScryptParameters(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.mygeopay.core.protos.ScryptParameters) } public interface WalletOrBuilder extends // @@protoc_insertion_point(interface_extends:com.mygeopay.core.protos.Wallet) com.google.protobuf.MessageOrBuilder { /** * <code>optional int32 version = 1 [default = 1];</code> * * <pre> * The version number of the wallet - used to detect wallets that were produced in the future * (i.e the wallet may contain some future format this protobuf/ code does not know about) * </pre> */ boolean hasVersion(); /** * <code>optional int32 version = 1 [default = 1];</code> * * <pre> * The version number of the wallet - used to detect wallets that were produced in the future * (i.e the wallet may contain some future format this protobuf/ code does not know about) * </pre> */ int getVersion(); /** * <code>optional .com.mygeopay.core.protos.Key seed = 2;</code> */ boolean hasSeed(); /** * <code>optional .com.mygeopay.core.protos.Key seed = 2;</code> */ com.mygeopay.core.protos.Protos.Key getSeed(); /** * <code>optional .com.mygeopay.core.protos.Key seed = 2;</code> */ com.mygeopay.core.protos.Protos.KeyOrBuilder getSeedOrBuilder(); /** * <code>optional bool seed_password_protected = 7;</code> */ boolean hasSeedPasswordProtected(); /** * <code>optional bool seed_password_protected = 7;</code> */ boolean getSeedPasswordProtected(); /** * <code>required .com.mygeopay.core.protos.Key master_key = 3;</code> */ boolean hasMasterKey(); /** * <code>required .com.mygeopay.core.protos.Key master_key = 3;</code> */ com.mygeopay.core.protos.Protos.Key getMasterKey(); /** * <code>required .com.mygeopay.core.protos.Key master_key = 3;</code> */ com.mygeopay.core.protos.Protos.KeyOrBuilder getMasterKeyOrBuilder(); /** * <code>optional .com.mygeopay.core.protos.Wallet.EncryptionType encryption_type = 4 [default = UNENCRYPTED];</code> */ boolean hasEncryptionType(); /** * <code>optional .com.mygeopay.core.protos.Wallet.EncryptionType encryption_type = 4 [default = UNENCRYPTED];</code> */ com.mygeopay.core.protos.Protos.Wallet.EncryptionType getEncryptionType(); /** * <code>optional .com.mygeopay.core.protos.ScryptParameters encryption_parameters = 5;</code> */ boolean hasEncryptionParameters(); /** * <code>optional .com.mygeopay.core.protos.ScryptParameters encryption_parameters = 5;</code> */ com.mygeopay.core.protos.Protos.ScryptParameters getEncryptionParameters(); /** * <code>optional .com.mygeopay.core.protos.ScryptParameters encryption_parameters = 5;</code> */ com.mygeopay.core.protos.Protos.ScryptParametersOrBuilder getEncryptionParametersOrBuilder(); /** * <code>repeated .com.mygeopay.core.protos.WalletPocket pockets = 6;</code> */ java.util.List<com.mygeopay.core.protos.Protos.WalletPocket> getPocketsList(); /** * <code>repeated .com.mygeopay.core.protos.WalletPocket pockets = 6;</code> */ com.mygeopay.core.protos.Protos.WalletPocket getPockets(int index); /** * <code>repeated .com.mygeopay.core.protos.WalletPocket pockets = 6;</code> */ int getPocketsCount(); /** * <code>repeated .com.mygeopay.core.protos.WalletPocket pockets = 6;</code> */ java.util.List<? extends com.mygeopay.core.protos.Protos.WalletPocketOrBuilder> getPocketsOrBuilderList(); /** * <code>repeated .com.mygeopay.core.protos.WalletPocket pockets = 6;</code> */ com.mygeopay.core.protos.Protos.WalletPocketOrBuilder getPocketsOrBuilder( int index); } /** * Protobuf type {@codecom.mygeopay.core.protos.Wallet} * * <pre> ** A bitcoin wallet * </pre> */ public static final class Wallet extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:com.mygeopay.core.protos.Wallet) WalletOrBuilder { // Use Wallet.newBuilder() to construct. private Wallet(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Wallet(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Wallet defaultInstance; public static Wallet getDefaultInstance() { return defaultInstance; } public Wallet getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Wallet( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; version_ = input.readInt32(); break; } case 18: { com.mygeopay.core.protos.Protos.Key.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = seed_.toBuilder(); } seed_ = input.readMessage(com.mygeopay.core.protos.Protos.Key.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(seed_); seed_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { com.mygeopay.core.protos.Protos.Key.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = masterKey_.toBuilder(); } masterKey_ = input.readMessage(com.mygeopay.core.protos.Protos.Key.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(masterKey_); masterKey_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 32: { int rawValue = input.readEnum(); com.mygeopay.core.protos.Protos.Wallet.EncryptionType value =com.mygeopay.core.protos.Protos.Wallet.EncryptionType.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(4, rawValue); } else { bitField0_ |= 0x00000010; encryptionType_ = value; } break; } case 42: { com.mygeopay.core.protos.Protos.ScryptParameters.Builder subBuilder = null; if (((bitField0_ & 0x00000020) == 0x00000020)) { subBuilder = encryptionParameters_.toBuilder(); } encryptionParameters_ = input.readMessage(com.mygeopay.core.protos.Protos.ScryptParameters.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(encryptionParameters_); encryptionParameters_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000020; break; } case 50: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { pockets_ = new java.util.ArrayList<com.mygeopay.core.protos.Protos.WalletPocket>(); mutable_bitField0_ |= 0x00000040; } pockets_.add(input.readMessage(com.mygeopay.core.protos.Protos.WalletPocket.PARSER, extensionRegistry)); break; } case 56: { bitField0_ |= 0x00000004; seedPasswordProtected_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { pockets_ = java.util.Collections.unmodifiableList(pockets_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_Wallet_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_Wallet_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mygeopay.core.protos.Protos.Wallet.class,com.mygeopay.core.protos.Protos.Wallet.Builder.class); } public static final com.google.protobuf.Parser<Wallet> PARSER = new com.google.protobuf.AbstractParser<Wallet>() { public Wallet parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Wallet(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<Wallet> getParserForType() { return PARSER; } /** * Protobuf enum {@codecom.mygeopay.core.protos.Wallet.EncryptionType} * * <pre> ** * The encryption type of the wallet. * The encryption type is UNENCRYPTED for wallets where the wallet does not support encryption - wallets prior to * encryption support are grandfathered in as this wallet type. * When a wallet is ENCRYPTED_SCRYPT_AES the keys are either encrypted with the wallet password or are unencrypted. * </pre> */ public enum EncryptionType implements com.google.protobuf.ProtocolMessageEnum { /** * <code>UNENCRYPTED = 1;</code> * * <pre> * All keys in the wallet are unencrypted * </pre> */ UNENCRYPTED(0, 1), /** * <code>ENCRYPTED_SCRYPT_AES = 2;</code> * * <pre> * All keys are encrypted with a passphrase based KDF of scrypt and AES encryption * </pre> */ ENCRYPTED_SCRYPT_AES(1, 2), /** * <code>ENCRYPTED_AES = 3;</code> * * <pre> * All keys are encrypted with AES encryption * </pre> */ ENCRYPTED_AES(2, 3), ; /** * <code>UNENCRYPTED = 1;</code> * * <pre> * All keys in the wallet are unencrypted * </pre> */ public static final int UNENCRYPTED_VALUE = 1; /** * <code>ENCRYPTED_SCRYPT_AES = 2;</code> * * <pre> * All keys are encrypted with a passphrase based KDF of scrypt and AES encryption * </pre> */ public static final int ENCRYPTED_SCRYPT_AES_VALUE = 2; /** * <code>ENCRYPTED_AES = 3;</code> * * <pre> * All keys are encrypted with AES encryption * </pre> */ public static final int ENCRYPTED_AES_VALUE = 3; public final int getNumber() { return value; } public static EncryptionType valueOf(int value) { switch (value) { case 1: return UNENCRYPTED; case 2: return ENCRYPTED_SCRYPT_AES; case 3: return ENCRYPTED_AES; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<EncryptionType> internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap<EncryptionType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<EncryptionType>() { public EncryptionType findValueByNumber(int number) { return EncryptionType.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.mygeopay.core.protos.Protos.Wallet.getDescriptor().getEnumTypes().get(0); } private static final EncryptionType[] VALUES = values(); public static EncryptionType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private EncryptionType(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:com.mygeopay.core.protos.Wallet.EncryptionType) } private int bitField0_; public static final int VERSION_FIELD_NUMBER = 1; private int version_; /** * <code>optional int32 version = 1 [default = 1];</code> * * <pre> * The version number of the wallet - used to detect wallets that were produced in the future * (i.e the wallet may contain some future format this protobuf/ code does not know about) * </pre> */ public boolean hasVersion() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 version = 1 [default = 1];</code> * * <pre> * The version number of the wallet - used to detect wallets that were produced in the future * (i.e the wallet may contain some future format this protobuf/ code does not know about) * </pre> */ public int getVersion() { return version_; } public static final int SEED_FIELD_NUMBER = 2; private com.mygeopay.core.protos.Protos.Key seed_; /** * <code>optional .com.mygeopay.core.protos.Key seed = 2;</code> */ public boolean hasSeed() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .com.mygeopay.core.protos.Key seed = 2;</code> */ public com.mygeopay.core.protos.Protos.Key getSeed() { return seed_; } /** * <code>optional .com.mygeopay.core.protos.Key seed = 2;</code> */ public com.mygeopay.core.protos.Protos.KeyOrBuilder getSeedOrBuilder() { return seed_; } public static final int SEED_PASSWORD_PROTECTED_FIELD_NUMBER = 7; private boolean seedPasswordProtected_; /** * <code>optional bool seed_password_protected = 7;</code> */ public boolean hasSeedPasswordProtected() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional bool seed_password_protected = 7;</code> */ public boolean getSeedPasswordProtected() { return seedPasswordProtected_; } public static final int MASTER_KEY_FIELD_NUMBER = 3; private com.mygeopay.core.protos.Protos.Key masterKey_; /** * <code>required .com.mygeopay.core.protos.Key master_key = 3;</code> */ public boolean hasMasterKey() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>required .com.mygeopay.core.protos.Key master_key = 3;</code> */ public com.mygeopay.core.protos.Protos.Key getMasterKey() { return masterKey_; } /** * <code>required .com.mygeopay.core.protos.Key master_key = 3;</code> */ public com.mygeopay.core.protos.Protos.KeyOrBuilder getMasterKeyOrBuilder() { return masterKey_; } public static final int ENCRYPTION_TYPE_FIELD_NUMBER = 4; private com.mygeopay.core.protos.Protos.Wallet.EncryptionType encryptionType_; /** * <code>optional .com.mygeopay.core.protos.Wallet.EncryptionType encryption_type = 4 [default = UNENCRYPTED];</code> */ public boolean hasEncryptionType() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional .com.mygeopay.core.protos.Wallet.EncryptionType encryption_type = 4 [default = UNENCRYPTED];</code> */ public com.mygeopay.core.protos.Protos.Wallet.EncryptionType getEncryptionType() { return encryptionType_; } public static final int ENCRYPTION_PARAMETERS_FIELD_NUMBER = 5; private com.mygeopay.core.protos.Protos.ScryptParameters encryptionParameters_; /** * <code>optional .com.mygeopay.core.protos.ScryptParameters encryption_parameters = 5;</code> */ public boolean hasEncryptionParameters() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional .com.mygeopay.core.protos.ScryptParameters encryption_parameters = 5;</code> */ public com.mygeopay.core.protos.Protos.ScryptParameters getEncryptionParameters() { return encryptionParameters_; } /** * <code>optional .com.mygeopay.core.protos.ScryptParameters encryption_parameters = 5;</code> */ public com.mygeopay.core.protos.Protos.ScryptParametersOrBuilder getEncryptionParametersOrBuilder() { return encryptionParameters_; } public static final int POCKETS_FIELD_NUMBER = 6; private java.util.List<com.mygeopay.core.protos.Protos.WalletPocket> pockets_; /** * <code>repeated .com.mygeopay.core.protos.WalletPocket pockets = 6;</code> */ public java.util.List<com.mygeopay.core.protos.Protos.WalletPocket> getPocketsList() { return pockets_; } /** * <code>repeated .com.mygeopay.core.protos.WalletPocket pockets = 6;</code> */ public java.util.List<? extends com.mygeopay.core.protos.Protos.WalletPocketOrBuilder> getPocketsOrBuilderList() { return pockets_; } /** * <code>repeated .com.mygeopay.core.protos.WalletPocket pockets = 6;</code> */ public int getPocketsCount() { return pockets_.size(); } /** * <code>repeated .com.mygeopay.core.protos.WalletPocket pockets = 6;</code> */ public com.mygeopay.core.protos.Protos.WalletPocket getPockets(int index) { return pockets_.get(index); } /** * <code>repeated .com.mygeopay.core.protos.WalletPocket pockets = 6;</code> */ public com.mygeopay.core.protos.Protos.WalletPocketOrBuilder getPocketsOrBuilder( int index) { return pockets_.get(index); } private void initFields() { version_ = 1; seed_ =com.mygeopay.core.protos.Protos.Key.getDefaultInstance(); seedPasswordProtected_ = false; masterKey_ =com.mygeopay.core.protos.Protos.Key.getDefaultInstance(); encryptionType_ =com.mygeopay.core.protos.Protos.Wallet.EncryptionType.UNENCRYPTED; encryptionParameters_ =com.mygeopay.core.protos.Protos.ScryptParameters.getDefaultInstance(); pockets_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasMasterKey()) { memoizedIsInitialized = 0; return false; } if (hasSeed()) { if (!getSeed().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (!getMasterKey().isInitialized()) { memoizedIsInitialized = 0; return false; } if (hasEncryptionParameters() && !getEncryptionParameters().isInitialized()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getPocketsCount(); i++) { if (!getPockets(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, version_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, seed_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(3, masterKey_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeEnum(4, encryptionType_.getNumber()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeMessage(5, encryptionParameters_); } for (int i = 0; i < pockets_.size(); i++) { output.writeMessage(6, pockets_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(7, seedPasswordProtected_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, version_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, seed_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, masterKey_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, encryptionType_.getNumber()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, encryptionParameters_); } for (int i = 0; i < pockets_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, pockets_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, seedPasswordProtected_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.mygeopay.core.protos.Protos.Wallet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mygeopay.core.protos.Protos.Wallet parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mygeopay.core.protos.Protos.Wallet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.mygeopay.core.protos.Protos.Wallet parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.mygeopay.core.protos.Protos.Wallet parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.mygeopay.core.protos.Protos.Wallet parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.mygeopay.core.protos.Protos.Wallet parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.mygeopay.core.protos.Protos.Wallet parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.mygeopay.core.protos.Protos.Wallet parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.mygeopay.core.protos.Protos.Wallet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.mygeopay.core.protos.Protos.Wallet prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@codecom.mygeopay.core.protos.Wallet} * * <pre> ** A bitcoin wallet * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:com.mygeopay.core.protos.Wallet) com.mygeopay.core.protos.Protos.WalletOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_Wallet_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_Wallet_fieldAccessorTable .ensureFieldAccessorsInitialized( com.mygeopay.core.protos.Protos.Wallet.class,com.mygeopay.core.protos.Protos.Wallet.Builder.class); } // Construct usingcom.mygeopay.core.protos.Protos.Wallet.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getSeedFieldBuilder(); getMasterKeyFieldBuilder(); getEncryptionParametersFieldBuilder(); getPocketsFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); version_ = 1; bitField0_ = (bitField0_ & ~0x00000001); if (seedBuilder_ == null) { seed_ =com.mygeopay.core.protos.Protos.Key.getDefaultInstance(); } else { seedBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); seedPasswordProtected_ = false; bitField0_ = (bitField0_ & ~0x00000004); if (masterKeyBuilder_ == null) { masterKey_ =com.mygeopay.core.protos.Protos.Key.getDefaultInstance(); } else { masterKeyBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); encryptionType_ =com.mygeopay.core.protos.Protos.Wallet.EncryptionType.UNENCRYPTED; bitField0_ = (bitField0_ & ~0x00000010); if (encryptionParametersBuilder_ == null) { encryptionParameters_ =com.mygeopay.core.protos.Protos.ScryptParameters.getDefaultInstance(); } else { encryptionParametersBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); if (pocketsBuilder_ == null) { pockets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { pocketsBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.mygeopay.core.protos.Protos.internal_static_com_coinomi_core_protos_Wallet_descriptor; } public com.mygeopay.core.protos.Protos.Wallet getDefaultInstanceForType() { return com.mygeopay.core.protos.Protos.Wallet.getDefaultInstance(); } public com.mygeopay.core.protos.Protos.Wallet build() { com.mygeopay.core.protos.Protos.Wallet result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.mygeopay.core.protos.Protos.Wallet buildPartial() { com.mygeopay.core.protos.Protos.Wallet result = new com.mygeopay.core.protos.Protos.Wallet(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.version_ = version_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (seedBuilder_ == null) { result.seed_ = seed_; } else { result.seed_ = seedBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.seedPasswordProtected_ = seedPasswordProtected_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (masterKeyBuilder_ == null) { result.masterKey_ = masterKey_; } else { result.masterKey_ = masterKeyBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.encryptionType_ = encryptionType_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } if (encryptionParametersBuilder_ == null) { result.encryptionParameters_ = encryptionParameters_; } else { result.encryptionParameters_ = encryptionParametersBuilder_.build(); } if (pocketsBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040)) { pockets_ = java.util.Collections.unmodifiableList(pockets_); bitField0_ = (bitField0_ & ~0x00000040); } result.pockets_ = pockets_; } else { result.pockets_ = pocketsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.mygeopay.core.protos.Protos.Wallet) { return mergeFrom((com.mygeopay.core.protos.Protos.Wallet)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.mygeopay.core.protos.Protos.Wallet other) { if (other ==com.mygeopay.core.protos.Protos.Wallet.getDefaultInstance()) return this; if (other.hasVersion()) { setVersion(other.getVersion()); } if (other.hasSeed()) { mergeSeed(other.getSeed()); } if (other.hasSeedPasswordProtected()) { setSeedPasswordProtected(other.getSeedPasswordProtected()); } if (other.hasMasterKey()) { mergeMasterKey(other.getMasterKey()); } if (other.hasEncryptionType()) { setEncryptionType(other.getEncryptionType()); } if (other.hasEncryptionParameters()) { mergeEncryptionParameters(other.getEncryptionParameters()); } if (pocketsBuilder_ == null) { if (!other.pockets_.isEmpty()) { if (pockets_.isEmpty()) { pockets_ = other.pockets_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensurePocketsIsMutable(); pockets_.addAll(other.pockets_); } onChanged(); } } else { if (!other.pockets_.isEmpty()) { if (pocketsBuilder_.isEmpty()) { pocketsBuilder_.dispose(); pocketsBuilder_ = null; pockets_ = other.pockets_; bitField0_ = (bitField0_ & ~0x00000040); pocketsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getPocketsFieldBuilder() : null; } else { pocketsBuilder_.addAllMessages(other.pockets_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasMasterKey()) { return false; } if (hasSeed()) { if (!getSeed().isInitialized()) { return false; } } if (!getMasterKey().isInitialized()) { return false; } if (hasEncryptionParameters() && !getEncryptionParameters().isInitialized()) { return false; } for (int i = 0; i < getPocketsCount(); i++) { if (!getPockets(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.mygeopay.core.protos.Protos.Wallet parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.mygeopay.core.protos.Protos.Wallet) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int version_ = 1; /** * <code>optional int32 version = 1 [default = 1];</code> * * <pre> * The version number of the wallet - used to detect wallets that were produced in the future * (i.e the wallet may contain some future format this protobuf/ code does not know about) * </pre> */ public boolean hasVersion() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 version = 1 [default = 1];</code> * * <pre> * The version number of the wallet - used to detect wallets that were produced in the future * (i.e the wallet may contain some future format this protobuf/ code does not know about) * </pre> */ public int getVersion() { return version_; } /** * <code>optional int32 version = 1 [default = 1];</code> * * <pre> * The version number of the wallet - used to detect wallets that were produced in the future * (i.e the wallet may contain some future format this protobuf/ code does not know about) * </pre> */ public Builder setVersion(int value) { bitField0_ |= 0x00000001; version_ = value; onChanged(); return this; } /** * <code>optional int32 version = 1 [default = 1];</code> * * <pre> * The version number of the wallet - used to detect wallets that were produced in the future * (i.e the wallet may contain some future format this protobuf/ code does not know about) * </pre> */ public Builder clearVersion() { bitField0_ = (bitField0_ & ~0x00000001); version_ = 1; onChanged(); return this; } private com.mygeopay.core.protos.Protos.Key seed_ =com.mygeopay.core.protos.Protos.Key.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< com.mygeopay.core.protos.Protos.Key,com.mygeopay.core.protos.Protos.Key.Builder,com.mygeopay.core.protos.Protos.KeyOrBuilder> seedBuilder_; /** * <code>optional .com.mygeopay.core.protos.Key seed = 2;</code> */ public boolean hasSeed() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .com.mygeopay.core.protos.Key seed = 2;</code> */ public com.mygeopay.core.protos.Protos.Key getSeed() { if (seedBuilder_ == null) { return seed_; } else { return seedBuilder_.getMessage(); } } /** * <code>optional .com.mygeopay.core.protos.Key seed = 2;</code> */ public Builder setSeed(com.mygeopay.core.protos.Protos.Key value) { if (seedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } seed_ = value; onChanged(); } else { seedBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * <code>optional .com.mygeopay.core.protos.Key seed = 2;</code> */ public Builder setSeed( com.mygeopay.core.protos.Protos.Key.Builder builderForValue) { if (seedBuilder_ == null) { seed_ = builderForValue.build(); onChanged(); } else { seedBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * <code>optional .com.mygeopay.core.protos.Key seed = 2;</code> */ public Builder mergeSeed(com.mygeopay.core.protos.Protos.Key value) { if (seedBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && seed_ !=com.mygeopay.core.protos.Protos.Key.getDefaultInstance()) { seed_ = com.mygeopay.core.protos.Protos.Key.newBuilder(seed_).mergeFrom(value).buildPartial(); } else { seed_ = value; } onChanged(); } else { seedBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * <code>optional .com.mygeopay.core.protos.Key seed = 2;</code> */ public Builder clearSeed() { if (seedBuilder_ == null) { seed_ =com.mygeopay.core.protos.Protos.Key.getDefaultInstance(); onChanged(); } else { seedBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * <code>optional .com.mygeopay.core.protos.Key seed = 2;</code> */ public com.mygeopay.core.protos.Protos.Key.Builder getSeedBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSeedFieldBuilder().getBuilder(); } /** * <code>optional .com.mygeopay.core.protos.Key seed = 2;</code> */ public com.mygeopay.core.protos.Protos.KeyOrBuilder getSeedOrBuilder() { if (seedBuilder_ != null) { return seedBuilder_.getMessageOrBuilder(); } else { return seed_; } } /** * <code>optional .com.mygeopay.core.protos.Key seed = 2;</code> */ private com.google.protobuf.SingleFieldBuilder< com.mygeopay.core.protos.Protos.Key,com.mygeopay.core.protos.Protos.Key.Builder,com.mygeopay.core.protos.Protos.KeyOrBuilder> getSeedFieldBuilder() { if (seedBuilder_ == null) { seedBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.mygeopay.core.protos.Protos.Key,com.mygeopay.core.protos.Protos.Key.Builder,com.mygeopay.core.protos.Protos.KeyOrBuilder>( getSeed(), getParentForChildren(), isClean()); seed_ = null; } return seedBuilder_; } private boolean seedPasswordProtected_ ; /** * <code>optional bool seed_password_protected = 7;</code> */ public boolean hasSeedPasswordProtected() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional bool seed_password_protected = 7;</code> */ public boolean getSeedPasswordProtected() { return seedPasswordProtected_; } /** * <code>optional bool seed_password_protected = 7;</code> */ public Builder setSeedPasswordProtected(boolean value) { bitField0_ |= 0x00000004; seedPasswordProtected_ = value; onChanged(); return this; } /** * <code>optional bool seed_password_protected = 7;</code> */ public Builder clearSeedPasswordProtected() { bitField0_ = (bitField0_ & ~0x00000004); seedPasswordProtected_ = false; onChanged(); return this; } private com.mygeopay.core.protos.Protos.Key masterKey_ =com.mygeopay.core.protos.Protos.Key.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< com.mygeopay.core.protos.Protos.Key,com.mygeopay.core.protos.Protos.Key.Builder,com.mygeopay.core.protos.Protos.KeyOrBuilder> masterKeyBuilder_; /** * <code>required .com.mygeopay.core.protos.Key master_key = 3;</code> */ public boolean hasMasterKey() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>required .com.mygeopay.core.protos.Key master_key = 3;</code> */ public com.mygeopay.core.protos.Protos.Key getMasterKey() { if (masterKeyBuilder_ == null) { return masterKey_; } else { return masterKeyBuilder_.getMessage(); } } /** * <code>required .com.mygeopay.core.protos.Key master_key = 3;</code> */ public Builder setMasterKey(com.mygeopay.core.protos.Protos.Key value) { if (masterKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } masterKey_ = value; onChanged(); } else { masterKeyBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * <code>required .com.mygeopay.core.protos.Key master_key = 3;</code> */ public Builder setMasterKey( com.mygeopay.core.protos.Protos.Key.Builder builderForValue) { if (masterKeyBuilder_ == null) { masterKey_ = builderForValue.build(); onChanged(); } else { masterKeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * <code>required .com.mygeopay.core.protos.Key master_key = 3;</code> */ public Builder mergeMasterKey(com.mygeopay.core.protos.Protos.Key value) { if (masterKeyBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && masterKey_ !=com.mygeopay.core.protos.Protos.Key.getDefaultInstance()) { masterKey_ = com.mygeopay.core.protos.Protos.Key.newBuilder(masterKey_).mergeFrom(value).buildPartial(); } else { masterKey_ = value; } onChanged(); } else { masterKeyBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * <code>required .com.mygeopay.core.protos.Key master_key = 3;</code> */ public Builder clearMasterKey() { if (masterKeyBuilder_ == null) { masterKey_ =com.mygeopay.core.protos.Protos.Key.getDefaultInstance(); onChanged(); } else { masterKeyBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * <code>required .com.mygeopay.core.protos.Key master_key = 3;</code> */ public com.mygeopay.core.protos.Protos.Key.Builder getMasterKeyBuilder() { bitField0_ |= 0x00000008; onChanged(); return getMasterKeyFieldBuilder().getBuilder(); } /** * <code>required .com.mygeopay.core.protos.Key master_key = 3;</code> */ public com.mygeopay.core.protos.Protos.KeyOrBuilder getMasterKeyOrBuilder() { if (masterKeyBuilder_ != null) { return masterKeyBuilder_.getMessageOrBuilder(); } else { return masterKey_; } } /** * <code>required .com.mygeopay.core.protos.Key master_key = 3;</code> */ private com.google.protobuf.SingleFieldBuilder< com.mygeopay.core.protos.Protos.Key,com.mygeopay.core.protos.Protos.Key.Builder,com.mygeopay.core.protos.Protos.KeyOrBuilder> getMasterKeyFieldBuilder() { if (masterKeyBuilder_ == null) { masterKeyBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.mygeopay.core.protos.Protos.Key,com.mygeopay.core.protos.Protos.Key.Builder,com.mygeopay.core.protos.Protos.KeyOrBuilder>( getMasterKey(), getParentForChildren(), isClean()); masterKey_ = null; } return masterKeyBuilder_; } private com.mygeopay.core.protos.Protos.Wallet.EncryptionType encryptionType_ =com.mygeopay.core.protos.Protos.Wallet.EncryptionType.UNENCRYPTED; /** * <code>optional .com.mygeopay.core.protos.Wallet.EncryptionType encryption_type = 4 [default = UNENCRYPTED];</code> */ public boolean hasEncryptionType() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional .com.mygeopay.core.protos.Wallet.EncryptionType encryption_type = 4 [default = UNENCRYPTED];</code> */ public com.mygeopay.core.protos.Protos.Wallet.EncryptionType getEncryptionType() { return encryptionType_; } /** * <code>optional .com.mygeopay.core.protos.Wallet.EncryptionType encryption_type = 4 [default = UNENCRYPTED];</code> */ public Builder setEncryptionType(com.mygeopay.core.protos.Protos.Wallet.EncryptionType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; encryptionType_ = value; onChanged(); return this; } /** * <code>optional .com.mygeopay.core.protos.Wallet.EncryptionType encryption_type = 4 [default = UNENCRYPTED];</code> */ public Builder clearEncryptionType() { bitField0_ = (bitField0_ & ~0x00000010); encryptionType_ =com.mygeopay.core.protos.Protos.Wallet.EncryptionType.UNENCRYPTED; onChanged(); return this; } private com.mygeopay.core.protos.Protos.ScryptParameters encryptionParameters_ =com.mygeopay.core.protos.Protos.ScryptParameters.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< com.mygeopay.core.protos.Protos.ScryptParameters,com.mygeopay.core.protos.Protos.ScryptParameters.Builder,com.mygeopay.core.protos.Protos.ScryptParametersOrBuilder> encryptionParametersBuilder_; /** * <code>optional .com.mygeopay.core.protos.ScryptParameters encryption_parameters = 5;</code> */ public boolean hasEncryptionParameters() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional .com.mygeopay.core.protos.ScryptParameters encryption_parameters = 5;</code> */ public com.mygeopay.core.protos.Protos.ScryptParameters getEncryptionParameters() { if (encryptionParametersBuilder_ == null) { return encryptionParameters_; } else { return encryptionParametersBuilder_.getMessage(); } } /** * <code>optional .com.mygeopay.core.protos.ScryptParameters encryption_parameters = 5;</code> */ public Builder setEncryptionParameters(com.mygeopay.core.protos.Protos.ScryptParameters value) { if (encryptionParametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } encryptionParameters_ = value; onChanged(); } else { encryptionParametersBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** * <code>optional .com.mygeopay.core.protos.ScryptParameters encryption_parameters = 5;</code> */ public Builder setEncryptionParameters( com.mygeopay.core.protos.Protos.ScryptParameters.Builder builderForValue) { if (encryptionParametersBuilder_ == null) { encryptionParameters_ = builderForValue.build(); onChanged(); } else { encryptionParametersBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** * <code>optional .com.mygeopay.core.protos.ScryptParameters encryption_parameters = 5;</code> */ public Builder mergeEncryptionParameters(com.mygeopay.core.protos.Protos.ScryptParameters value) { if (encryptionParametersBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && encryptionParameters_ !=com.mygeopay.core.protos.Protos.ScryptParameters.getDefaultInstance()) { encryptionParameters_ = com.mygeopay.core.protos.Protos.ScryptParameters.newBuilder(encryptionParameters_).mergeFrom(value).buildPartial(); } else { encryptionParameters_ = value; } onChanged(); } else { encryptionParametersBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** * <code>optional .com.mygeopay.core.protos.ScryptParameters encryption_parameters = 5;</code> */ public Builder clearEncryptionParameters() { if (encryptionParametersBuilder_ == null) { encryptionParameters_ =com.mygeopay.core.protos.Protos.ScryptParameters.getDefaultInstance(); onChanged(); } else { encryptionParametersBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** * <code>optional .com.mygeopay.core.protos.ScryptParameters encryption_parameters = 5;</code> */ public com.mygeopay.core.protos.Protos.ScryptParameters.Builder getEncryptionParametersBuilder() { bitField0_ |= 0x00000020; onChanged(); return getEncryptionParametersFieldBuilder().getBuilder(); } /** * <code>optional .com.mygeopay.core.protos.ScryptParameters encryption_parameters = 5;</code> */ public com.mygeopay.core.protos.Protos.ScryptParametersOrBuilder getEncryptionParametersOrBuilder() { if (encryptionParametersBuilder_ != null) { return encryptionParametersBuilder_.getMessageOrBuilder(); } else { return encryptionParameters_; } } /** * <code>optional .com.mygeopay.core.protos.ScryptParameters encryption_parameters = 5;</code> */ private com.google.protobuf.SingleFieldBuilder< com.mygeopay.core.protos.Protos.ScryptParameters,com.mygeopay.core.protos.Protos.ScryptParameters.Builder,com.mygeopay.core.protos.Protos.ScryptParametersOrBuilder> getEncryptionParametersFieldBuilder() { if (encryptionParametersBuilder_ == null) { encryptionParametersBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.mygeopay.core.protos.Protos.ScryptParameters,com.mygeopay.core.protos.Protos.ScryptParameters.Builder,com.mygeopay.core.protos.Protos.ScryptParametersOrBuilder>( getEncryptionParameters(), getParentForChildren(), isClean()); encryptionParameters_ = null; } return encryptionParametersBuilder_; } private java.util.List<com.mygeopay.core.protos.Protos.WalletPocket> pockets_ = java.util.Collections.emptyList(); private void ensurePocketsIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { pockets_ = new java.util.ArrayList<com.mygeopay.core.protos.Protos.WalletPocket>(pockets_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilder< com.mygeopay.core.protos.Protos.WalletPocket,com.mygeopay.core.protos.Protos.WalletPocket.Builder,com.mygeopay.core.protos.Protos.WalletPocketOrBuilder> pocketsBuilder_; /** * <code>repeated .com.mygeopay.core.protos.WalletPocket pockets = 6;</code> */ public java.util.List<com.mygeopay.core.protos.Protos.WalletPocket> getPocketsList() { if (pocketsBuilder_ == null) { return java.util.Collections.unmodifiableList(pockets_); } else { return pocketsBuilder_.getMessageList(); } } /** * <code>repeated .com.mygeopay.core.protos.WalletPocket pockets = 6;</code> */ public int getPocketsCount() { if (pocketsBuilder_ == null) { return pockets_.size(); } else { return pocketsBuilder_.getCount(); } } /** * <code>repeated .com.mygeopay.core.protos.WalletPocket pockets = 6;</code> */ public com.mygeopay.core.protos.Protos.WalletPocket getPockets(int index) { if (pocketsBuilder_ == null) { return pockets_.get(index); } else { return pocketsBuilder_.getMessage(index); } } /** * <code>repeated .com.mygeopay.core.protos.WalletPocket pockets = 6;</code> */ public Builder setPockets( int index,com.mygeopay.core.protos.Protos.WalletPocket value) { if (pocketsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePocketsIsMutable(); pockets_.set(index, value); onChanged(); } else { pocketsBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .com.mygeopay.core.protos.WalletPocket pockets = 6;</code> */ public Builder setPockets( int index,com.mygeopay.core.protos.Protos.WalletPocket.Builder builderForValue) { if (pocketsBuilder_ == null) { ensurePocketsIsMutable(); pockets_.set(index, builderForValue.build()); onChanged(); } else { pocketsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .com.mygeopay.core.protos.WalletPocket pockets = 6;</code> */ public Builder addPockets(com.mygeopay.core.protos.Protos.WalletPocket value) { if (pocketsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePocketsIsMutable(); pockets_.add(value); onChanged(); } else { pocketsBuilder_.addMessage(value); } return this; } /** * <code>repeated .com.mygeopay.core.protos.WalletPocket pockets = 6;</code> */ public Builder addPockets( int index,com.mygeopay.core.protos.Protos.WalletPocket value) { if (pocketsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePocketsIsMutable(); pockets_.add(index, value); onChanged(); } else { pocketsBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .com.mygeopay.core.protos.WalletPocket pockets = 6;</code> */ public Builder addPockets( com.mygeopay.core.protos.Protos.WalletPocket.Builder builderForValue) { if (pocketsBuilder_ == null) { ensurePocketsIsMutable(); pockets_.add(builderForValue.build()); onChanged(); } else { pocketsBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .com.mygeopay.core.protos.WalletPocket pockets = 6;</code> */ public Builder addPockets( int index,com.mygeopay.core.protos.Protos.WalletPocket.Builder builderForValue) { if (pocketsBuilder_ == null) { ensurePocketsIsMutable(); pockets_.add(index, builderForValue.build()); onChanged(); } else { pocketsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .com.mygeopay.core.protos.WalletPocket pockets = 6;</code> */ public Builder addAllPockets( java.lang.Iterable<? extends com.mygeopay.core.protos.Protos.WalletPocket> values) { if (pocketsBuilder_ == null) { ensurePocketsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, pockets_); onChanged(); } else { pocketsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .com.mygeopay.core.protos.WalletPocket pockets = 6;</code> */ public Builder clearPockets() { if (pocketsBuilder_ == null) { pockets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { pocketsBuilder_.clear(); } return this; } /** * <code>repeated .com.mygeopay.core.protos.WalletPocket pockets = 6;</code> */ public Builder removePockets(int index) { if (pocketsBuilder_ == null) { ensurePocketsIsMutable(); pockets_.remove(index); onChanged(); } else { pocketsBuilder_.remove(index); } return this; } /** * <code>repeated .com.mygeopay.core.protos.WalletPocket pockets = 6;</code> */ public com.mygeopay.core.protos.Protos.WalletPocket.Builder getPocketsBuilder( int index) { return getPocketsFieldBuilder().getBuilder(index); } /** * <code>repeated .com.mygeopay.core.protos.WalletPocket pockets = 6;</code> */ public com.mygeopay.core.protos.Protos.WalletPocketOrBuilder getPocketsOrBuilder( int index) { if (pocketsBuilder_ == null) { return pockets_.get(index); } else { return pocketsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .com.mygeopay.core.protos.WalletPocket pockets = 6;</code> */ public java.util.List<? extends com.mygeopay.core.protos.Protos.WalletPocketOrBuilder> getPocketsOrBuilderList() { if (pocketsBuilder_ != null) { return pocketsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(pockets_); } } /** * <code>repeated .com.mygeopay.core.protos.WalletPocket pockets = 6;</code> */ public com.mygeopay.core.protos.Protos.WalletPocket.Builder addPocketsBuilder() { return getPocketsFieldBuilder().addBuilder( com.mygeopay.core.protos.Protos.WalletPocket.getDefaultInstance()); } /** * <code>repeated .com.mygeopay.core.protos.WalletPocket pockets = 6;</code> */ public com.mygeopay.core.protos.Protos.WalletPocket.Builder addPocketsBuilder( int index) { return getPocketsFieldBuilder().addBuilder( index,com.mygeopay.core.protos.Protos.WalletPocket.getDefaultInstance()); } /** * <code>repeated .com.mygeopay.core.protos.WalletPocket pockets = 6;</code> */ public java.util.List<com.mygeopay.core.protos.Protos.WalletPocket.Builder> getPocketsBuilderList() { return getPocketsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.mygeopay.core.protos.Protos.WalletPocket,com.mygeopay.core.protos.Protos.WalletPocket.Builder,com.mygeopay.core.protos.Protos.WalletPocketOrBuilder> getPocketsFieldBuilder() { if (pocketsBuilder_ == null) { pocketsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.mygeopay.core.protos.Protos.WalletPocket,com.mygeopay.core.protos.Protos.WalletPocket.Builder,com.mygeopay.core.protos.Protos.WalletPocketOrBuilder>( pockets_, ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), isClean()); pockets_ = null; } return pocketsBuilder_; } // @@protoc_insertion_point(builder_scope:com.mygeopay.core.protos.Wallet) } static { defaultInstance = new Wallet(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.mygeopay.core.protos.Wallet) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_coinomi_core_protos_PeerAddress_descriptor; private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_coinomi_core_protos_PeerAddress_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_coinomi_core_protos_EncryptedData_descriptor; private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_coinomi_core_protos_EncryptedData_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_coinomi_core_protos_DeterministicKey_descriptor; private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_coinomi_core_protos_DeterministicKey_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_coinomi_core_protos_Key_descriptor; private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_coinomi_core_protos_Key_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_coinomi_core_protos_TransactionInput_descriptor; private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_coinomi_core_protos_TransactionInput_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_coinomi_core_protos_TransactionOutput_descriptor; private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_coinomi_core_protos_TransactionOutput_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_coinomi_core_protos_TransactionConfidence_descriptor; private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_coinomi_core_protos_TransactionConfidence_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_coinomi_core_protos_Transaction_descriptor; private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_coinomi_core_protos_Transaction_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_coinomi_core_protos_AddressStatus_descriptor; private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_coinomi_core_protos_AddressStatus_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_coinomi_core_protos_WalletPocket_descriptor; private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_coinomi_core_protos_WalletPocket_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_coinomi_core_protos_ScryptParameters_descriptor; private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_coinomi_core_protos_ScryptParameters_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_coinomi_core_protos_Wallet_descriptor; private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_coinomi_core_protos_Wallet_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\014wallet.proto\022\027com.mygeopay.core.protos\"" + "A\n\013PeerAddress\022\022\n\nip_address\030\001 \002(\014\022\014\n\004po" + "rt\030\002 \002(\r\022\020\n\010services\030\003 \002(\004\"M\n\rEncryptedD" + "ata\022\035\n\025initialisation_vector\030\001 \002(\014\022\035\n\025en" + "crypted_private_key\030\002 \002(\014\"y\n\020Determinist" + "icKey\022\022\n\nchain_code\030\001 \002(\014\022\014\n\004path\030\002 \003(\r\022" + "\026\n\016issued_subkeys\030\003 \001(\r\022\026\n\016lookahead_siz" + "e\030\004 \001(\r\022\023\n\013isFollowing\030\005 \001(\010\"\330\002\n\003Key\022/\n\004" + "type\030\001 \002(\0162!.com.mygeopay.core.protos.Key" + ".Type\022\024\n\014secret_bytes\030\002 \001(\014\022>\n\016encrypted", "_data\030\003 \001(\0132&.com.mygeopay.core.protos.En" + "cryptedData\022\022\n\npublic_key\030\004 \001(\014\022\r\n\005label" + "\030\005 \001(\t\022D\n\021deterministic_key\030\006 \001(\0132).com." + "coinomi.core.protos.DeterministicKey\"a\n\004" + "Type\022\014\n\010ORIGINAL\020\001\022\030\n\024ENCRYPTED_SCRYPT_A" + "ES\020\002\022\032\n\026DETERMINISTIC_MNEMONIC\020\003\022\025\n\021DETE" + "RMINISTIC_KEY\020\004\"\222\001\n\020TransactionInput\022\"\n\032" + "transaction_out_point_hash\030\001 \002(\014\022#\n\033tran" + "saction_out_point_index\030\002 \002(\r\022\024\n\014script_" + "bytes\030\003 \002(\014\022\020\n\010sequence\030\004 \001(\r\022\r\n\005value\030\005", " \001(\003\"\177\n\021TransactionOutput\022\r\n\005value\030\001 \002(\003" + "\022\024\n\014script_bytes\030\002 \002(\014\022!\n\031spent_by_trans" + "action_hash\030\003 \001(\014\022\"\n\032spent_by_transactio" + "n_index\030\004 \001(\005\"\271\003\n\025TransactionConfidence\022" + "A\n\004type\030\001 \001(\01623.com.mygeopay.core.protos." + "TransactionConfidence.Type\022\032\n\022appeared_a" + "t_height\030\002 \001(\005\022\036\n\026overriding_transaction" + "\030\003 \001(\014\022\r\n\005depth\030\004 \001(\005\022:\n\014broadcast_by\030\005 " + "\003(\0132$.com.mygeopay.core.protos.PeerAddres" + "s\022E\n\006source\030\006 \001(\01625.com.mygeopay.core.pro", "tos.TransactionConfidence.Source\"8\n\004Type" + "\022\013\n\007UNKNOWN\020\000\022\014\n\010BUILDING\020\001\022\013\n\007PENDING\020\002" + "\022\010\n\004DEAD\020\003\"U\n\006Source\022\022\n\016SOURCE_UNKNOWN\020\000" + "\022\022\n\016SOURCE_NETWORK\020\001\022\017\n\013SOURCE_SELF\020\002\022\022\n" + "\016SOURCE_TRUSTED\020\003\"\353\003\n\013Transaction\022\017\n\007ver" + "sion\030\001 \002(\005\022\014\n\004time\030\013 \001(\005\022\014\n\004hash\030\002 \002(\014\0227" + "\n\004pool\030\003 \001(\0162).com.mygeopay.core.protos.T" + "ransaction.Pool\022\021\n\tlock_time\030\004 \001(\r\022\022\n\nup" + "dated_at\030\005 \001(\003\022D\n\021transaction_input\030\006 \003(" + "\0132).com.mygeopay.core.protos.TransactionI", "nput\022F\n\022transaction_output\030\007 \003(\0132*.com.c" + "oinomi.core.protos.TransactionOutput\022\022\n\n" + "block_hash\030\010 \003(\014\022 \n\030block_relativity_off" + "sets\030\t \003(\005\022B\n\nconfidence\030\n \001(\0132..com.coi" + "nomi.core.protos.TransactionConfidence\022\020" + "\n\010token_id\030\014 \001(\005\"5\n\004Pool\022\013\n\007UNSPENT\020\004\022\t\n" + "\005SPENT\020\005\022\010\n\004DEAD\020\n\022\013\n\007PENDING\020\020\"0\n\rAddre" + "ssStatus\022\017\n\007address\030\001 \002(\t\022\016\n\006status\030\002 \002(" + "\t\"\322\002\n\014WalletPocket\022\032\n\022network_identifier" + "\030\001 \002(\t\022\023\n\013description\030\002 \001(\t\022)\n\003key\030\003 \003(\013", "2\034.com.mygeopay.core.protos.Key\022\034\n\024last_s" + "een_block_hash\030\004 \001(\014\022\036\n\026last_seen_block_" + "height\030\005 \001(\r\022!\n\031last_seen_block_time_sec" + "s\030\006 \001(\003\0229\n\013transaction\030\007 \003(\0132$.com.coino" + "mi.core.protos.Transaction\022>\n\016address_st" + "atus\030\010 \003(\0132&.com.mygeopay.core.protos.Add" + "ressStatus\022\n\n\002id\030\t \001(\t\"N\n\020ScryptParamete" + "rs\022\014\n\004salt\030\001 \002(\014\022\020\n\001n\030\002 \001(\003:\00516384\022\014\n\001r\030" + "\003 \001(\005:\0018\022\014\n\001p\030\004 \001(\005:\0011\"\303\003\n\006Wallet\022\022\n\007ver" + "sion\030\001 \001(\005:\0011\022*\n\004seed\030\002 \001(\0132\034.com.coinom", "i.core.protos.Key\022\037\n\027seed_password_prote" + "cted\030\007 \001(\010\0220\n\nmaster_key\030\003 \002(\0132\034.com.coi" + "nomi.core.protos.Key\022T\n\017encryption_type\030" + "\004 \001(\0162..com.mygeopay.core.protos.Wallet.E" + "ncryptionType:\013UNENCRYPTED\022H\n\025encryption" + "_parameters\030\005 \001(\0132).com.mygeopay.core.pro" + "tos.ScryptParameters\0226\n\007pockets\030\006 \003(\0132%." + "com.mygeopay.core.protos.WalletPocket\"N\n\016" + "EncryptionType\022\017\n\013UNENCRYPTED\020\001\022\030\n\024ENCRY" + "PTED_SCRYPT_AES\020\002\022\021\n\rENCRYPTED_AES\020\003B!\n\027", "com.mygeopay.core.protosB\006Protos" }; 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_com_coinomi_core_protos_PeerAddress_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_com_coinomi_core_protos_PeerAddress_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_coinomi_core_protos_PeerAddress_descriptor, new java.lang.String[] { "IpAddress", "Port", "Services", }); internal_static_com_coinomi_core_protos_EncryptedData_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_com_coinomi_core_protos_EncryptedData_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_coinomi_core_protos_EncryptedData_descriptor, new java.lang.String[] { "InitialisationVector", "EncryptedPrivateKey", }); internal_static_com_coinomi_core_protos_DeterministicKey_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_com_coinomi_core_protos_DeterministicKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_coinomi_core_protos_DeterministicKey_descriptor, new java.lang.String[] { "ChainCode", "Path", "IssuedSubkeys", "LookaheadSize", "IsFollowing", }); internal_static_com_coinomi_core_protos_Key_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_com_coinomi_core_protos_Key_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_coinomi_core_protos_Key_descriptor, new java.lang.String[] { "Type", "SecretBytes", "EncryptedData", "PublicKey", "Label", "DeterministicKey", }); internal_static_com_coinomi_core_protos_TransactionInput_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_com_coinomi_core_protos_TransactionInput_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_coinomi_core_protos_TransactionInput_descriptor, new java.lang.String[] { "TransactionOutPointHash", "TransactionOutPointIndex", "ScriptBytes", "Sequence", "Value", }); internal_static_com_coinomi_core_protos_TransactionOutput_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_com_coinomi_core_protos_TransactionOutput_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_coinomi_core_protos_TransactionOutput_descriptor, new java.lang.String[] { "Value", "ScriptBytes", "SpentByTransactionHash", "SpentByTransactionIndex", }); internal_static_com_coinomi_core_protos_TransactionConfidence_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_com_coinomi_core_protos_TransactionConfidence_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_coinomi_core_protos_TransactionConfidence_descriptor, new java.lang.String[] { "Type", "AppearedAtHeight", "OverridingTransaction", "Depth", "BroadcastBy", "Source", }); internal_static_com_coinomi_core_protos_Transaction_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_com_coinomi_core_protos_Transaction_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_coinomi_core_protos_Transaction_descriptor, new java.lang.String[] { "Version", "Time", "Hash", "Pool", "LockTime", "UpdatedAt", "TransactionInput", "TransactionOutput", "BlockHash", "BlockRelativityOffsets", "Confidence", "TokenId", }); internal_static_com_coinomi_core_protos_AddressStatus_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_com_coinomi_core_protos_AddressStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_coinomi_core_protos_AddressStatus_descriptor, new java.lang.String[] { "Address", "Status", }); internal_static_com_coinomi_core_protos_WalletPocket_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_com_coinomi_core_protos_WalletPocket_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_coinomi_core_protos_WalletPocket_descriptor, new java.lang.String[] { "NetworkIdentifier", "Description", "Key", "LastSeenBlockHash", "LastSeenBlockHeight", "LastSeenBlockTimeSecs", "Transaction", "AddressStatus", "Id", }); internal_static_com_coinomi_core_protos_ScryptParameters_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_com_coinomi_core_protos_ScryptParameters_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_coinomi_core_protos_ScryptParameters_descriptor, new java.lang.String[] { "Salt", "N", "R", "P", }); internal_static_com_coinomi_core_protos_Wallet_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_com_coinomi_core_protos_Wallet_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_coinomi_core_protos_Wallet_descriptor, new java.lang.String[] { "Version", "Seed", "SeedPasswordProtected", "MasterKey", "EncryptionType", "EncryptionParameters", "Pockets", }); } // @@protoc_insertion_point(outer_class_scope) }