コード例 #1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    if (startTime_ == null)
                    {
                        startTime_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
                    }
                    input.ReadMessage(startTime_);
                    break;
                }

                case 18: {
                    if (duration_ == null)
                    {
                        duration_ = new global::Google.Protobuf.WellKnownTypes.Duration();
                    }
                    input.ReadMessage(duration_);
                    break;
                }

                case 26: {
                    if (callOrigin_ == null)
                    {
                        callOrigin_ = new global::HOLMS.Types.PBXConnector.MitelPhoneCircuit();
                    }
                    input.ReadMessage(callOrigin_);
                    break;
                }

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

                case 42: {
                    MainDigitsDialed = input.ReadString();
                    break;
                }

                case 50: {
                    if (callDestination_ == null)
                    {
                        callDestination_ = new global::HOLMS.Types.PBXConnector.MitelPhoneCircuit();
                    }
                    input.ReadMessage(callDestination_);
                    break;
                }
                }
            }
        }
コード例 #2
0
 public void MergeFrom(MitelCallEnded other)
 {
     if (other == null)
     {
         return;
     }
     if (other.startTime_ != null)
     {
         if (startTime_ == null)
         {
             startTime_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         StartTime.MergeFrom(other.StartTime);
     }
     if (other.duration_ != null)
     {
         if (duration_ == null)
         {
             duration_ = new global::Google.Protobuf.WellKnownTypes.Duration();
         }
         Duration.MergeFrom(other.Duration);
     }
     if (other.callOrigin_ != null)
     {
         if (callOrigin_ == null)
         {
             callOrigin_ = new global::HOLMS.Types.PBXConnector.MitelPhoneCircuit();
         }
         CallOrigin.MergeFrom(other.CallOrigin);
     }
     if (other.LeadingDigitsDialed.Length != 0)
     {
         LeadingDigitsDialed = other.LeadingDigitsDialed;
     }
     if (other.MainDigitsDialed.Length != 0)
     {
         MainDigitsDialed = other.MainDigitsDialed;
     }
     if (other.callDestination_ != null)
     {
         if (callDestination_ == null)
         {
             callDestination_ = new global::HOLMS.Types.PBXConnector.MitelPhoneCircuit();
         }
         CallDestination.MergeFrom(other.CallDestination);
     }
 }