Пример #1
0
        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.TenancyConfig.Indicators.OccupancyFactorConfigIndicator();
                    }
                    input.ReadMessage(entityId_);
                    break;
                }

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

                case 25: {
                    PricingFactor = input.ReadDouble();
                    break;
                }

                case 32: {
                    Horizon = input.ReadInt32();
                    break;
                }

                case 41: {
                    FactorRate = input.ReadDouble();
                    break;
                }

                case 48: {
                    OcuupancyRangeMin = input.ReadInt32();
                    break;
                }

                case 56: {
                    OccupancyRangeMax = input.ReadInt32();
                    break;
                }

                case 65: {
                    Slope = input.ReadDouble();
                    break;
                }
                }
            }
        }
Пример #2
0
 public void MergeFrom(OccupancyFactorConfig other)
 {
     if (other == null)
     {
         return;
     }
     if (other.entityId_ != null)
     {
         if (entityId_ == null)
         {
             entityId_ = new global::HOLMS.Types.TenancyConfig.Indicators.OccupancyFactorConfigIndicator();
         }
         EntityId.MergeFrom(other.EntityId);
     }
     if (other.OccupancyRangeName.Length != 0)
     {
         OccupancyRangeName = other.OccupancyRangeName;
     }
     if (other.PricingFactor != 0D)
     {
         PricingFactor = other.PricingFactor;
     }
     if (other.Horizon != 0)
     {
         Horizon = other.Horizon;
     }
     if (other.FactorRate != 0D)
     {
         FactorRate = other.FactorRate;
     }
     if (other.OcuupancyRangeMin != 0)
     {
         OcuupancyRangeMin = other.OcuupancyRangeMin;
     }
     if (other.OccupancyRangeMax != 0)
     {
         OccupancyRangeMax = other.OccupancyRangeMax;
     }
     if (other.Slope != 0D)
     {
         Slope = other.Slope;
     }
 }