示例#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 8: {
                    Protocol = (global::PKIo.PassProtocol)input.ReadEnum();
                    break;
                }

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

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

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

                case 40: {
                    Status = (global::PKIo.MessageStatus)input.ReadEnum();
                    break;
                }

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

                case 56: {
                    ImageId = input.ReadUInt32();
                    break;
                }

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

                case 74: {
                    if (localizedTitle_ == null)
                    {
                        LocalizedTitle = new global::PKIo.LocalizedString();
                    }
                    input.ReadMessage(LocalizedTitle);
                    break;
                }

                case 82: {
                    Content = input.ReadString();
                    break;
                }

                case 90: {
                    if (localizedContent_ == null)
                    {
                        LocalizedContent = new global::PKIo.LocalizedString();
                    }
                    input.ReadMessage(LocalizedContent);
                    break;
                }

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

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

                case 114: {
                    if (filter_ == null)
                    {
                        Filter = new global::PKIo.Filter();
                    }
                    input.ReadMessage(Filter);
                    break;
                }

                case 120: {
                    RecordsMatchingSegment = input.ReadUInt32();
                    break;
                }

                case 128: {
                    RecordsSuccessfullyUpdate = input.ReadUInt32();
                    break;
                }

                case 136: {
                    RecordsFailedToUpdate = input.ReadUInt32();
                    break;
                }

                case 146: {
                    if (created_ == null)
                    {
                        Created = new global::Google.Protobuf.WellKnownTypes.Timestamp();
                    }
                    input.ReadMessage(Created);
                    break;
                }
                }
            }
        }
示例#2
0
 public void MergeFrom(Message other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Protocol != global::PKIo.PassProtocol.DoNotUse)
     {
         Protocol = other.Protocol;
     }
     if (other.CompanyId.Length != 0)
     {
         CompanyId = other.CompanyId;
     }
     if (other.ClassId.Length != 0)
     {
         ClassId = other.ClassId;
     }
     if (other.Uuid.Length != 0)
     {
         Uuid = other.Uuid;
     }
     if (other.Status != global::PKIo.MessageStatus.Created)
     {
         Status = other.Status;
     }
     if (other.Warning.Length != 0)
     {
         Warning = other.Warning;
     }
     if (other.ImageId != 0)
     {
         ImageId = other.ImageId;
     }
     if (other.Title.Length != 0)
     {
         Title = other.Title;
     }
     if (other.localizedTitle_ != null)
     {
         if (localizedTitle_ == null)
         {
             LocalizedTitle = new global::PKIo.LocalizedString();
         }
         LocalizedTitle.MergeFrom(other.LocalizedTitle);
     }
     if (other.Content.Length != 0)
     {
         Content = other.Content;
     }
     if (other.localizedContent_ != null)
     {
         if (localizedContent_ == null)
         {
             LocalizedContent = new global::PKIo.LocalizedString();
         }
         LocalizedContent.MergeFrom(other.LocalizedContent);
     }
     if (other.startDate_ != null)
     {
         if (startDate_ == null)
         {
             StartDate = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         StartDate.MergeFrom(other.StartDate);
     }
     if (other.endDate_ != null)
     {
         if (endDate_ == null)
         {
             EndDate = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         EndDate.MergeFrom(other.EndDate);
     }
     if (other.filter_ != null)
     {
         if (filter_ == null)
         {
             Filter = new global::PKIo.Filter();
         }
         Filter.MergeFrom(other.Filter);
     }
     if (other.RecordsMatchingSegment != 0)
     {
         RecordsMatchingSegment = other.RecordsMatchingSegment;
     }
     if (other.RecordsSuccessfullyUpdate != 0)
     {
         RecordsSuccessfullyUpdate = other.RecordsSuccessfullyUpdate;
     }
     if (other.RecordsFailedToUpdate != 0)
     {
         RecordsFailedToUpdate = other.RecordsFailedToUpdate;
     }
     if (other.created_ != null)
     {
         if (created_ == null)
         {
             Created = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         Created.MergeFrom(other.Created);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }