/** * <code>repeated .com.openwallet.core.protos.UnspentOutput unspent_output = 10;</code> */ public com.openwallet.core.protos.Protos.UnspentOutput.Builder addUnspentOutputBuilder( int index) { return getUnspentOutputFieldBuilder().addBuilder( index, com.openwallet.core.protos.Protos.UnspentOutput.getDefaultInstance()); } /**
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, outPointHash_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, outPointIndex_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, scriptBytes_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt64(4, value_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBool(5, isGenerated_); } getUnknownFields().writeTo(output); }
proto.getValue(), byteStringToHash(proto.getOutPointHash()), proto.getOutPointIndex() & 0xFFFFFFFFL, proto.getScriptBytes().toByteArray()); pocket.addUnspentOutput( new OutPointOutput(utxo, proto.getIsGenerated()));
public com.openwallet.core.protos.Protos.UnspentOutput buildPartial() { com.openwallet.core.protos.Protos.UnspentOutput result = new com.openwallet.core.protos.Protos.UnspentOutput(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.outPointHash_ = outPointHash_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.outPointIndex_ = outPointIndex_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.scriptBytes_ = scriptBytes_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.value_ = value_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.isGenerated_ = isGenerated_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, outPointHash_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, outPointIndex_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, scriptBytes_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, value_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, isGenerated_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
public Builder mergeFrom(com.openwallet.core.protos.Protos.UnspentOutput other) { if (other == com.openwallet.core.protos.Protos.UnspentOutput.getDefaultInstance()) return this; if (other.hasOutPointHash()) { setOutPointHash(other.getOutPointHash()); } if (other.hasOutPointIndex()) { setOutPointIndex(other.getOutPointIndex()); } if (other.hasScriptBytes()) { setScriptBytes(other.getScriptBytes()); } if (other.hasValue()) { setValue(other.getValue()); } if (other.hasIsGenerated()) { setIsGenerated(other.getIsGenerated()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public com.openwallet.core.protos.Protos.UnspentOutput getDefaultInstanceForType() { return com.openwallet.core.protos.Protos.UnspentOutput.getDefaultInstance(); }
/** * <code>required bytes script_bytes = 3;</code> * * <pre> * Script of transaction output * </pre> */ public Builder clearScriptBytes() { bitField0_ = (bitField0_ & ~0x00000004); scriptBytes_ = getDefaultInstance().getScriptBytes(); onChanged(); return this; }
/** * <code>repeated .com.openwallet.core.protos.UnspentOutput unspent_output = 10;</code> */ public com.openwallet.core.protos.Protos.UnspentOutput.Builder addUnspentOutputBuilder() { return getUnspentOutputFieldBuilder().addBuilder( com.openwallet.core.protos.Protos.UnspentOutput.getDefaultInstance()); } /**
/** * <code>required bytes out_point_hash = 1;</code> * * <pre> * Hash of the transaction this input is using. * </pre> */ public Builder clearOutPointHash() { bitField0_ = (bitField0_ & ~0x00000001); outPointHash_ = getDefaultInstance().getOutPointHash(); onChanged(); return this; }