public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (amount_ == null)
                    {
                        amount_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
                    }
                    input.ReadMessage(amount_);
                    break;
                }

                case 16: {
                    IsCanceled = input.ReadBool();
                    break;
                }

                case 24: {
                    paymentType_ = (global::HOLMS.Types.Folio.PaymentType)input.ReadEnum();
                    break;
                }

                case 34: {
                    if (receivedBy_ == null)
                    {
                        receivedBy_ = new global::HOLMS.Types.IAM.StaffMemberIndicator();
                    }
                    input.ReadMessage(receivedBy_);
                    break;
                }

                case 42: {
                    if (postedAt_ == null)
                    {
                        postedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
                    }
                    input.ReadMessage(postedAt_);
                    break;
                }

                case 50: {
                    if (entityId_ == null)
                    {
                        entityId_ = new global::HOLMS.Types.Folio.FolioCheckCashPaymentIndicator();
                    }
                    input.ReadMessage(entityId_);
                    break;
                }
                }
            }
        }
 public void MergeFrom(FolioCheckCashPayment other)
 {
     if (other == null)
     {
         return;
     }
     if (other.amount_ != null)
     {
         if (amount_ == null)
         {
             amount_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         Amount.MergeFrom(other.Amount);
     }
     if (other.IsCanceled != false)
     {
         IsCanceled = other.IsCanceled;
     }
     if (other.PaymentType != 0)
     {
         PaymentType = other.PaymentType;
     }
     if (other.receivedBy_ != null)
     {
         if (receivedBy_ == null)
         {
             receivedBy_ = new global::HOLMS.Types.IAM.StaffMemberIndicator();
         }
         ReceivedBy.MergeFrom(other.ReceivedBy);
     }
     if (other.postedAt_ != null)
     {
         if (postedAt_ == null)
         {
             postedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         PostedAt.MergeFrom(other.PostedAt);
     }
     if (other.entityId_ != null)
     {
         if (entityId_ == null)
         {
             entityId_ = new global::HOLMS.Types.Folio.FolioCheckCashPaymentIndicator();
         }
         EntityId.MergeFrom(other.EntityId);
     }
 }