Beispiel #1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    if (booking_ == null)
                    {
                        booking_ = new global::HOLMS.Types.Booking.Groups.GroupBooking();
                    }
                    input.ReadMessage(booking_);
                    break;
                }

                case 18: {
                    GroupName = input.ReadString();
                    break;
                }

                case 26: {
                    GroupNumber = input.ReadString();
                    break;
                }

                case 34: {
                    GroupContactName = input.ReadString();
                    break;
                }

                case 40: {
                    groupType_ = (global::HOLMS.Types.CRM.Groups.GroupType)input.ReadEnum();
                    break;
                }

                case 50: {
                    if (groupProperty_ == null)
                    {
                        groupProperty_ = new global::HOLMS.Types.TenancyConfig.Indicators.PropertyIndicator();
                    }
                    input.ReadMessage(groupProperty_);
                    break;
                }

                case 58: {
                    quantities_.AddEntriesFrom(input, _repeated_quantities_codec);
                    break;
                }
                }
            }
        }
        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.CRM.Groups.GroupIndicator();
                    }
                    input.ReadMessage(entityId_);
                    break;
                }

                case 18: {
                    Name = input.ReadString();
                    break;
                }

                case 24: {
                    groupType_ = (global::HOLMS.Types.CRM.Groups.GroupType)input.ReadEnum();
                    break;
                }

                case 34: {
                    GroupNumber = input.ReadString();
                    break;
                }

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

                case 48: {
                    Active = input.ReadBool();
                    break;
                }

                case 58: {
                    if (contactInfo_ == null)
                    {
                        contactInfo_ = new global::HOLMS.Types.Primitive.ContactInformation();
                    }
                    input.ReadMessage(contactInfo_);
                    break;
                }

                case 66: {
                    if (property_ == null)
                    {
                        property_ = new global::HOLMS.Types.TenancyConfig.Indicators.PropertyIndicator();
                    }
                    input.ReadMessage(property_);
                    break;
                }
                }
            }
        }