public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasPayment()) { memoizedIsInitialized = 0; return false; } if (!getPayment().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; }
public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasPayment()) { memoizedIsInitialized = 0; return false; } if (!getPayment().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; }
public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasPayment()) { memoizedIsInitialized = 0; return false; } if (!getPayment().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; }
public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasPayment()) { memoizedIsInitialized = 0; return false; } if (!getPayment().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; }
public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasPayment()) { memoizedIsInitialized = 0; return false; } if (!getPayment().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; }
public Builder mergeFrom(org.bitcoin.protocols.payments.Protos.PaymentACK other) { if (other == org.bitcoin.protocols.payments.Protos.PaymentACK.getDefaultInstance()) return this; if (other.hasPayment()) { mergePayment(other.getPayment()); } if (other.hasMemo()) { bitField0_ |= 0x00000002; memo_ = other.memo_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.bitcoin.protocols.payments.Protos.PaymentACK other) { if (other == org.bitcoin.protocols.payments.Protos.PaymentACK.getDefaultInstance()) return this; if (other.hasPayment()) { mergePayment(other.getPayment()); } if (other.hasMemo()) { bitField0_ |= 0x00000002; memo_ = other.memo_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.bitcoin.protocols.payments.Protos.PaymentACK other) { if (other == org.bitcoin.protocols.payments.Protos.PaymentACK.getDefaultInstance()) return this; if (other.hasPayment()) { mergePayment(other.getPayment()); } if (other.hasMemo()) { bitField0_ |= 0x00000002; memo_ = other.memo_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.bitcoin.protocols.payments.Protos.PaymentACK other) { if (other == org.bitcoin.protocols.payments.Protos.PaymentACK.getDefaultInstance()) return this; if (other.hasPayment()) { mergePayment(other.getPayment()); } if (other.hasMemo()) { bitField0_ |= 0x00000002; memo_ = other.memo_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.bitcoin.protocols.payments.Protos.PaymentACK other) { if (other == org.bitcoin.protocols.payments.Protos.PaymentACK.getDefaultInstance()) return this; if (other.hasPayment()) { mergePayment(other.getPayment()); } if (other.hasMemo()) { bitField0_ |= 0x00000002; memo_ = other.memo_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
@Test public void testPaymentAck() throws Exception { // Create Payment paymentMessage = Protos.Payment.newBuilder().build(); PaymentACK paymentAck = PaymentProtocol.createPaymentAck(paymentMessage, MEMO); byte[] paymentAckBytes = paymentAck.toByteArray(); // Parse PaymentACK parsedPaymentAck = PaymentACK.parseFrom(paymentAckBytes); assertEquals(paymentMessage, parsedPaymentAck.getPayment()); assertEquals(MEMO, parsedPaymentAck.getMemo()); } }