Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Uri.Length != 0)
            {
                hash ^= Uri.GetHashCode();
            }
            hash ^= tags_.GetHashCode();
            if (ImageSizeBytes != 0L)
            {
                hash ^= ImageSizeBytes.GetHashCode();
            }
            if (uploadTime_ != null)
            {
                hash ^= UploadTime.GetHashCode();
            }
            if (MediaType.Length != 0)
            {
                hash ^= MediaType.GetHashCode();
            }
            if (buildTime_ != null)
            {
                hash ^= BuildTime.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 2
0
 public override string ToString()
 {
     return("Name: " + FileName +
            "\nUploaded: " + UploadTime.ToString("yyyy/MM/dd HH:mm:ss") +
            "\nSize: " + FileSize +
            "\nSHA1: " + SHA1 +
            "\nMD5:  " + MD5);
 }
Ejemplo n.º 3
0
 public void MergeFrom(DockerImage other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.Uri.Length != 0)
     {
         Uri = other.Uri;
     }
     tags_.Add(other.tags_);
     if (other.ImageSizeBytes != 0L)
     {
         ImageSizeBytes = other.ImageSizeBytes;
     }
     if (other.uploadTime_ != null)
     {
         if (uploadTime_ == null)
         {
             UploadTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         UploadTime.MergeFrom(other.UploadTime);
     }
     if (other.MediaType.Length != 0)
     {
         MediaType = other.MediaType;
     }
     if (other.buildTime_ != null)
     {
         if (buildTime_ == null)
         {
             BuildTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         BuildTime.MergeFrom(other.BuildTime);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }