public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.openwallet.core.protos.Protos.TransactionConfidence parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.openwallet.core.protos.Protos.TransactionConfidence) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.openwallet.core.protos.Protos.TransactionConfidence) { return mergeFrom((com.openwallet.core.protos.Protos.TransactionConfidence)other); } else { super.mergeFrom(other); return this; } }
subBuilder.mergeFrom(confidence_); confidence_ = subBuilder.buildPartial();
/** * <code>optional .com.openwallet.core.protos.TransactionConfidence confidence = 10;</code> * * <pre> * Data describing where the transaction is in the chain. * </pre> */ public Builder mergeConfidence(com.openwallet.core.protos.Protos.TransactionConfidence value) { if (confidenceBuilder_ == null) { if (((bitField0_ & 0x00000800) == 0x00000800) && confidence_ != com.openwallet.core.protos.Protos.TransactionConfidence.getDefaultInstance()) { confidence_ = com.openwallet.core.protos.Protos.TransactionConfidence.newBuilder(confidence_).mergeFrom(value).buildPartial(); } else { confidence_ = value; } onChanged(); } else { confidenceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000800; return this; } /**
public Builder clone() { return create().mergeFrom(buildPartial()); }
public static Builder newBuilder(com.openwallet.core.protos.Protos.TransactionConfidence prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); }