Esempio n. 1
0
 public void MergeFrom(Node other)
 {
     if (other == null)
     {
         return;
     }
     if (other.identifier_ != null)
     {
         if (identifier_ == null)
         {
             identifier_ = new global::Opencensus.Proto.Agent.Common.V1.ProcessIdentifier();
         }
         Identifier.MergeFrom(other.Identifier);
     }
     if (other.libraryInfo_ != null)
     {
         if (libraryInfo_ == null)
         {
             libraryInfo_ = new global::Opencensus.Proto.Agent.Common.V1.LibraryInfo();
         }
         LibraryInfo.MergeFrom(other.LibraryInfo);
     }
     if (other.serviceInfo_ != null)
     {
         if (serviceInfo_ == null)
         {
             serviceInfo_ = new global::Opencensus.Proto.Agent.Common.V1.ServiceInfo();
         }
         ServiceInfo.MergeFrom(other.ServiceInfo);
     }
     attributes_.Add(other.attributes_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Esempio n. 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (identifier_ != null)
            {
                hash ^= Identifier.GetHashCode();
            }
            if (libraryInfo_ != null)
            {
                hash ^= LibraryInfo.GetHashCode();
            }
            if (serviceInfo_ != null)
            {
                hash ^= ServiceInfo.GetHashCode();
            }
            hash ^= Attributes.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }