/** * <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>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 int32 index = 6;</code> * * <pre> * The index of this output, used in trimmed transactions * </pre> */ public Builder setIndex(int value) { bitField0_ |= 0x00000020; index_ = value; onChanged(); return this; } /**
/** * <code>optional bool is_spent = 5 [default = false];</code> * * <pre> * If the output is generally spent * </pre> */ public Builder setIsSpent(boolean value) { bitField0_ |= 0x00000010; isSpent_ = 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 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; }
/** * <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; }
/** * <code>optional int32 index = 6;</code> * * <pre> * The index of this output, used in trimmed transactions * </pre> */ public Builder clearIndex() { bitField0_ = (bitField0_ & ~0x00000020); index_ = 0; onChanged(); return this; }
/** * <code>optional bool is_spent = 5 [default = false];</code> * * <pre> * If the output is generally spent * </pre> */ public Builder clearIsSpent() { bitField0_ = (bitField0_ & ~0x00000010); isSpent_ = false; 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; }
/** * <code>required int64 value = 1;</code> */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000001); value_ = 0L; onChanged(); return this; }
/** * <code>required int64 value = 1;</code> */ public Builder setValue(long value) { bitField0_ |= 0x00000001; value_ = value; onChanged(); return this; } /**