private Map<UUID, Protos.PaymentDetails> createUnmatchedPaymentDetails(Set<PaymentData> unmatchedBip70PaymentDatas) { // Create a Map of all the unmatched paymentDetails Map<UUID, Protos.PaymentDetails> unmatchedPaymentDetailsMap = Maps.newHashMap(); for (PaymentData unmatchedBip70PaymentData : unmatchedBip70PaymentDatas) { Protos.PaymentRequest paymentRequest = ((PaymentRequestData) unmatchedBip70PaymentData).getPaymentRequest().get(); try { Protos.PaymentDetails paymentDetails = Protos.PaymentDetails.parseFrom(paymentRequest.getSerializedPaymentDetails()); unmatchedPaymentDetailsMap.put(((PaymentRequestData) unmatchedBip70PaymentData).getUuid(), paymentDetails); } catch (InvalidProtocolBufferException ipbe) { // Do nothing ipbe.printStackTrace(); } } return unmatchedPaymentDetailsMap; }
if (!request.hasSerializedPaymentDetails()) throw new PaymentRequestException("No PaymentDetails"); paymentDetails = Protos.PaymentDetails.newBuilder().mergeFrom(request.getSerializedPaymentDetails()).build(); if (paymentDetails == null) throw new PaymentRequestException("Invalid PaymentDetails");
if (!request.hasSerializedPaymentDetails()) throw new PaymentProtocolException("No PaymentDetails"); paymentDetails = Protos.PaymentDetails.newBuilder().mergeFrom(request.getSerializedPaymentDetails()).build(); if (paymentDetails == null) throw new PaymentProtocolException("Invalid PaymentDetails");
if (!request.hasSerializedPaymentDetails()) throw new PaymentProtocolException("No PaymentDetails"); paymentDetails = Protos.PaymentDetails.newBuilder().mergeFrom(request.getSerializedPaymentDetails()).build(); if (paymentDetails == null) throw new PaymentProtocolException("Invalid PaymentDetails");
if (!request.hasSerializedPaymentDetails()) throw new PaymentProtocolException("No PaymentDetails"); paymentDetails = Protos.PaymentDetails.newBuilder().mergeFrom(request.getSerializedPaymentDetails()).build(); if (paymentDetails == null) throw new PaymentProtocolException("Invalid PaymentDetails");
if (!request.hasSerializedPaymentDetails()) throw new PaymentProtocolException("No PaymentDetails"); paymentDetails = Protos.PaymentDetails.newBuilder().mergeFrom(request.getSerializedPaymentDetails()).build(); if (paymentDetails == null) throw new PaymentProtocolException("Invalid PaymentDetails");
if (!request.hasSerializedPaymentDetails()) throw new PaymentProtocolException("No PaymentDetails"); paymentDetails = Protos.PaymentDetails.newBuilder().mergeFrom(request.getSerializedPaymentDetails()).build(); if (paymentDetails == null) throw new PaymentProtocolException("Invalid PaymentDetails");
public Builder mergeFrom(org.bitcoin.protocols.payments.Protos.PaymentRequest other) { if (other == org.bitcoin.protocols.payments.Protos.PaymentRequest.getDefaultInstance()) return this; if (other.hasPaymentDetailsVersion()) { setPaymentDetailsVersion(other.getPaymentDetailsVersion()); } if (other.hasPkiType()) { bitField0_ |= 0x00000002; pkiType_ = other.pkiType_; onChanged(); } if (other.hasPkiData()) { setPkiData(other.getPkiData()); } if (other.hasSerializedPaymentDetails()) { setSerializedPaymentDetails(other.getSerializedPaymentDetails()); } if (other.hasSignature()) { setSignature(other.getSignature()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.bitcoin.protocols.payments.Protos.PaymentRequest other) { if (other == org.bitcoin.protocols.payments.Protos.PaymentRequest.getDefaultInstance()) return this; if (other.hasPaymentDetailsVersion()) { setPaymentDetailsVersion(other.getPaymentDetailsVersion()); } if (other.hasPkiType()) { bitField0_ |= 0x00000002; pkiType_ = other.pkiType_; onChanged(); } if (other.hasPkiData()) { setPkiData(other.getPkiData()); } if (other.hasSerializedPaymentDetails()) { setSerializedPaymentDetails(other.getSerializedPaymentDetails()); } if (other.hasSignature()) { setSignature(other.getSignature()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.bitcoin.protocols.payments.Protos.PaymentRequest other) { if (other == org.bitcoin.protocols.payments.Protos.PaymentRequest.getDefaultInstance()) return this; if (other.hasPaymentDetailsVersion()) { setPaymentDetailsVersion(other.getPaymentDetailsVersion()); } if (other.hasPkiType()) { bitField0_ |= 0x00000002; pkiType_ = other.pkiType_; onChanged(); } if (other.hasPkiData()) { setPkiData(other.getPkiData()); } if (other.hasSerializedPaymentDetails()) { setSerializedPaymentDetails(other.getSerializedPaymentDetails()); } if (other.hasSignature()) { setSignature(other.getSignature()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.bitcoin.protocols.payments.Protos.PaymentRequest other) { if (other == org.bitcoin.protocols.payments.Protos.PaymentRequest.getDefaultInstance()) return this; if (other.hasPaymentDetailsVersion()) { setPaymentDetailsVersion(other.getPaymentDetailsVersion()); } if (other.hasPkiType()) { bitField0_ |= 0x00000002; pkiType_ = other.pkiType_; onChanged(); } if (other.hasPkiData()) { setPkiData(other.getPkiData()); } if (other.hasSerializedPaymentDetails()) { setSerializedPaymentDetails(other.getSerializedPaymentDetails()); } if (other.hasSignature()) { setSignature(other.getSignature()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.bitcoin.protocols.payments.Protos.PaymentRequest other) { if (other == org.bitcoin.protocols.payments.Protos.PaymentRequest.getDefaultInstance()) return this; if (other.hasPaymentDetailsVersion()) { setPaymentDetailsVersion(other.getPaymentDetailsVersion()); } if (other.hasPkiType()) { bitField0_ |= 0x00000002; pkiType_ = other.pkiType_; onChanged(); } if (other.hasPkiData()) { setPkiData(other.getPkiData()); } if (other.hasSerializedPaymentDetails()) { setSerializedPaymentDetails(other.getSerializedPaymentDetails()); } if (other.hasSignature()) { setSignature(other.getSignature()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
/** * <code>required bytes serialized_payment_details = 4;</code> * * <pre> * PaymentDetails * </pre> */ public Builder clearSerializedPaymentDetails() { bitField0_ = (bitField0_ & ~0x00000008); serializedPaymentDetails_ = getDefaultInstance().getSerializedPaymentDetails(); onChanged(); return this; }
/** * <code>required bytes serialized_payment_details = 4;</code> * * <pre> * PaymentDetails * </pre> */ public Builder clearSerializedPaymentDetails() { bitField0_ = (bitField0_ & ~0x00000008); serializedPaymentDetails_ = getDefaultInstance().getSerializedPaymentDetails(); onChanged(); return this; }
/** * <code>required bytes serialized_payment_details = 4;</code> * * <pre> * PaymentDetails * </pre> */ public Builder clearSerializedPaymentDetails() { bitField0_ = (bitField0_ & ~0x00000008); serializedPaymentDetails_ = getDefaultInstance().getSerializedPaymentDetails(); onChanged(); return this; }
/** * <code>required bytes serialized_payment_details = 4;</code> * * <pre> * PaymentDetails * </pre> */ public Builder clearSerializedPaymentDetails() { bitField0_ = (bitField0_ & ~0x00000008); serializedPaymentDetails_ = getDefaultInstance().getSerializedPaymentDetails(); onChanged(); return this; }
/** * <code>required bytes serialized_payment_details = 4;</code> * * <pre> * PaymentDetails * </pre> */ public Builder clearSerializedPaymentDetails() { bitField0_ = (bitField0_ & ~0x00000008); serializedPaymentDetails_ = getDefaultInstance().getSerializedPaymentDetails(); onChanged(); return this; }