public void MergeFrom(ClosedMerchantBatch other) { if (other == null) { return; } if (other.entityId_ != null) { if (entityId_ == null) { entityId_ = new global::HOLMS.Types.Money.Cards.Transactions.ClosedMerchantBatchIndicator(); } EntityId.MergeFrom(other.EntityId); } if (other.merchantId_ != null) { if (merchantId_ == null) { merchantId_ = new global::HOLMS.Types.Money.Cards.CardMerchantIndicator(); } MerchantId.MergeFrom(other.MerchantId); } if (other.MerchantName.Length != 0) { MerchantName = other.MerchantName; } if (other.Result != 0) { Result = other.Result; } if (other.ProcessorBatchId != 0) { ProcessorBatchId = other.ProcessorBatchId; } if (other.TransactionCount != 0) { TransactionCount = other.TransactionCount; } if (other.totalAmount_ != null) { if (totalAmount_ == null) { totalAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } TotalAmount.MergeFrom(other.TotalAmount); } if (other.createdAt_ != null) { if (createdAt_ == null) { createdAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } CreatedAt.MergeFrom(other.CreatedAt); } captures_.Add(other.captures_); refunds_.Add(other.refunds_); }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (entityId_ == null) { entityId_ = new global::HOLMS.Types.Money.Cards.Transactions.ClosedMerchantBatchIndicator(); } input.ReadMessage(entityId_); break; } case 18: { if (merchantId_ == null) { merchantId_ = new global::HOLMS.Types.Money.Cards.CardMerchantIndicator(); } input.ReadMessage(merchantId_); break; } case 26: { MerchantName = input.ReadString(); break; } case 32: { result_ = (global::HOLMS.Types.Money.Cards.Transactions.ProcessorTransactionResult)input.ReadEnum(); break; } case 40: { ProcessorBatchId = input.ReadInt32(); break; } case 48: { TransactionCount = input.ReadInt32(); break; } case 58: { if (totalAmount_ == null) { totalAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } input.ReadMessage(totalAmount_); break; } case 66: { if (createdAt_ == null) { createdAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(createdAt_); break; } case 74: { captures_.AddEntriesFrom(input, _repeated_captures_codec); break; } case 82: { refunds_.AddEntriesFrom(input, _repeated_refunds_codec); break; } } } }