示例#1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (status_ != null)
            {
                hash ^= Status.GetHashCode();
            }
            if (firstDeployed_ != null)
            {
                hash ^= FirstDeployed.GetHashCode();
            }
            if (lastDeployed_ != null)
            {
                hash ^= LastDeployed.GetHashCode();
            }
            if (deleted_ != null)
            {
                hash ^= Deleted.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
示例#2
0
 public void MergeFrom(Info other)
 {
     if (other == null)
     {
         return;
     }
     if (other.status_ != null)
     {
         if (status_ == null)
         {
             status_ = new global::Hapi.Release.Status();
         }
         Status.MergeFrom(other.Status);
     }
     if (other.firstDeployed_ != null)
     {
         if (firstDeployed_ == null)
         {
             firstDeployed_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         FirstDeployed.MergeFrom(other.FirstDeployed);
     }
     if (other.lastDeployed_ != null)
     {
         if (lastDeployed_ == null)
         {
             lastDeployed_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         LastDeployed.MergeFrom(other.LastDeployed);
     }
     if (other.deleted_ != null)
     {
         if (deleted_ == null)
         {
             deleted_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         Deleted.MergeFrom(other.Deleted);
     }
     if (other.Description.Length != 0)
     {
         Description = other.Description;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }