/** * <code>required bytes script_bytes = 3;</code> * * <pre> * Script of transaction output * </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 out_point_hash = 1;</code> * * <pre> * Hash of the transaction this input is using. * </pre> */ public Builder setOutPointHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; outPointHash_ = value; onChanged(); return this; } /**
/** * <code>optional bool is_generated = 5 [default = false];</code> * * <pre> * If this output is from a coin base or coin stake transaction * </pre> */ public Builder setIsGenerated(boolean value) { bitField0_ |= 0x00000010; isGenerated_ = value; onChanged(); return this; } /**
/** * <code>required int64 value = 4;</code> * * <pre> * Value of theoutput * </pre> */ public Builder setValue(long value) { bitField0_ |= 0x00000008; value_ = value; onChanged(); return this; } /**
/** * <code>optional bool is_generated = 5 [default = false];</code> * * <pre> * If this output is from a coin base or coin stake transaction * </pre> */ public Builder clearIsGenerated() { bitField0_ = (bitField0_ & ~0x00000010); isGenerated_ = false; onChanged(); return this; }
/** * <code>required uint32 out_point_index = 2;</code> * * <pre> * Index of transaction output used by this input. * </pre> */ public Builder clearOutPointIndex() { bitField0_ = (bitField0_ & ~0x00000002); outPointIndex_ = 0; onChanged(); return this; }
/** * <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; }
/** * <code>required int64 value = 4;</code> * * <pre> * Value of theoutput * </pre> */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000008); value_ = 0L; onChanged(); return this; }
/** * <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>required uint32 out_point_index = 2;</code> * * <pre> * Index of transaction output used by this input. * </pre> */ public Builder setOutPointIndex(int value) { bitField0_ |= 0x00000002; outPointIndex_ = value; onChanged(); return this; } /**