/** * <code>repeated .com.openwallet.core.protos.PeerAddress broadcast_by = 5;</code> */ public Builder clearBroadcastBy() { if (broadcastByBuilder_ == null) { broadcastBy_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { broadcastByBuilder_.clear(); } return this; } /**
/** * <code>repeated .com.openwallet.core.protos.PeerAddress broadcast_by = 5;</code> */ public Builder addBroadcastBy(com.openwallet.core.protos.Protos.PeerAddress value) { if (broadcastByBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBroadcastByIsMutable(); broadcastBy_.add(value); onChanged(); } else { broadcastByBuilder_.addMessage(value); } return this; } /**
/** * <code>repeated .com.openwallet.core.protos.PeerAddress broadcast_by = 5;</code> */ public Builder addBroadcastBy( int index, com.openwallet.core.protos.Protos.PeerAddress value) { if (broadcastByBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBroadcastByIsMutable(); broadcastBy_.add(index, value); onChanged(); } else { broadcastByBuilder_.addMessage(index, value); } return this; } /**
broadcastBy_.addAll(other.broadcastBy_); onChanged();
/** * <code>optional bytes overriding_transaction = 3;</code> * * <pre> * If set, hash of the transaction that double spent this one into oblivion. A transaction can be double spent by * multiple transactions in the case of several inputs being re-spent by several transactions but we don't * bother to track them all, just the first. This only makes sense if type = DEAD. * </pre> */ public Builder setOverridingTransaction(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; overridingTransaction_ = value; onChanged(); return this; } /**
/** * <code>repeated .com.openwallet.core.protos.PeerAddress broadcast_by = 5;</code> */ public Builder setBroadcastBy( int index, com.openwallet.core.protos.Protos.PeerAddress value) { if (broadcastByBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBroadcastByIsMutable(); broadcastBy_.set(index, value); onChanged(); } else { broadcastByBuilder_.setMessage(index, value); } return this; } /**
/** * <code>repeated .com.openwallet.core.protos.PeerAddress broadcast_by = 5;</code> */ public Builder addAllBroadcastBy( java.lang.Iterable<? extends com.openwallet.core.protos.Protos.PeerAddress> values) { if (broadcastByBuilder_ == null) { ensureBroadcastByIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, broadcastBy_); onChanged(); } else { broadcastByBuilder_.addAllMessages(values); } return this; } /**
/** * <code>repeated .com.openwallet.core.protos.PeerAddress broadcast_by = 5;</code> */ public Builder setBroadcastBy( int index, com.openwallet.core.protos.Protos.PeerAddress.Builder builderForValue) { if (broadcastByBuilder_ == null) { ensureBroadcastByIsMutable(); broadcastBy_.set(index, builderForValue.build()); onChanged(); } else { broadcastByBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <code>optional .com.openwallet.core.protos.TransactionConfidence.Type type = 1;</code> * * <pre> * This is optional in case we add confidence types to prevent parse errors - backwards compatible. * </pre> */ public Builder setType(com.openwallet.core.protos.Protos.TransactionConfidence.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } /**
/** * <code>repeated .com.openwallet.core.protos.PeerAddress broadcast_by = 5;</code> */ public Builder addBroadcastBy( int index, com.openwallet.core.protos.Protos.PeerAddress.Builder builderForValue) { if (broadcastByBuilder_ == null) { ensureBroadcastByIsMutable(); broadcastBy_.add(index, builderForValue.build()); onChanged(); } else { broadcastByBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <code>optional bytes overriding_transaction = 3;</code> * * <pre> * If set, hash of the transaction that double spent this one into oblivion. A transaction can be double spent by * multiple transactions in the case of several inputs being re-spent by several transactions but we don't * bother to track them all, just the first. This only makes sense if type = DEAD. * </pre> */ public Builder clearOverridingTransaction() { bitField0_ = (bitField0_ & ~0x00000004); overridingTransaction_ = getDefaultInstance().getOverridingTransaction(); onChanged(); return this; }
/** * <code>repeated .com.openwallet.core.protos.PeerAddress broadcast_by = 5;</code> */ public Builder removeBroadcastBy(int index) { if (broadcastByBuilder_ == null) { ensureBroadcastByIsMutable(); broadcastBy_.remove(index); onChanged(); } else { broadcastByBuilder_.remove(index); } return this; } /**
/** * <code>optional int32 appeared_at_height = 2;</code> * * <pre> * If type == BUILDING then this is the chain height at which the transaction was included. * </pre> */ public Builder setAppearedAtHeight(int value) { bitField0_ |= 0x00000002; appearedAtHeight_ = value; onChanged(); return this; } /**
/** * <code>optional int32 depth = 4;</code> * * <pre> * If type == BUILDING then this is the depth of the transaction in the blockchain. * Zero confirmations: depth = 0, one confirmation: depth = 1 etc. * </pre> */ public Builder clearDepth() { bitField0_ = (bitField0_ & ~0x00000008); depth_ = 0; onChanged(); return this; }
/** * <code>optional int32 depth = 4;</code> * * <pre> * If type == BUILDING then this is the depth of the transaction in the blockchain. * Zero confirmations: depth = 0, one confirmation: depth = 1 etc. * </pre> */ public Builder setDepth(int value) { bitField0_ |= 0x00000008; depth_ = value; onChanged(); return this; } /**
/** * <code>repeated .com.openwallet.core.protos.PeerAddress broadcast_by = 5;</code> */ public Builder addBroadcastBy( com.openwallet.core.protos.Protos.PeerAddress.Builder builderForValue) { if (broadcastByBuilder_ == null) { ensureBroadcastByIsMutable(); broadcastBy_.add(builderForValue.build()); onChanged(); } else { broadcastByBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <code>optional .com.openwallet.core.protos.TransactionConfidence.Source source = 6;</code> */ public Builder setSource(com.openwallet.core.protos.Protos.TransactionConfidence.Source value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; source_ = value; onChanged(); return this; } /**
/** * <code>optional .com.openwallet.core.protos.TransactionConfidence.Type type = 1;</code> * * <pre> * This is optional in case we add confidence types to prevent parse errors - backwards compatible. * </pre> */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = com.openwallet.core.protos.Protos.TransactionConfidence.Type.UNKNOWN; onChanged(); return this; }
/** * <code>optional int32 appeared_at_height = 2;</code> * * <pre> * If type == BUILDING then this is the chain height at which the transaction was included. * </pre> */ public Builder clearAppearedAtHeight() { bitField0_ = (bitField0_ & ~0x00000002); appearedAtHeight_ = 0; onChanged(); return this; }
/** * <code>optional .com.openwallet.core.protos.TransactionConfidence.Source source = 6;</code> */ public Builder clearSource() { bitField0_ = (bitField0_ & ~0x00000020); source_ = com.openwallet.core.protos.Protos.TransactionConfidence.Source.SOURCE_UNKNOWN; onChanged(); return this; }