Example #1
0
 public void MergeFrom(ManagmentReportingSvcBatchReportRequest other)
 {
     if (other == null)
     {
         return;
     }
     properties_.Add(other.properties_);
     if (other.currentTimeManifest_ != null)
     {
         if (currentTimeManifest_ == null)
         {
             currentTimeManifest_ = new global::HOLMS.Types.Reporting.ReportParams.ManagementCurrentTimeReportManifest();
         }
         CurrentTimeManifest.MergeFrom(other.CurrentTimeManifest);
     }
     if (other.clockTimeRangeManifest_ != null)
     {
         if (clockTimeRangeManifest_ == null)
         {
             clockTimeRangeManifest_ = new global::HOLMS.Types.Reporting.ReportParams.ManagementClockTimeRangeReportManifest();
         }
         ClockTimeRangeManifest.MergeFrom(other.ClockTimeRangeManifest);
     }
     if (other.opsdateRangeManifest_ != null)
     {
         if (opsdateRangeManifest_ == null)
         {
             opsdateRangeManifest_ = new global::HOLMS.Types.Reporting.ReportParams.ManagementOpsdateRangeReportManifest();
         }
         OpsdateRangeManifest.MergeFrom(other.OpsdateRangeManifest);
     }
 }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    properties_.AddEntriesFrom(input, _repeated_properties_codec);
                    break;
                }

                case 18: {
                    if (currentTimeManifest_ == null)
                    {
                        currentTimeManifest_ = new global::HOLMS.Types.Reporting.ReportParams.ManagementCurrentTimeReportManifest();
                    }
                    input.ReadMessage(currentTimeManifest_);
                    break;
                }

                case 26: {
                    if (clockTimeRangeManifest_ == null)
                    {
                        clockTimeRangeManifest_ = new global::HOLMS.Types.Reporting.ReportParams.ManagementClockTimeRangeReportManifest();
                    }
                    input.ReadMessage(clockTimeRangeManifest_);
                    break;
                }

                case 34: {
                    if (opsdateRangeManifest_ == null)
                    {
                        opsdateRangeManifest_ = new global::HOLMS.Types.Reporting.ReportParams.ManagementOpsdateRangeReportManifest();
                    }
                    input.ReadMessage(opsdateRangeManifest_);
                    break;
                }

                case 42: {
                    if (singleDateManifest_ == null)
                    {
                        singleDateManifest_ = new global::HOLMS.Types.Reporting.ReportParams.SingleDateReportManifest();
                    }
                    input.ReadMessage(singleDateManifest_);
                    break;
                }
                }
            }
        }