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; }
/** * <code>repeated .com.openwallet.core.protos.AddressStatus address_status = 8;</code> */ public com.openwallet.core.protos.Protos.AddressStatus.Builder addAddressStatusBuilder() { return getAddressStatusFieldBuilder().addBuilder( com.openwallet.core.protos.Protos.AddressStatus.getDefaultInstance()); } /**
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); }
AbstractAddress addr = coinType.newAddress(sp.getAddress()); AddressStatus status = new AddressStatus(addr, sp.getStatus()); pocket.commitAddressStatus(status);
public com.openwallet.core.protos.Protos.AddressStatus buildPartial() { com.openwallet.core.protos.Protos.AddressStatus result = new com.openwallet.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 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 Builder mergeFrom(com.openwallet.core.protos.Protos.AddressStatus other) { if (other == com.openwallet.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; }
/** * <code>required string status = 2;</code> * * <pre> * The address status * </pre> */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000002); status_ = getDefaultInstance().getStatus(); onChanged(); return this; } /**
public com.openwallet.core.protos.Protos.AddressStatus getDefaultInstanceForType() { return com.openwallet.core.protos.Protos.AddressStatus.getDefaultInstance(); }
/** * <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>repeated .com.openwallet.core.protos.AddressStatus address_status = 8;</code> */ public com.openwallet.core.protos.Protos.AddressStatus.Builder addAddressStatusBuilder( int index) { return getAddressStatusFieldBuilder().addBuilder( index, com.openwallet.core.protos.Protos.AddressStatus.getDefaultInstance()); } /**