Example #1
0
 public void MergeFrom(TimeFactorConfig other)
 {
     if (other == null)
     {
         return;
     }
     if (other.entityId_ != null)
     {
         if (entityId_ == null)
         {
             entityId_ = new global::HOLMS.Types.TenancyConfig.Indicators.TimeFactorConfigIndicator();
         }
         EntityId.MergeFrom(other.EntityId);
     }
     if (other.TimeIntervalName.Length != 0)
     {
         TimeIntervalName = other.TimeIntervalName;
     }
     if (other.FatorRate != 0D)
     {
         FatorRate = other.FatorRate;
     }
     if (other.HourOfTheDay != 0)
     {
         HourOfTheDay = other.HourOfTheDay;
     }
 }
Example #2
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.TimeFactorConfigIndicator();
                    }
                    input.ReadMessage(entityId_);
                    break;
                }

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

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

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