Exemple #1
0
 public void MergeFrom(Dependency other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Ver != 0)
     {
         Ver = other.Ver;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.Id.Length != 0)
     {
         Id = other.Id;
     }
     if (other.ResultCode.Length != 0)
     {
         ResultCode = other.ResultCode;
     }
     if (other.duration_ != null)
     {
         if (duration_ == null)
         {
             duration_ = new global::Google.Protobuf.WellKnownTypes.Duration();
         }
         Duration.MergeFrom(other.Duration);
     }
     if (other.success_ != null)
     {
         if (success_ == null)
         {
             success_ = new global::Google.Protobuf.WellKnownTypes.BoolValue();
         }
         Success.MergeFrom(other.Success);
     }
     if (other.Data.Length != 0)
     {
         Data = other.Data;
     }
     if (other.Type.Length != 0)
     {
         Type = other.Type;
     }
     if (other.Target.Length != 0)
     {
         Target = other.Target;
     }
     properties_.Add(other.properties_);
     measurements_.Add(other.measurements_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 8: {
                    Id = input.ReadInt32();
                    break;
                }

                case 16: {
                    OuterId = input.ReadInt32();
                    break;
                }

                case 26: {
                    TypeName = input.ReadString();
                    break;
                }

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

                case 42: {
                    if (hasFullStack_ == null)
                    {
                        hasFullStack_ = new global::Google.Protobuf.WellKnownTypes.BoolValue();
                    }
                    input.ReadMessage(hasFullStack_);
                    break;
                }

                case 50: {
                    Stack = input.ReadString();
                    break;
                }

                case 58: {
                    parsedStack_.AddEntriesFrom(input, _repeated_parsedStack_codec);
                    break;
                }
                }
            }
        }
 public void MergeFrom(Request other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Ver != 0)
     {
         Ver = other.Ver;
     }
     if (other.Id.Length != 0)
     {
         Id = other.Id;
     }
     if (other.duration_ != null)
     {
         if (duration_ == null)
         {
             duration_ = new global::Google.Protobuf.WellKnownTypes.Duration();
         }
         Duration.MergeFrom(other.Duration);
     }
     if (other.ResponseCode.Length != 0)
     {
         ResponseCode = other.ResponseCode;
     }
     if (other.success_ != null)
     {
         if (success_ == null)
         {
             success_ = new global::Google.Protobuf.WellKnownTypes.BoolValue();
         }
         Success.MergeFrom(other.Success);
     }
     if (other.Source.Length != 0)
     {
         Source = other.Source;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.Url.Length != 0)
     {
         Url = other.Url;
     }
     properties_.Add(other.properties_);
     measurements_.Add(other.measurements_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
 public void MergeFrom(ExceptionDetails other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Id != 0)
     {
         Id = other.Id;
     }
     if (other.OuterId != 0)
     {
         OuterId = other.OuterId;
     }
     if (other.TypeName.Length != 0)
     {
         TypeName = other.TypeName;
     }
     if (other.Message.Length != 0)
     {
         Message = other.Message;
     }
     if (other.hasFullStack_ != null)
     {
         if (hasFullStack_ == null)
         {
             hasFullStack_ = new global::Google.Protobuf.WellKnownTypes.BoolValue();
         }
         HasFullStack.MergeFrom(other.HasFullStack);
     }
     if (other.Stack.Length != 0)
     {
         Stack = other.Stack;
     }
     parsedStack_.Add(other.parsedStack_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 8: {
                    Ver = input.ReadInt32();
                    break;
                }

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

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

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

                case 42: {
                    if (success_ == null)
                    {
                        success_ = new global::Google.Protobuf.WellKnownTypes.BoolValue();
                    }
                    input.ReadMessage(success_);
                    break;
                }

                case 50: {
                    Source = input.ReadString();
                    break;
                }

                case 58: {
                    Name = input.ReadString();
                    break;
                }

                case 66: {
                    Url = input.ReadString();
                    break;
                }

                case 74: {
                    properties_.AddEntriesFrom(input, _map_properties_codec);
                    break;
                }

                case 82: {
                    measurements_.AddEntriesFrom(input, _map_measurements_codec);
                    break;
                }
                }
            }
        }