Пример #1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    if (printerData_ == null)
                    {
                        PrinterData = new global::Xla.HloProfilePrinterData();
                    }
                    input.ReadMessage(PrinterData);
                    break;
                }

                case 18:
                case 16: {
                    profileCounters_.AddEntriesFrom(input, _repeated_profileCounters_codec);
                    break;
                }
                }
            }
        }
Пример #2
0
 public void MergeFrom(HloExecutionProfileData other)
 {
     if (other == null)
     {
         return;
     }
     if (other.printerData_ != null)
     {
         if (printerData_ == null)
         {
             PrinterData = new global::Xla.HloProfilePrinterData();
         }
         PrinterData.MergeFrom(other.PrinterData);
     }
     profileCounters_.Add(other.profileCounters_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }