/** * <code>repeated .com.openwallet.core.protos.TransactionInput transaction_input = 6;</code> */ public com.openwallet.core.protos.Protos.TransactionInput.Builder addTransactionInputBuilder() { return getTransactionInputFieldBuilder().addBuilder( com.openwallet.core.protos.Protos.TransactionInput.getDefaultInstance()); } /**
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); }
byte[] scriptBytes = inputProto.getScriptBytes().toByteArray(); TransactionOutPoint outpoint = getTransactionOutPoint(params, inputProto.getTransactionOutPointIndex(), inputProto.getTransactionOutPointHash() ); Coin value = inputProto.hasValue() ? Coin.valueOf(inputProto.getValue()) : null; TransactionInput input = new TransactionInput(params, tx, scriptBytes, outpoint, value); if (inputProto.hasSequence()) { input.setSequenceNumber(inputProto.getSequence());
public com.openwallet.core.protos.Protos.TransactionInput buildPartial() { com.openwallet.core.protos.Protos.TransactionInput result = new com.openwallet.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 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; }
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 Builder mergeFrom(com.openwallet.core.protos.Protos.TransactionInput other) { if (other == com.openwallet.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 com.openwallet.core.protos.Protos.TransactionInput getDefaultInstanceForType() { return com.openwallet.core.protos.Protos.TransactionInput.getDefaultInstance(); }
/** * <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; }
/** * <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; }
/** * <code>repeated .com.openwallet.core.protos.TransactionInput transaction_input = 6;</code> */ public com.openwallet.core.protos.Protos.TransactionInput.Builder addTransactionInputBuilder( int index) { return getTransactionInputFieldBuilder().addBuilder( index, com.openwallet.core.protos.Protos.TransactionInput.getDefaultInstance()); } /**