Exemplo n.º 1
0
 public void MergeFrom(Link other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Id.Length != 0)
     {
         Id = other.Id;
     }
     if (other.Url.Length != 0)
     {
         Url = other.Url;
     }
     if (other.Title.Length != 0)
     {
         Title = other.Title;
     }
     if (other.Type != global::PKIo.LinkType.UriDoNotUse)
     {
         Type = other.Type;
     }
     if (other.localizedLink_ != null)
     {
         if (localizedLink_ == null)
         {
             LocalizedLink = new global::PKIo.LocalizedString();
         }
         LocalizedLink.MergeFrom(other.LocalizedLink);
     }
     if (other.localizedTitle_ != null)
     {
         if (localizedTitle_ == null)
         {
             LocalizedTitle = new global::PKIo.LocalizedString();
         }
         LocalizedTitle.MergeFrom(other.LocalizedTitle);
     }
     usage_.Add(other.usage_);
     if (other.Position != 0)
     {
         Position = other.Position;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Url.Length != 0)
            {
                hash ^= Url.GetHashCode();
            }
            if (Title.Length != 0)
            {
                hash ^= Title.GetHashCode();
            }
            if (Type != global::PKIo.LinkType.UriDoNotUse)
            {
                hash ^= Type.GetHashCode();
            }
            if (localizedLink_ != null)
            {
                hash ^= LocalizedLink.GetHashCode();
            }
            if (localizedTitle_ != null)
            {
                hash ^= LocalizedTitle.GetHashCode();
            }
            hash ^= usage_.GetHashCode();
            if (Position != 0)
            {
                hash ^= Position.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 3
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);
 }
Exemplo n.º 4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Protocol != global::PKIo.PassProtocol.DoNotUse)
            {
                hash ^= Protocol.GetHashCode();
            }
            if (CompanyId.Length != 0)
            {
                hash ^= CompanyId.GetHashCode();
            }
            if (ClassId.Length != 0)
            {
                hash ^= ClassId.GetHashCode();
            }
            if (Uuid.Length != 0)
            {
                hash ^= Uuid.GetHashCode();
            }
            if (Status != global::PKIo.MessageStatus.Created)
            {
                hash ^= Status.GetHashCode();
            }
            if (Warning.Length != 0)
            {
                hash ^= Warning.GetHashCode();
            }
            if (ImageId != 0)
            {
                hash ^= ImageId.GetHashCode();
            }
            if (Title.Length != 0)
            {
                hash ^= Title.GetHashCode();
            }
            if (localizedTitle_ != null)
            {
                hash ^= LocalizedTitle.GetHashCode();
            }
            if (Content.Length != 0)
            {
                hash ^= Content.GetHashCode();
            }
            if (localizedContent_ != null)
            {
                hash ^= LocalizedContent.GetHashCode();
            }
            if (startDate_ != null)
            {
                hash ^= StartDate.GetHashCode();
            }
            if (endDate_ != null)
            {
                hash ^= EndDate.GetHashCode();
            }
            if (filter_ != null)
            {
                hash ^= Filter.GetHashCode();
            }
            if (RecordsMatchingSegment != 0)
            {
                hash ^= RecordsMatchingSegment.GetHashCode();
            }
            if (RecordsSuccessfullyUpdate != 0)
            {
                hash ^= RecordsSuccessfullyUpdate.GetHashCode();
            }
            if (RecordsFailedToUpdate != 0)
            {
                hash ^= RecordsFailedToUpdate.GetHashCode();
            }
            if (created_ != null)
            {
                hash ^= Created.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }