/// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (AdditionalMetadata != null)
         {
             hashCode = hashCode * 59 + AdditionalMetadata.GetHashCode();
         }
         if (File != null)
         {
             hashCode = hashCode * 59 + File.GetHashCode();
         }
         return(hashCode);
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = nameof(UploadFileRequest).GetHashCode();
         if (default != PetId)
         {
             hashCode = (hashCode * 397) ^ PetId.GetHashCode();
         }
         if (default != AdditionalMetadata)
         {
             hashCode = (hashCode * 397) ^ AdditionalMetadata.GetHashCode();
         }
         if (default != File)
         {
             hashCode = (hashCode * 397) ^ File.GetHashCode();
         }
         return(hashCode);
     }
 }